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

Function TestToolsDir_Default

pkg/toolinstall/paths_test.go:11–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestToolsDir_Default(t *testing.T) {
12 t.Setenv("DOCKER_AGENT_TOOLS_DIR", "")
13
14 dir := ToolsDir()
15 assert.Contains(t, dir, "tools")
16}
17
18func TestToolsDir_EnvOverride(t *testing.T) {
19 t.Setenv("DOCKER_AGENT_TOOLS_DIR", "/custom/tools/dir")

Callers

nothing calls this directly

Calls 1

ToolsDirFunction · 0.85

Tested by

no test coverage detected