--- resolve tests ---
(t *testing.T)
| 92 | // --- resolve tests --- |
| 93 | |
| 94 | func TestResolve_FoundInPath(t *testing.T) { |
| 95 | t.Parallel() |
| 96 | |
| 97 | command := "ls" |
| 98 | if _, err := exec.LookPath(command); err != nil { |
| 99 | t.Skipf("skipping: %q not in PATH", command) |
| 100 | } |
| 101 | |
| 102 | path, err := resolve(t.Context(), command, "", doInstall) |
| 103 | require.NoError(t, err) |
| 104 | assert.NotEmpty(t, path) |
| 105 | } |
| 106 | |
| 107 | func TestResolve_FoundInBinDir(t *testing.T) { |
| 108 | toolsDir := t.TempDir() |