(t *testing.T)
| 72 | } |
| 73 | |
| 74 | func TestFormatError(t *testing.T) { |
| 75 | t.Parallel() |
| 76 | |
| 77 | if got := FormatError(nil); got != "ERR: unknown error" { |
| 78 | t.Fatalf("FormatError(nil) = %q, want %q", got, "ERR: unknown error") |
| 79 | } |
| 80 | if got := FormatError(errors.New("boom")); got != "ERR: boom" { |
| 81 | t.Fatalf("FormatError(non-nil) = %q, want %q", got, "ERR: boom") |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | func TestMustExecutable(t *testing.T) { |
| 86 | if p := MustExecutable(); p == "" { |
nothing calls this directly
no test coverage detected