You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

forward_requirements.go 366B

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