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

Function NewMockConn

example/sql_mock_test.go:26–30  ·  view source on GitHub ↗

NewMockConn creates a new mock instance.

(ctrl *gomock.Controller)

Source from the content-addressed store, hash-verified

24
25// NewMockConn creates a new mock instance.
26func NewMockConn(ctrl *gomock.Controller) *MockConn {
27 mock := &MockConn{ctrl: ctrl}
28 mock.recorder = &MockConnMockRecorder{mock}
29 return mock
30}
31
32// EXPECT returns an object that allows the caller to indicate expected use.
33func (m *MockConn) EXPECT() *MockConnMockRecorder {

Callers 1

WithMockSQLFunction · 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…