2016-11-19 10:22:36 +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,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-07-23 07:51:42 +00:00
|
|
|
//go:generate go run ../_codegen/main.go -output-package=require -template=require_forward.go.tmpl -include-format-funcs
|