173
174
// addUniqueTest appends name to tests if not already seen.
176
>
if _, ok := seen[name]; ok {
178
>
}
180
>
*tests = append(*tests, name)
181
}
182
183
// parseTripleDashTestName parses Go test failure lines and returns the test name if present.
185
>
if !strings.HasPrefix(line, goTestFailLinePrefix) {
186
return "", false
187
}
189
>
name, _, _ = strings.Cut(name, " ")
190
>
if !strings.HasPrefix(name, "Test") {
191
return "", false
192
}
194
}
195