package sub import ( "golang.flu0r1ne.net/planr" ) func Evaluate(params []string) { tcs := Runner().Evaluate() 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, ); }