assert-type-assumptions (#23996)

This commit is contained in:
Jack May
2022-03-30 08:28:49 -07:00
committed by GitHub
parent 1fb82d7924
commit 37497657c6
7 changed files with 174 additions and 8 deletions

View File

@ -3541,6 +3541,7 @@ mod tests {
bpf_loader,
fee_calculator::FeeCalculator,
hash::hashv,
program::check_type_assumptions,
sysvar::{clock::Clock, epoch_schedule::EpochSchedule, rent::Rent},
transaction_context::TransactionContext,
},
@ -4906,9 +4907,6 @@ mod tests {
#[test]
fn test_check_type_assumptions() {
// Code in this file assumes that u64 and usize are the same
assert_eq!(size_of::<u64>(), size_of::<usize>());
// Code in this file assumes that u8 is byte aligned
assert_eq!(1, align_of::<u8>());
check_type_assumptions();
}
}