std:test/Assertions
std:test/Assertions
Section titled “std:test/Assertions”Canonical occurrence:
protos/lib/test/Assertions.protos· Protos revision:e99b712ecf658a527b1fe82c8beba2c1286d8dc9.
Assertion helpers for Protos tests.
Observable top-level slots
Section titled “Observable top-level slots”This page lists the complete mechanically observable top-level slot inventory required by D067. Authored documentation, when present, is canonical D062 prose; mechanical presence alone does not create a stability or compatibility promise.
AssertionFailure
Section titled “AssertionFailure”The Error prototype signalled when an assertion helper fails.
Mechanical facts
Section titled “Mechanical facts”No callable shape is mechanically recorded for this slot.
- Source occurrence:
protos/lib/test/Assertions.protos:19 - Exact source page: open in the source browser
require
Section titled “require”Signals an AssertionFailure when condition is false and answers null
when it is true. Any other value signals an Error.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
condition -
Rest parameter: none
-
Source occurrence:
protos/lib/test/Assertions.protos:23 -
Exact source page: open in the source browser
signals
Section titled “signals”Runs body and answers the Error it signals when that Error is handled by
errorPrototype; signals an AssertionFailure when no such Error is
signalled.
Mechanical facts
Section titled “Mechanical facts”-
Fixed parameters:
errorPrototype,body -
Rest parameter: none
-
Source occurrence:
protos/lib/test/Assertions.protos:44 -
Exact source page: open in the source browser
Exact module source · Standard-library API · Standard library overview