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

Function TestGetDefaultContextMetadata

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

Source from the content-addressed store, hash-verified

139}
140
141func TestGetDefaultContextMetadata(t *testing.T) {
142 meta := testDefaultMetadata()
143 s := testStore(t, meta, store.ContextTLSData{})
144 result, err := s.GetMetadata(DefaultContextName)
145 assert.NilError(t, err)
146 assert.Equal(t, DefaultContextName, result.Name)
147 assert.DeepEqual(t, meta.Metadata, result.Metadata)
148 assert.DeepEqual(t, meta.Endpoints, result.Endpoints)
149}
150
151func TestErrCreateDefault(t *testing.T) {
152 meta := testDefaultMetadata()

Callers

nothing calls this directly

Calls 3

testDefaultMetadataFunction · 0.85
testStoreFunction · 0.85
GetMetadataMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…