MCPcopy
hub / github.com/docker/compose / NewMockAPIClient

Function NewMockAPIClient

pkg/mocks/mock_docker_api.go:34–38  ·  view source on GitHub ↗

NewMockAPIClient creates a new mock instance.

(ctrl *gomock.Controller)

Source from the content-addressed store, hash-verified

32
33// NewMockAPIClient creates a new mock instance.
34func NewMockAPIClient(ctrl *gomock.Controller) *MockAPIClient {
35 mock := &MockAPIClient{ctrl: ctrl}
36 mock.recorder = &MockAPIClientMockRecorder{mock}
37 return mock
38}
39
40// EXPECT returns an object that allows the caller to indicate expected use.
41func (m *MockAPIClient) EXPECT() *MockAPIClientMockRecorder {

Callers 14

newTestServiceFunction · 0.92
prepareMocksFunction · 0.92
TestWatch_SyncFunction · 0.92
newPreStartTestServiceFunction · 0.92
TestRunHook_ConsoleSizeFunction · 0.92
TestCollectObservedStateFunction · 0.92
TestServiceLinksFunction · 0.92
TestWaitDependenciesFunction · 0.92
TestIsServiceHealthyFunction · 0.92
TestCreateMobyContainerFunction · 0.92

Calls

no outgoing calls

Tested by 14

newTestServiceFunction · 0.74
prepareMocksFunction · 0.74
TestWatch_SyncFunction · 0.74
newPreStartTestServiceFunction · 0.74
TestRunHook_ConsoleSizeFunction · 0.74
TestCollectObservedStateFunction · 0.74
TestServiceLinksFunction · 0.74
TestWaitDependenciesFunction · 0.74
TestIsServiceHealthyFunction · 0.74
TestCreateMobyContainerFunction · 0.74