structstd.testing.FailingAllocator.Config[src]

Fields

fail_index: usize = std.math.maxInt(usize)

The number of successful allocations you can expect from this allocator. The next allocation will fail.

resize_fail_index: usize = std.math.maxInt(usize)

Number of successful resizes to expect from this allocator. The next resize will fail.

Source Code

Source code
pub const Config = struct {
    /// The number of successful allocations you can expect from this allocator.
    /// The next allocation will fail.
    fail_index: usize = std.math.maxInt(usize),

    /// Number of successful resizes to expect from this allocator. The next resize will fail.
    resize_fail_index: usize = std.math.maxInt(usize),
}