MCPcopy Index your code
hub / github.com/cli/cli / TestExecutablePath

Function TestExecutablePath

internal/ghcmd/executable_test.go:118–122  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

116}
117
118func TestExecutablePath(t *testing.T) {
119 override := strings.Join([]string{"C:", "cygwin64", "home", "gh.exe"}, string(os.PathSeparator))
120 t.Setenv("GH_PATH", override)
121 require.Equal(t, override, executablePath("gh"))
122}

Callers

nothing calls this directly

Calls 3

executablePathFunction · 0.85
JoinMethod · 0.80
EqualMethod · 0.80

Tested by

no test coverage detected