(t *testing.T)
| 1806 | } |
| 1807 | |
| 1808 | func 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 | |
| 1820 | func TestClientIsIgnoredReportsFatalGitError(t *testing.T) { |
| 1821 | // Given a non-repository directory nested inside a repository |
nothing calls this directly
no test coverage detected