Std.Test
44 public declarations
- absent
Str -> &Option[T] -> Std.Test.CheckA check that holds when an optional value is absent.
- all
Str -> &Array[T] -> fn(T) -> Bool -> Std.Test.CheckA check that holds when every value satisfies the test.
- Check
One check: what it was called, and what it found.
- closeTo
Str -> Decimal -> Decimal -> Decimal -> Std.Test.CheckA check that holds when two exact numbers differ by no more than a
- combine
&Std.Test.Report -> &Std.Test.Report -> Std.Test.ReportTwo reports added together.
- combineAll
&Array[Std.Test.Report] -> Std.Test.ReportEvery report added together.
- contains
Str -> &Array[T] -> T -> Std.Test.CheckA check that holds when a sequence contains a value.
- differs
Str -> &T -> &T -> Std.Test.CheckA check that holds when two values differ.
- each
&Array[T] -> fn(T) -> Str -> fn(T) -> Bool -> Array[Std.Test.Check]The same check over a table of cases.
- eachOf
&Array[T] -> fn(T) -> Std.Test.Check -> Array[Std.Test.Check]The same check over a table of cases, where each case builds its own check.
- equals
Str -> &T -> &T -> Std.Test.CheckA check that holds when two values are the same.
- errored
Str -> &Result[T, E] -> Std.Test.CheckA check that holds when a result failed.
- failedOf
&Std.Test.Report -> IntHow many checks did not.
- fails
Str -> &Std.Test.Check -> Std.Test.CheckA check that holds exactly when the one it is given does not.
- failuresOf
&Std.Test.Report -> Array[Str]What each failing check said.
- filtered
&Std.Test.Suite -> fn(Str) -> Bool -> Std.Test.SuiteOnly the checks whose name the test accepts, through the whole tree.
- group
Str -> &Array[Std.Test.Suite] -> Std.Test.SuiteA group of groups under a name.
- held
&Std.Test.Check -> BoolWhether a check held.
- lines
&Std.Test.Report -> Array[Str]A report as lines, the failures first and a summary last.
- names
&Std.Test.Suite -> Array[Str]The names of the checks in a suite and every group beneath it.
- not
Str -> Bool -> Std.Test.CheckA check that holds when the condition does not.
- Outcome
What one check found.
- passed
&Std.Test.Report -> BoolWhether every check held.
- passedOf
&Std.Test.Report -> IntHow many checks held.
- pending
&Std.Test.Check -> BoolWhether a check was left to be written.
- pendingOf
&Std.Test.Report -> IntHow many checks were left to be written.
- present
Str -> &Option[T] -> Std.Test.CheckA check that holds when an optional value is present, whatever it holds.
- rendered
&Std.Test.Report -> StrThe report rendered as one block of text.
- report
&Std.Test.Report -> IntWhat a suite run by `pudu test` should answer.
- Report
What running a suite found, counted and with the failures kept.
- run
&Std.Test.Suite -> Std.Test.ReportThe report a suite answers, counted through every group beneath it.
- runIf
Bool -> Str -> &Std.Test.Check -> Std.Test.CheckA check kept only when a condition holds, and left pending otherwise.
- sameElements
Str -> &Array[T] -> &Array[T] -> Std.Test.Check where T: OrdA check that holds when two sequences hold the same values, in any order.
- skipIf
Bool -> Str -> &Std.Test.Check -> Std.Test.CheckA check left pending when a condition holds, and kept otherwise.
- status
&Std.Test.Report -> IntThe status a program should leave with, which is zero only when every check
- succeeded
Str -> &Result[T, E] -> Std.Test.CheckA check that holds when a result succeeded.
- suite
Str -> &Array[Std.Test.Check] -> Std.Test.SuiteA group of checks under a name.
- Suite
A named group of checks, and the groups beneath it.
- summary
&Std.Test.Report -> StrOne line saying how many of how many held.
- that
Str -> Bool -> Std.Test.CheckA check that holds when the condition does.
- todo
Str -> Str -> Std.Test.CheckA check not yet written, carrying why.
- total
&Std.Test.Report -> IntHow many checks ran.
- withCheck
&Std.Test.Suite -> &Std.Test.Check -> Std.Test.SuiteThe suite with another check in it.
- withGroup
&Std.Test.Suite -> &Std.Test.Suite -> Std.Test.SuiteThe suite with another group beneath it.
