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

Function TestPackageDir

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

Source from the content-addressed store, hash-verified

30}
31
32func TestPackageDir(t *testing.T) {
33 t.Setenv("DOCKER_AGENT_TOOLS_DIR", "/custom/tools")
34
35 dir := PackageDir("cli", "cli", "v2.50.0")
36 expected := "/custom/tools/packages/cli/cli/v2.50.0"
37 assert.Equal(t, expected, dir)
38}
39
40func TestRegistryDir(t *testing.T) {
41 t.Setenv("DOCKER_AGENT_TOOLS_DIR", "/custom/tools")

Callers

nothing calls this directly

Calls 1

PackageDirFunction · 0.85

Tested by

no test coverage detected