(t *testing.T)
| 1793 | } |
| 1794 | |
| 1795 | func TestClientIsIgnoredReturnsTrueForIgnoredPath(t *testing.T) { |
| 1796 | // Given a repository that ignores the requested path |
| 1797 | repo := newTestRepo(t) |
| 1798 | require.NoError(t, os.WriteFile(filepath.Join(repo.dir, ".gitignore"), []byte(".github/skills\n"), 0600)) |
| 1799 | |
| 1800 | // When the path is checked |
| 1801 | ignored, err := repo.client.IsIgnored(t.Context(), ".github/skills") |
| 1802 | |
| 1803 | // Then it is reported as ignored |
| 1804 | require.NoError(t, err) |
| 1805 | assert.True(t, ignored, "expected configured ignore rule to match") |
| 1806 | } |
| 1807 | |
| 1808 | func TestClientIsIgnoredReturnsFalseForUnignoredPath(t *testing.T) { |
| 1809 | // Given a repository without an ignore rule for the requested path |
nothing calls this directly
no test coverage detected