Skip to documentation
SLOP

tiny.hypothesis.TestResult

Reference tiny.hypothesis TestResult

Defined in engine.

API (23)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callsengineTestResult
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/hypothesis/src/engine.zig:106

zig
pub const TestResult = struct {    passed: bool,    valid_examples: usize,    invalid_examples: usize,    replayed_examples: usize,    database_entries_scanned: usize,    database_failures_rejected: usize,    replay_budget_saturated: bool,    failing_choices: ?[]const ChoiceNode,    failing_byte_blocks: ?[]const u8,    seed: u64,    failing_error: ?anyerror,    database_path: ?[]const u8,    database_namespace: ?[]const u8,    max_examples: usize,    max_replays: usize,    max_choices: usize,    max_input_bytes: usize,    max_shrinks: usize,    target_examples: usize,    per_example_leak_check: bool,    allocator: Allocator,    pub fn initFailureReplay(self: *const TestResult, allocator: Allocator) ?ConjectureData {        const choices = self.failing_choices orelse return null;        var replay = ConjectureData.initReplay(            allocator,            choices,            self.failing_byte_blocks,        );        replay.max_choices = self.max_choices;        replay.max_input_bytes = self.max_input_bytes;        return replay;    }    pub fn deinit(self: *TestResult) void {        if (self.failing_choices) |fc| self.allocator.free(fc);        if (self.failing_byte_blocks) |fbb| self.allocator.free(fbb);    }};

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

zig
pub const TestResult = engine.TestResult;
Called byCallsNo direct callersConjectureDatainitReplayTestResultinitFailureReplay
Static calls · unresolved targets: 0 · external targets: 0.

Audit

Definitions3
Public names6
Members21
Version26.7.0
Revisiondaab053ee433