std.testing.Smith.baselineWeights
pub fn baselineWeights(T: type) []const Weight
- Kind
- function
- Module
std.testing.Smith
Source: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
The entries of std.testing.Smith in the Zig reference. This page has 30 cards.
pub fn baselineWeights(T: type) []const Weight
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn boolWeighted(s: *Smith, false_weight: u64, true_weight: u64) bool
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn boolWeightedWithHash(s: *Smith, false_weight: u64, true_weight: u64, hash: u32) bool
It is asserted that the weight of `false` is non-zero.
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn bytes(s: *Smith, out: []u8) void
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn bytesWeighted(s: *Smith, out: []u8, weights: []const Weight) void
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn bytesWeightedWithHash(s: *Smith, out: []u8, weights: []const Weight, hash: u32) void
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn bytesWithHash(s: *Smith, out: []u8, hash: u32) void
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn eos(s: *Smith) bool
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn eosWeighted(s: *Smith, weights: []const Weight) bool
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn eosWeightedSimple(s: *Smith, false_weight: u64, true_weight: u64) bool
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn eosWeightedSimpleWithHash(s: *Smith, false_weight: u64, true_weight: u64, hash: u32) bool
This is similar to `value(bool)` however it is gauraunteed to eventually return `true` and provides the fuzzer with an extra hint about the data.
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn eosWeightedWithHash(s: *Smith, weights: []const Weight, hash: u32) bool
This is similar to `value(bool)` however it is gauraunteed to eventually return `true` and provides the fuzzer with an extra hint about the data.
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn eosWithHash(s: *Smith, hash: u32) bool
This is similar to `value(bool)` however it is gauraunteed to eventually return `true` and provides the fuzzer with an extra hint about the data.
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn index(s: *Smith, len: usize) usize
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn indexWithHash(s: *Smith, len: usize, hash: u32) usize
It is asserted `len` is nonzero.
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn slice(s: *Smith, buf: []u8) u32
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn sliceWeighted(s: *Smith, buf: []u8, len_weights: []const Weight, byte_weights: []const Weight) u32
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn sliceWeightedBytes(s: *Smith, buf: []u8, byte_weights: []const Weight) u32
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn sliceWeightedBytesWithHash(s: *Smith, buf: []u8, byte_weights: []const Weight, hash: u32) u32
Returns the length of the filled slice It is asserted that `buf.len` fits within a u32.
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn sliceWeightedWithHash(s: *Smith, buf: []u8, len_weights: []const Weight, byte_weights: []const Weight, hash: u32) u32
Returns the length of the filled slice It is asserted that `buf.len` fits within a u32.
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn sliceWithHash(s: *Smith, buf: []u8, hash: u32) u32
Returns the length of the filled slice It is asserted that `buf.len` fits within a u32.
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn value(s: *Smith, T: type) T
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn valueRangeAtMost(s: *Smith, T: type, at_least: T, at_most: T) T
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn valueRangeAtMostWithHash(s: *Smith, T: type, at_least: T, at_most: T, hash: u32) T
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn valueRangeLessThan(s: *Smith, T: type, at_least: T, less_than: T) T
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn valueRangeLessThanWithHash(s: *Smith, T: type, at_least: T, less_than: T, hash: u32) T
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn valueWeighted(s: *Smith, T: type, weights: []const Weight) T
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn valueWeightedWithHash(s: *Smith, T: type, weights: []const Weight, hash: u32) T
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
pub fn valueWithHash(s: *Smith, T: type, hash: u32) T
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.
std.testing.SmithSource: codeberg.org, ziglang.org. JSON record. This entry is a card. Help write this page.