Abort a test on nil containers, so that future tests don't panic

Signed-off-by: Miloslav Trmač <mitr@redhat.com>

Closes: #1111
Approved by: baude
This commit is contained in:
Miloslav Trmač
2018-07-19 02:30:33 +02:00
committed by Atomic Bot
parent cedb4576a4
commit c020db8cd2
6 changed files with 838 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
package require
// TestingT is an interface wrapper around *testing.T
type TestingT interface {
Errorf(format string, args ...interface{})
FailNow()
}
//go:generate go run ../_codegen/main.go -output-package=require -template=require.go.tmpl