Matteo Scandolo | 75ed5b9 | 2020-09-03 09:03:16 -0700 | [diff] [blame] | 1 | package assert |
| 2 | |
| 3 | // Assertions provides assertion methods around the |
| 4 | // TestingT interface. |
| 5 | type Assertions struct { |
| 6 | t TestingT |
| 7 | } |
| 8 | |
| 9 | // New makes a new Assertions object for the specified TestingT. |
| 10 | func New(t TestingT) *Assertions { |
| 11 | return &Assertions{ |
| 12 | t: t, |
| 13 | } |
| 14 | } |
| 15 | |
Matteo Scandolo | f9d4341 | 2021-01-12 11:11:34 -0800 | [diff] [blame] | 16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs" |