Std.Test.status
1 declaration
fn
status: &Std.Test.Report -> IntThis is a callable function.
What it does
The status a program should leave with, which is zero only when every check
held.
A test runner that always leaves with zero is a test runner nothing can be
built on: the thing reading it cannot tell a pass from a failure.
This is what a program run by pudu run should answer, where zero means
nothing went wrong. A suite run by pudu test answers report instead,
where zero means nothing was checked — the two readers want opposite
things from the same number, so each has its own way to say it.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
- & borrows a value for this call instead of moving or copying it.
