diff options
author | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-09-05 00:37:23 -0500 |
---|---|---|
committer | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-09-05 00:37:23 -0500 |
commit | 151d516e68f5d43aa2d0c5ff462752d640b6a614 (patch) | |
tree | 6d12582bb6fdea41434ad02be89cc18824c5b80b /cmd/planr/sub/evaluate.go | |
parent | cc7ba659adbc5ad55e1ce67f76952f2b8392c9c9 (diff) | |
download | deb-planr-151d516e68f5d43aa2d0c5ff462752d640b6a614.tar.xz deb-planr-151d516e68f5d43aa2d0c5ff462752d640b6a614.zip |
Refactor gtest adapter to fit new pipeline
Diffstat (limited to 'cmd/planr/sub/evaluate.go')
-rw-r--r-- | cmd/planr/sub/evaluate.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/planr/sub/evaluate.go b/cmd/planr/sub/evaluate.go index 0366d44..18cccb1 100644 --- a/cmd/planr/sub/evaluate.go +++ b/cmd/planr/sub/evaluate.go @@ -6,26 +6,26 @@ import ( func Evaluate(runner planr.Runner, params []string) { tcs := runner.CollectCases() - tcs = runner.Evaluate(tcs) + trs := runner.Evaluate(tcs) earned := 0.0 total := 0.0 passed := 0 - for _, tc := range tcs { - cfg := tc.Config + for _, tr := range trs { + cfg := tr.Tc.Config if cfg.Points != nil { points := float64(*cfg.Points) total += points - if tc.Result.Status == planr.PASSING { + if tr.Status == planr.PASSING { earned += points passed++ } } - tcPprint(tc) + tcPprint(tr) } printResults( |