本站源代码
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

17 行
388B

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