Documentation ¶
Index ¶
- func RunTest(t *testing.T, fun TestFunction, cases ...TestCase)
- func TTA(args ...interface{}) []interface{}
- func ToTestArgs(args ...interface{}) []interface{}
- type MockTestFunction
- type TestCase
- type TestCasesSuite
- type TestErrorExpected
- type TestExpected
- func TTCEE() TestExpected
- func TTE(checkError bool, err error, withPanic bool, panicMsg string, ...) TestExpected
- func TTEE(err error) TestExpected
- func TTPEE(msg interface{}) TestExpected
- func TTVE(expedites ...interface{}) TestExpected
- func ToTestCheckErrorExpected() TestExpected
- func ToTestErrorExpected(err error) TestExpected
- func ToTestExpected(checkError bool, err error, withPanic bool, panicMsg interface{}, ...) TestExpected
- func ToTestPanicErrorExpected(msg interface{}) TestExpected
- func ToTestValuesExpected(expedites ...interface{}) TestExpected
- type TestFunction
- type TestPanicErrorExpected
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToTestArgs ¶
func ToTestArgs(args ...interface{}) []interface{}
Types ¶
type MockTestFunction ¶
type MockTestFunction func(ctrl *gomock.Controller) []interface{}
type TestCase ¶
type TestCase struct { Name string Args []interface{} Expected TestExpected InitMocks MockTestFunction }
type TestCasesSuite ¶
func (*TestCasesSuite) RunTest ¶
func (s *TestCasesSuite) RunTest(fun TestFunction, cases ...TestCase)
type TestErrorExpected ¶
type TestExpected ¶
type TestExpected struct { PanicError *TestPanicErrorExpected Error *TestErrorExpected ExpectedReturns []interface{} }
func TTCEE ¶
func TTCEE() TestExpected
func TTE ¶
func TTE(checkError bool, err error, withPanic bool, panicMsg string, expedites ...interface{}, ) TestExpected
func TTEE ¶
func TTEE(err error) TestExpected
func TTPEE ¶
func TTPEE(msg interface{}) TestExpected
func TTVE ¶
func TTVE(expedites ...interface{}) TestExpected
func ToTestCheckErrorExpected ¶
func ToTestCheckErrorExpected() TestExpected
func ToTestErrorExpected ¶
func ToTestErrorExpected(err error) TestExpected
func ToTestExpected ¶
func ToTestExpected(checkError bool, err error, withPanic bool, panicMsg interface{}, expedites ...interface{}, ) TestExpected
func ToTestPanicErrorExpected ¶
func ToTestPanicErrorExpected(msg interface{}) TestExpected
func ToTestValuesExpected ¶
func ToTestValuesExpected(expedites ...interface{}) TestExpected
func (*TestExpected) HaveError ¶
func (te *TestExpected) HaveError() bool
func (*TestExpected) HavePanicError ¶
func (te *TestExpected) HavePanicError() bool
func (*TestExpected) MustErrorExpected ¶
func (te *TestExpected) MustErrorExpected() TestErrorExpected
func (*TestExpected) MustPanicErrorExpected ¶
func (te *TestExpected) MustPanicErrorExpected() TestPanicErrorExpected
type TestFunction ¶
type TestFunction func(args ...interface{}) []interface{}
type TestPanicErrorExpected ¶
type TestPanicErrorExpected struct {
Msg interface{}
}
Click to show internal directories.
Click to hide internal directories.