Home / Docs / Standard library
std.testing
Release v0.4.0
The items of std.testing, usable only in test code (spec/14 §4), one page each.
Operators, comparisons, equality and interpolation are built in and not listed here (spec/14 §2). The built-in methods, .len and those of maps and of fixed-width integers, are on Built-in methods.
Types
TestRequestError: Whytest_requestrefuses a request: the host would answer it400(ADR 0123 rule 21, spec/31 §4). (0.4, 0.5 preview)
Functions
fake_hash: A deterministicHashedvalue for tests: equal seeds give equal values. (0.1 and later)elapse: Moves the test's virtual clock forward bydat once, without waiting (ADR 0116 rule 19, spec/26 §8). (0.4, 0.5 preview)test_request: A request as the host would read it from a peer (ADR 0123 rule 21, spec/31 §4): its target read by the host's own rules, the only headerhost: test, the peer192.0.2.1and the listenertest. (0.4, 0.5 preview)test_exchange: An exchange ofrequestwith a fresh reply right, distinct from every other reply right of the run (ADR 0123 rule 21, spec/31 §1). (0.4, 0.5 preview)
Generated from the standard modules of una v0.4.0 (docs/std/listing.json, which is not part of the specification). The specification governs: spec/14 §1.