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

Function TestInitializeShouldAlwaysCreateTheContextStore

cli/command/cli_test.go:292–299  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

290}
291
292func TestInitializeShouldAlwaysCreateTheContextStore(t *testing.T) {
293 cli, err := NewDockerCli()
294 assert.NilError(t, err)
295 apiClient, err := client.New()
296 assert.NilError(t, err)
297 assert.NilError(t, cli.Initialize(flags.NewClientOptions(), WithAPIClient(apiClient)))
298 assert.Check(t, cli.ContextStore() != nil)
299}
300
301func TestHooksEnabled(t *testing.T) {
302 t.Run("disabled by default", func(t *testing.T) {

Callers

nothing calls this directly

Calls 4

InitializeMethod · 0.95
ContextStoreMethod · 0.95
NewDockerCliFunction · 0.85
WithAPIClientFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…