MCPcopy Create free account
hub / github.com/docker/docker-agent / TestEnsureCommand_SoftFail

Function TestEnsureCommand_SoftFail

pkg/toolinstall/resolver_test.go:55–61  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

53}
54
55func TestEnsureCommand_SoftFail(t *testing.T) {
56 t.Setenv("DOCKER_AGENT_TOOLS_DIR", t.TempDir())
57 t.Setenv("DOCKER_AGENT_AUTO_INSTALL", "")
58
59 _, err := EnsureCommand(t.Context(), "nonexistent-tool", "invalid-ref")
60 require.Error(t, err)
61}
62
63func TestEnsureCommand_FoundInBinDir(t *testing.T) {
64 toolsDir := t.TempDir()

Callers

nothing calls this directly

Calls 3

EnsureCommandFunction · 0.85
ContextMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected