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

Function TestErrRemoveDefault

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

Source from the content-addressed store, hash-verified

163}
164
165func TestErrRemoveDefault(t *testing.T) {
166 meta := testDefaultMetadata()
167 s := testStore(t, meta, store.ContextTLSData{})
168 err := s.Remove("default")
169 assert.Check(t, is.ErrorType(err, errdefs.IsInvalidArgument))
170 assert.Error(t, err, "default context cannot be removed")
171}
172
173func TestErrTLSDataError(t *testing.T) {
174 meta := testDefaultMetadata()

Callers

nothing calls this directly

Calls 4

testDefaultMetadataFunction · 0.85
testStoreFunction · 0.85
RemoveMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…