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

Function TestClientIsIgnoredReturnsFalseForUnignoredPath

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

Source from the content-addressed store, hash-verified

1806}
1807
1808func TestClientIsIgnoredReturnsFalseForUnignoredPath(t *testing.T) {
1809 // Given a repository without an ignore rule for the requested path
1810 repo := newTestRepo(t)
1811
1812 // When the path is checked
1813 ignored, err := repo.client.IsIgnored(t.Context(), ".github/skills")
1814
1815 // Then it is reported as unignored
1816 require.NoError(t, err)
1817 assert.False(t, ignored, "expected path without an ignore rule not to match")
1818}
1819
1820func TestClientIsIgnoredReportsFatalGitError(t *testing.T) {
1821 // Given a non-repository directory nested inside a repository

Callers

nothing calls this directly

Calls 2

newTestRepoFunction · 0.85
IsIgnoredMethod · 0.80

Tested by

no test coverage detected