MCPcopy Create free account
hub / github.com/MultiFuzz/MultiFuzz / value_size

Function value_size

hail-fuzz/src/i2s/analysis.rs:367–374  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

365
366#[test]
367fn value_size() {
368 let values: &[u8] = &[
369 0x23, 0x24, 0x25, 0x26, 0x27, 0x28, 0x29, 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
370 0x38, 0x39, 0x3a, 0x3c, 0x3d, 0x3e, 0xff,
371 ];
372 let kind = ValueKind::from_sequence(values.iter().map(|&x| x as i64));
373 assert_eq!(kind.min_max().required_bytes(), 1);
374}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected