blob: df189d2348f17a3d16888e2581d2a3b7a9d47e93 [file] [log] [blame]
Matteo Scandolo75ed5b92020-09-03 09:03:16 -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
Matteo Scandolof9d43412021-01-12 11:11:34 -080016//go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs"