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

Function testStore

cli/command/defaultcontextstore_test.go:44–55  ·  view source on GitHub ↗
(t *testing.T, meta store.Metadata, tls store.ContextTLSData)

Source from the content-addressed store, hash-verified

42}
43
44func testStore(t *testing.T, meta store.Metadata, tls store.ContextTLSData) store.Store {
45 t.Helper()
46 return &ContextStoreWithDefault{
47 Store: store.New(t.TempDir(), testCfg),
48 Resolver: func() (*DefaultContext, error) {
49 return &DefaultContext{
50 Meta: meta,
51 TLS: tls,
52 }, nil
53 },
54 }
55}
56
57func TestDefaultContextInitializer(t *testing.T) {
58 cli, err := NewDockerCli()

Callers 7

TestExportDefaultImportFunction · 0.85
TestListDefaultContextFunction · 0.85
TestErrCreateDefaultFunction · 0.85
TestErrRemoveDefaultFunction · 0.85
TestErrTLSDataErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…