Pudu programming language
Menu
API reference

Std.Test.runIf

1 declaration

fn

runIf: Bool -> Str -> &Std.Test.Check -> Std.Test.Check

This is a callable function.

What it does

A check kept only when a condition holds, and left pending otherwise.

Pending rather than dropped, so a suite that skipped something says so. A

check that vanishes on a condition makes a suite quietly smaller on the

machine where the condition is false.

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