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

Function TestNativeStoreGetInvalidAddress

cli/config/credentials/native_store_test.go:207–218  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

205}
206
207func TestNativeStoreGetInvalidAddress(t *testing.T) {
208 f := &fakeStore{configs: map[string]types.AuthConfig{
209 validServerAddress: {},
210 }}
211
212 s := &nativeStore{
213 programFunc: mockCommandFn,
214 fileStore: NewFileStore(f),
215 }
216 _, err := s.Get(invalidServerAddress)
217 assert.ErrorContains(t, err, "program failed")
218}
219
220func TestNativeStoreErase(t *testing.T) {
221 f := &fakeStore{configs: map[string]types.AuthConfig{

Callers

nothing calls this directly

Calls 2

GetMethod · 0.95
NewFileStoreFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…