MCPcopy Index your code
hub / github.com/docker/cli / TestListDefaultContext

Function TestListDefaultContext

cli/command/defaultcontextstore_test.go:125–132  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

123}
124
125func TestListDefaultContext(t *testing.T) {
126 meta := testDefaultMetadata()
127 s := testStore(t, meta, store.ContextTLSData{})
128 result, err := s.List()
129 assert.NilError(t, err)
130 assert.Equal(t, 1, len(result))
131 assert.DeepEqual(t, meta, result[0])
132}
133
134func TestGetDefaultContextStorageInfo(t *testing.T) {
135 s := testStore(t, testDefaultMetadata(), store.ContextTLSData{})

Callers

nothing calls this directly

Calls 3

testDefaultMetadataFunction · 0.85
testStoreFunction · 0.85
ListMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…