tiny.hypothesis.integer
Defined in value.
Source
Source: lib/hypothesis/src/value.zig:158
zig
pub fn integer(comptime T: type, comptime min_val: T, comptime max_val: T) Generator(T) { comptime { const info = @typeInfo(T); if (info != .int) @compileError("integer generator requires an integer type"); if (min_val > max_val) @compileError("min must be <= max"); } return .{ .drawFn = &IntegerGeneratorType(T, min_val, max_val).draw };}Source: lib/hypothesis/src/root.zig:68
zig
pub const integer = value.integer;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |