Update init_test.go

This commit is contained in:
0xFloki 2026-01-24 20:56:13 +01:00 committed by GitHub
parent 9a8e14e77e
commit 3e6cb10805
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -119,16 +119,6 @@ func (tm *testMatcher) skipLoad(pattern string) {
tm.skiploadpat = append(tm.skiploadpat, regexp.MustCompile(pattern))
}
// fails adds an expected failure for tests matching the pattern.
//
//nolint:unused
func (tm *testMatcher) fails(pattern string, reason string) {
if reason == "" {
panic("empty fail reason")
}
tm.failpat = append(tm.failpat, testFailure{regexp.MustCompile(pattern), reason})
}
func (tm *testMatcher) runonly(pattern string) {
tm.runonlylistpat = regexp.MustCompile(pattern)
}