(t *testing.T)
| 25 | ) |
| 26 | |
| 27 | func sizerExe(t *testing.T) string { |
| 28 | t.Helper() |
| 29 | |
| 30 | var v string |
| 31 | switch runtime.GOOS { |
| 32 | case "windows": |
| 33 | v = `bin\git-sizer.exe` |
| 34 | default: |
| 35 | v = "bin/git-sizer" |
| 36 | } |
| 37 | |
| 38 | v, err := exec.LookPath(v) |
| 39 | require.NoError(t, err) |
| 40 | |
| 41 | v, err = filepath.Abs(v) |
| 42 | require.NoError(t, err) |
| 43 | |
| 44 | return v |
| 45 | } |
| 46 | |
| 47 | // Smoke test that the program runs. |
| 48 | func TestExec(t *testing.T) { |
no outgoing calls
no test coverage detected