Files
odo/vendor/github.com/stretchr/testify/require/forward_requirements.go
Priti Kumari 55c4c5a82e Writing unit tests using Gomock (#4110)
* Adding unit tests and mocks for interface and nested interface using gomock and testify

* Add testify latest verion in go mod

* Added vendor for dependencies

* Added examples with both gomock and testify for interface and embeded interface

* removed testify tests and mocks
2020-11-04 05:41:00 -05:00

17 lines
428 B
Go

package require
// 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 sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=require -template=require_forward.go.tmpl -include-format-funcs"