blob: 9ad56851d9714967b6071772ff44182a1e86e431 [file] [log] [blame]
Jonathan Hart4b110f62020-03-13 17:36:19 -07001package assert
2
3// Assertions provides assertion methods around the
4// TestingT interface.
5type Assertions struct {
6 t TestingT
7}
8
9// New makes a new Assertions object for the specified TestingT.
10func New(t TestingT) *Assertions {
11 return &Assertions{
12 t: t,
13 }
14}
15
16//go:generate go run ../_codegen/main.go -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs