aboutsummaryrefslogtreecommitdiff
path: root/cmd/planr/sub/evaluate.go
blob: 81c99895961b53bda8258f9d3c36dfc2618f2706 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package sub

import (
  "golang.flu0r1ne.net/planr"
)


func Evaluate(runner planr.Runner, params []string, cfg planr.Config) {
  dieIncompatibleVersion(cfg)

  tcs := runner.CollectCases()
  trs := runner.Evaluate(tcs)

  score := planr.Score(trs)

  for _, tr := range trs {
    tcPprint(tr)
  }

  printScoring(score)
}