src/ez/verdict.bend checks
raw source on the hub · import ezx@1.18.0.0/src/ez/verdict.bend as Verdict
ez/verdict: what the two runners read off a run. ez prove passes a proof
whose first line is exactly ALL PROOFS CHECK and counts it; ez test
tallies each comparison of a run with its trailer. Both runners print what
failed indented under the line that names it. All of it is pure, so what a
run is judged and counted as is a law (laws/ProofPassesOnVerdictLine.bend,
laws/TestTallyCounts.bend); running bend and reading its output is the
runners' (ez/prove.bend, ez/test.bend).
2 imports
import Base import ../share/capped.bend as Capped
Types
type Tally source · line 48 · raw
Data
how many comparisons were made, and how many of them held
Tally@pass:Nat -> @total:Nat -> Tally
Definitions
def head.of source · line 12 · raw
@ls:List<&2, String> -> String
the first line of a run's output
def head source · line 20 · raw
@text:String -> String
the first line of some text
def verdict source · line 24 · raw
String
the one line a proof passes on
def indent.go source · line 28 · raw
@ls:List<&2, String> -> List<&2, String>
every line of a block, indented under the line that introduces it
def indent source · line 36 · raw
@text:String -> String
a block of text, indented
def passed source · line 40 · raw
@text:String -> Bool
whether a run passed the proof gate: its first line is the verdict, exactly
def count source · line 44 · raw
@ok:Bool -> @+passed:Nat -> Nat
one more proof counted, and one more pass when it held
def tally.go source · line 52 · raw
@ok:Bool -> @passed:Nat -> @total:Nat -> Tally
one more comparison, and one more pass when it held
def tally source · line 60 · raw
@ok:Bool -> @score:Tally -> Tally
the tally with this comparison's verdict in it
def cmd source · line 66 · raw
@cap:Bool -> @+gigs:String -> @+at:String -> @+path:String -> List<&2, String>
a bend on one file, inside the memory cap and with this project's BEND_LIB
set for it
def cmds source · line 70 · raw
@ps:List<&2, String> -> @+cap:Bool -> @+gigs:String -> @+at:String -> List<&2, List<&2, String>>
every file's command, in the tree's order