MCPcopy Create free account
hub / github.com/abice/go-enum / NewMockDriver

Function NewMockDriver

example/sql_mock_test.go:93–97  ·  view source on GitHub ↗

NewMockDriver creates a new mock instance.

(ctrl *gomock.Controller)

Source from the content-addressed store, hash-verified

91
92// NewMockDriver creates a new mock instance.
93func NewMockDriver(ctrl *gomock.Controller) *MockDriver {
94 mock := &MockDriver{ctrl: ctrl}
95 mock.recorder = &MockDriverMockRecorder{mock}
96 return mock
97}
98
99// EXPECT returns an object that allows the caller to indicate expected use.
100func (m *MockDriver) EXPECT() *MockDriverMockRecorder {

Callers 4

TestExampleSQLFunction · 0.85
TestExampleSQLStrOnlyFunction · 0.85
TestExampleSQLIntOnlyFunction · 0.85
TestExampleSQLStrIntOnlyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…