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,16 @@
package require
// Assertions provides assertion methods around the
// TestingT interface.
type Assertions struct {
t TestingT
}
// New makes a new Assertions object for the specified TestingT.
func New(t TestingT) *Assertions {
return &Assertions{
t: t,
}
}
//go:generate go run ../_codegen/main.go -output-package=require -template=require_forward.go.tmpl