MCPcopy
hub / github.com/uber-go/mock / TestExpectCondForeignFour

Function TestExpectCondForeignFour

sample/user_test.go:191–201  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

189}
190
191func TestExpectCondForeignFour(t *testing.T) {
192 ctrl := gomock.NewController(t)
193 defer ctrl.Finish()
194
195 mockIndex := NewMockIndex(ctrl)
196 mockIndex.EXPECT().ForeignFour(gomock.Cond(func(x imp_four.Imp4) bool {
197 return x.Field == "Cool"
198 }))
199
200 mockIndex.ForeignFour(imp_four.Imp4{Field: "Cool"})
201}

Callers

nothing calls this directly

Calls 7

FinishMethod · 0.95
EXPECTMethod · 0.95
ForeignFourMethod · 0.95
NewControllerFunction · 0.92
CondFunction · 0.92
NewMockIndexFunction · 0.85
ForeignFourMethod · 0.65

Tested by

no test coverage detected