(t *testing.T)
| 82 | } |
| 83 | |
| 84 | func TestSubscribeNonGitPathsIgnored(t *testing.T) { |
| 85 | t.Parallel() |
| 86 | |
| 87 | logger := slogtest.Make(t, nil) |
| 88 | h := agentgit.NewHandler(logger) |
| 89 | |
| 90 | nonGitDir := t.TempDir() |
| 91 | added := h.Subscribe([]string{filepath.Join(nonGitDir, "file.txt")}) |
| 92 | require.False(t, added, "non-git paths should be ignored") |
| 93 | } |
| 94 | |
| 95 | func TestSubscribeRelativePathsIgnored(t *testing.T) { |
| 96 | t.Parallel() |
nothing calls this directly
no test coverage detected