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.

16 lines
366 B

  1. package assert
  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=assert -template=assertion_forward.go.tmpl