File: forward_assertions.go

package info (click to toggle)
golang-testify 1.1.4%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch, stretch-backports
  • size: 400 kB
  • sloc: makefile: 13
file content (16 lines) | stat: -rw-r--r-- 366 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package assert

// Assertions provides assertion methods around the
// TestingT interface.
type Assertions struct {
	t TestingT
}

// New makes a new Assertions object for the specified TestingT.
func New(t TestingT) *Assertions {
	return &Assertions{
		t: t,
	}
}

//go:generate go run ../_codegen/main.go -output-package=assert -template=assertion_forward.go.tmpl