Pudu programming language
Menu
API reference

Std.Test.report

1 declaration

fn

report: &Std.Test.Report -> Int

This is a callable function.

What it does

What a suite run by pudu test should answer.

How many checks held, or the negative of how many did not. The runner reads

the count to total a run and the sign to decide a verdict, and it can do

neither from a status: a suite that answers zero for success is

indistinguishable from one that checked nothing, and a suite answering one

for failure is indistinguishable from one that checked a single thing.

A suite that both held everything and checked nothing answers zero, which

the runner refuses. That is the intent — a file that has stopped asserting

should be noticed, and it is invisible to every other signal.

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.

Back to Std.TestSearch related declarations