本站源代码
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.

17 lines
388B

  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 -include-format-funcs
上海开阖软件有限公司 沪ICP备12045867号-1