(t *testing.T)
| 30 | } |
| 31 | |
| 32 | func 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 | |
| 40 | func TestRegistryDir(t *testing.T) { |
| 41 | t.Setenv("DOCKER_AGENT_TOOLS_DIR", "/custom/tools") |
nothing calls this directly
no test coverage detected