MCPcopy
hub / github.com/github/git-sizer / sizerExe

Function sizerExe

git_sizer_test.go:27–45  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25)
26
27func 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.
48func TestExec(t *testing.T) {

Callers 3

TestExecFunction · 0.85
TestRefSelectionsFunction · 0.85
TestRefgroupsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected