(t *testing.T, names ...string)
| 78 | } |
| 79 | |
| 80 | func mustHaveCommands(t *testing.T, names ...string) { |
| 81 | t.Helper() |
| 82 | for _, name := range names { |
| 83 | if _, err := exec.LookPath(name); err != nil { |
| 84 | t.Fatalf("required command %q not found: %v", name, err) |
| 85 | } |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | func runCommand(t *testing.T, name string, args ...string) string { |
| 90 | t.Helper() |
no outgoing calls
no test coverage detected