package sub import ( "golang.flu0r1ne.net/planr" ) func Evaluate(runner planr.Runner, params []string) { tcs := runner.CollectCases() tcs = runner.Evaluate(tcs) earned := 0.0 total := 0.0 passed := 0 for _, tc := range tcs { cfg := tc.Config if cfg.Points != nil { points := float64(*cfg.Points) total += points if tc.Result.Status == planr.PASSING { earned += points passed++ } } tcPprint(tc) } printResults( passed, len(tcs), earned, total, ); }