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

Function TestResolve_FoundInPath

pkg/toolinstall/resolver_test.go:94–105  ·  view source on GitHub ↗

--- resolve tests ---

(t *testing.T)

Source from the content-addressed store, hash-verified

92// --- resolve tests ---
93
94func TestResolve_FoundInPath(t *testing.T) {
95 t.Parallel()
96
97 command := "ls"
98 if _, err := exec.LookPath(command); err != nil {
99 t.Skipf("skipping: %q not in PATH", command)
100 }
101
102 path, err := resolve(t.Context(), command, "", doInstall)
103 require.NoError(t, err)
104 assert.NotEmpty(t, path)
105}
106
107func TestResolve_FoundInBinDir(t *testing.T) {
108 toolsDir := t.TempDir()

Callers

nothing calls this directly

Calls 2

ContextMethod · 0.80
resolveFunction · 0.70

Tested by

no test coverage detected