MCPcopy Create free account
hub / github.com/docker/cli / NewMockNativeStore

Function NewMockNativeStore

cli/config/configfile/file_test.go:196–198  ·  view source on GitHub ↗
(authConfigs map[string]types.AuthConfig, authConfigErrors map[string]error)

Source from the content-addressed store, hash-verified

194var _ credentials.Store = (*mockNativeStore)(nil)
195
196func NewMockNativeStore(authConfigs map[string]types.AuthConfig, authConfigErrors map[string]error) credentials.Store {
197 return &mockNativeStore{authConfigs: authConfigs, authConfigErrors: authConfigErrors}
198}
199
200func TestGetAllCredentialsFileStoreOnly(t *testing.T) {
201 configFile := New("filename")

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…