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