Searched refs:MAX (Results 1 – 4 of 4) sorted by relevance
163 pub const MAX: SafeNum = SafeNum(Ok(u64::MAX)); constant323 let poison = base + SafeNum::MAX; in test_addition_poison()336 let poison = base - SafeNum::MAX; in test_subtraction_poison()349 let poison = base * SafeNum::MAX; in test_multiplication_poison()485 assert!(SafeNum::MAX.round_up(32).has_error()); in test_round_up()
412 true => u64::MAX - (base - curr), in timestamp()
1333 assert!(blk.read(u64::MAX, &mut vec![0u8; 1]).is_err()); in test_read_arithmetic_overflow()1356 assert!(blk.write(u64::MAX, vec![0u8; 1].as_mut_slice()).is_err()); in test_write_arithmetic_overflow()
1309 assert!(usize::MAX > ZBI_ALIGNMENT.try_into().unwrap()); in zbi_test_align_overflow()1856 usize::MAX, in zbi_test_container_new_entry_payload_too_big()2130 container.payload_length = usize::MAX; // Pretend that length is too big and cause in zbi_test_container_get_next_paylad_length_overflow()