(t *testing.T)
| 53 | } |
| 54 | |
| 55 | func TestEnsureCommand_SoftFail(t *testing.T) { |
| 56 | t.Setenv("DOCKER_AGENT_TOOLS_DIR", t.TempDir()) |
| 57 | t.Setenv("DOCKER_AGENT_AUTO_INSTALL", "") |
| 58 | |
| 59 | _, err := EnsureCommand(t.Context(), "nonexistent-tool", "invalid-ref") |
| 60 | require.Error(t, err) |
| 61 | } |
| 62 | |
| 63 | func TestEnsureCommand_FoundInBinDir(t *testing.T) { |
| 64 | toolsDir := t.TempDir() |
nothing calls this directly
no test coverage detected