Skip to content

Commit ca5f300

Browse files
committed
gofmt
1 parent f7970e1 commit ca5f300

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

internal/capture/gc_test.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
}

internal/capture/jstack.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (t *JStack) Run() (result Result, err error) {
8787
logger.Log("Failed to Copy2TempPath with err %v", err)
8888
}
8989
}
90-
90+
9191
// Thread dump: Attempt 1: jstack
9292
if jstackFile == nil {
9393
logger.Log("Trying to capture thread dump using jstack ...")
@@ -100,7 +100,7 @@ func (t *JStack) Run() (result Result, err error) {
100100
logger.Log("Failed to run jstack with err %v", err)
101101
}
102102
}
103-
103+
104104
// Thread dump: Attempt 5: jstack -F
105105
if jstackFile == nil {
106106
logger.Log("Trying to capture thread dump using jstack -F ...")

internal/capture/test_helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ func skipIfNoJava(t *testing.T) {
1616
if _, err := exec.LookPath("java"); err != nil {
1717
t.Skip("java not found in PATH, skipping test")
1818
}
19-
}
19+
}

0 commit comments

Comments
 (0)