@@ -75,21 +75,21 @@ func TestGetLatestFileFromGlobPattern(t *testing.T) {
7575 expectedError bool
7676 }{
7777 {
78- name : "single file match" ,
79- pattern : filepath .Join (tmpDir , "app-*.log" ),
80- files : []string {"app-123.log" },
78+ name : "single file match" ,
79+ pattern : filepath .Join (tmpDir , "app-*.log" ),
80+ files : []string {"app-123.log" },
8181 expectedFile : "app-123.log" ,
8282 },
8383 {
84- name : "multiple files - returns latest alphabetically" ,
85- pattern : filepath .Join (tmpDir , "app-*.log" ),
86- files : []string {"app-111.log" , "app-222.log" , "app-333.log" },
84+ name : "multiple files - returns latest alphabetically" ,
85+ pattern : filepath .Join (tmpDir , "app-*.log" ),
86+ files : []string {"app-111.log" , "app-222.log" , "app-333.log" },
8787 expectedFile : "app-333.log" , // Latest alphabetically
8888 },
8989 {
90- name : "complex pattern matching" ,
91- pattern : filepath .Join (tmpDir , "gc-*-*.log" ),
92- files : []string {"gc-2023-10-28.log" , "gc-2023-10-29.log" , "gc-2023-11-01.log" },
90+ name : "complex pattern matching" ,
91+ pattern : filepath .Join (tmpDir , "gc-*-*.log" ),
92+ files : []string {"gc-2023-10-28.log" , "gc-2023-10-29.log" , "gc-2023-11-01.log" },
9393 expectedFile : "gc-2023-11-01.log" ,
9494 },
9595 {
@@ -191,9 +191,9 @@ func TestGC_Run_Integration(t *testing.T) {
191191 require .NoError (t , err , "Failed to change to temp directory" )
192192
193193 tests := []struct {
194- name string
195- setupGC func () * GC
196- expectOk bool
194+ name string
195+ setupGC func () * GC
196+ expectOk bool
197197 }{
198198 {
199199 name : "GC with valid local file" ,
@@ -408,4 +408,4 @@ func TestProcessGCLogFile_RealFiles(t *testing.T) {
408408 }
409409 })
410410 }
411- }
411+ }
0 commit comments