@@ -52,7 +52,7 @@ func TestCollectFiles_WithShouldIgnoreFilter(t *testing.T) {
5252 t .Run ("no filter collects all files" , func (t * testing.T ) {
5353 t .Parallel ()
5454
55- got , err := CollectFiles ([]string {tmpDir }, nil )
55+ got , err := CollectFiles (t . Context (), []string {tmpDir }, nil )
5656 require .NoError (t , err )
5757 assert .Len (t , got , 5 )
5858 })
@@ -66,7 +66,7 @@ func TestCollectFiles_WithShouldIgnoreFilter(t *testing.T) {
6666 return base == "vendor" || base == "node_modules"
6767 }
6868
69- got , err := CollectFiles ([]string {tmpDir }, shouldIgnore )
69+ got , err := CollectFiles (t . Context (), []string {tmpDir }, shouldIgnore )
7070 require .NoError (t , err )
7171
7272 // Should only have src/*.go and build/output.bin
@@ -87,7 +87,7 @@ func TestCollectFiles_WithShouldIgnoreFilter(t *testing.T) {
8787 return strings .HasSuffix (path , ".bin" )
8888 }
8989
90- got , err := CollectFiles ([]string {tmpDir }, shouldIgnore )
90+ got , err := CollectFiles (t . Context (), []string {tmpDir }, shouldIgnore )
9191 require .NoError (t , err )
9292
9393 assert .Len (t , got , 4 )
@@ -104,7 +104,7 @@ func TestCollectFiles_WithShouldIgnoreFilter(t *testing.T) {
104104 return strings .Contains (path , "vendor" )
105105 }
106106
107- got , err := CollectFiles ([]string {tmpDir }, shouldIgnore )
107+ got , err := CollectFiles (t . Context (), []string {tmpDir }, shouldIgnore )
108108 require .NoError (t , err )
109109
110110 for _ , f := range got {
@@ -148,7 +148,7 @@ func TestCollectFiles_GitDirectoryExclusion(t *testing.T) {
148148 t .Run ("without filter includes .git" , func (t * testing.T ) {
149149 t .Parallel ()
150150
151- got , err := CollectFiles ([]string {tmpDir }, nil )
151+ got , err := CollectFiles (t . Context (), []string {tmpDir }, nil )
152152 require .NoError (t , err )
153153
154154 // Should include .git files
@@ -177,7 +177,7 @@ func TestCollectFiles_GitDirectoryExclusion(t *testing.T) {
177177 strings .HasPrefix (normalized , ".git/" )
178178 }
179179
180- got , err := CollectFiles ([]string {tmpDir }, shouldIgnore )
180+ got , err := CollectFiles (t . Context (), []string {tmpDir }, shouldIgnore )
181181 require .NoError (t , err )
182182
183183 // Should only have src/main.go
@@ -229,7 +229,7 @@ func TestCollectFiles_GlobsWithFilter(t *testing.T) {
229229 return strings .HasSuffix (path , "_test.go" )
230230 }
231231
232- got , err := CollectFiles ([]string {filepath .Join (tmpDir , "pkg" , "**" , "*.go" )}, shouldIgnore )
232+ got , err := CollectFiles (t . Context (), []string {filepath .Join (tmpDir , "pkg" , "**" , "*.go" )}, shouldIgnore )
233233 require .NoError (t , err )
234234
235235 // Should only have non-test .go files
@@ -329,7 +329,7 @@ func TestCollectFiles_Deduplication(t *testing.T) {
329329 tmpDir , // Will also include test.go
330330 }
331331
332- got , err := CollectFiles (patterns , nil )
332+ got , err := CollectFiles (t . Context (), patterns , nil )
333333 require .NoError (t , err )
334334
335335 // Should only have one entry
@@ -352,7 +352,7 @@ func TestCollectFiles_NonExistentPaths(t *testing.T) {
352352 filepath .Join (tmpDir , "also" , "missing" , "file.go" ),
353353 }
354354
355- got , err := CollectFiles (patterns , nil )
355+ got , err := CollectFiles (t . Context (), patterns , nil )
356356 require .NoError (t , err )
357357
358358 // Should only have the real file
@@ -371,7 +371,7 @@ func TestCollectFiles_SortedOutput(t *testing.T) {
371371 require .NoError (t , os .WriteFile (filepath .Join (tmpDir , f ), []byte ("package test" ), 0o644 ))
372372 }
373373
374- got , err := CollectFiles ([]string {tmpDir }, nil )
374+ got , err := CollectFiles (t . Context (), []string {tmpDir }, nil )
375375 require .NoError (t , err )
376376
377377 // Verify we got all files
0 commit comments