MCPcopy Create free account
hub / github.com/cli/cli / TestClientIsIgnoredReportsMissingGitExecutable

Function TestClientIsIgnoredReportsMissingGitExecutable

git/client_test.go:1850–1861  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1848}
1849
1850func TestClientIsIgnoredReportsMissingGitExecutable(t *testing.T) {
1851 // Given Git cannot be resolved
1852 t.Setenv("PATH", "")
1853 client := Client{}
1854
1855 // When a path is checked
1856 ignored, err := client.IsIgnored(t.Context(), ".github/skills")
1857
1858 // Then the resolution failure is returned
1859 require.Error(t, err)
1860 assert.False(t, ignored, "a missing Git executable must not report the path as ignored")
1861}
1862
1863func TestShortSHA(t *testing.T) {
1864 tests := []struct {

Callers

nothing calls this directly

Calls 2

IsIgnoredMethod · 0.95
ErrorMethod · 0.45

Tested by

no test coverage detected