2017-05-19 18:40:09 +00:00
|
|
|
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,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-25 13:08:43 +00:00
|
|
|
//go:generate go run ../_codegen/main.go -output-package=require -template=require_forward.go.tmpl -include-format-funcs
|