1
0

forward_requirements.go 366 B

12345678910111213141516
  1. package require
  2. // Assertions provides assertion methods around the
  3. // TestingT interface.
  4. type Assertions struct {
  5. t TestingT
  6. }
  7. // New makes a new Assertions object for the specified TestingT.
  8. func New(t TestingT) *Assertions {
  9. return &Assertions{
  10. t: t,
  11. }
  12. }
  13. //go:generate go run ../_codegen/main.go -output-package=require -template=require_forward.go.tmpl