Z19 the budget test does not match its own text
Builds: design 42 zfs-owns-zfs §31
This commit is contained in:
@@ -547,7 +547,7 @@ func TestTheModuleStaysWithinItsTestBudget(t *testing.T) {
|
||||
n := 0
|
||||
for _, f := range files {
|
||||
b, _ := os.ReadFile(f)
|
||||
if strings.Contains(string(b), "//go:build integration") {
|
||||
if strings.Contains(string(b), "//go:"+"build integration") {
|
||||
t.Errorf("%s is an integration test: the module adds none", f)
|
||||
}
|
||||
n += len(regexp.MustCompile(`(?m)^func Test`).FindAllString(string(b), -1))
|
||||
|
||||
Reference in New Issue
Block a user