Skip to documentation
SLOP

tiny.hypothesis.check

Reference tiny.hypothesis check

Defined in tiny.hypothesis.

Called byCallsprivate sourcelib.hypothesis.src.testingdrawFromComptimetest sourcelib.hypothesis.src.testingtest: check: direct conjecture proper...private sourcelib.hypothesis.src.testingapplyNamespaceprivate sourcelib.hypothesis.src.testingprintFailuretiny.hypothesischeck
Static calls · unresolved targets: 1 · external targets: 1.

Source

Source: lib/hypothesis/src/testing.zig:61

zig
pub fn check(comptime Property: type, settings: Settings) !void {    const allocator = std.testing.allocator;    const run_settings = applyNamespace(Property, settings, null);    var result = try engine_mod.run(allocator, &Property.property, run_settings);    defer result.deinit();    if (!result.passed) {        if (run_settings.report_failure) {            printFailure(&result);        }        return error.PropertyFailed;    }}

Source: lib/hypothesis/src/root.zig:56

zig
pub const check = testing.check;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433