Reconcile reporting tests and boundaries

This commit is contained in:
2026-10-26 03:51:14 +00:00
parent 6264a87183
commit a6c0fb5b0d
7 changed files with 124 additions and 106 deletions

View File

@@ -124,7 +124,7 @@ func performanceFlatCommands(tb testing.TB, count int, prefix string) []commandk
run := func(commandkit.Invocation, struct{}) commandkit.Outcome { return commandkit.Success() }
if prefix == "cmd" && index == 4 {
run = func(commandkit.Invocation, struct{}) commandkit.Outcome {
return commandkit.Usage(performanceUsageCause)
return commandkit.Usage("The benchmark command needs usage.").WithCause(performanceUsageCause)
}
}
command := commandkit.NewCommand(commandkit.CommandSpec[struct{}]{Name: name, Summary: "Benchmark command.", Flags: flags, Run: run})