mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-22 08:14:02 +01:00
Add print to go tests to monitor for UNUSED_GOLDENS overuse
This commit is contained in:
parent
4a7f95686c
commit
29adbd2372
@ -69,6 +69,14 @@ func checkGoldensUsed() {
|
||||
log.Fatalf("%v", err)
|
||||
}
|
||||
}
|
||||
|
||||
// And print out anything that is in UNUSED_GOLDENS that was actually used, so we
|
||||
// can manually trim UNUSED_GOLDENS
|
||||
for _, g := range UNUSED_GOLDENS {
|
||||
if slices.Contains(usedGoldens, g) {
|
||||
fmt.Printf("Golden %s is in UNUSED_GOLDENS, but was actually used\n", g)
|
||||
}
|
||||
}
|
||||
fmt.Println("Validated that all goldens in testdata/ were referenced!")
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user