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

Function TestBinDir

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

Source from the content-addressed store, hash-verified

23}
24
25func TestBinDir(t *testing.T) {
26 t.Setenv("DOCKER_AGENT_TOOLS_DIR", "/custom/tools")
27
28 dir := BinDir()
29 assert.Equal(t, "/custom/tools/bin", dir)
30}
31
32func TestPackageDir(t *testing.T) {
33 t.Setenv("DOCKER_AGENT_TOOLS_DIR", "/custom/tools")

Callers

nothing calls this directly

Calls 1

BinDirFunction · 0.85

Tested by

no test coverage detected