test: simple CalculateHashIntermediate refactoring (#17813)
This commit is contained in:
parent
7ee5b02bc5
commit
01ef2a5c4a
|
@ -2027,18 +2027,14 @@ pub mod tests {
|
||||||
|
|
||||||
let offset = 2;
|
let offset = 2;
|
||||||
let input = vec![
|
let input = vec![
|
||||||
CalculateHashIntermediate::new(
|
CalculateHashIntermediate::new_without_slot(
|
||||||
0,
|
|
||||||
Hash::new_unique(),
|
Hash::new_unique(),
|
||||||
u64::MAX - offset,
|
u64::MAX - offset,
|
||||||
0,
|
|
||||||
Pubkey::new_unique(),
|
Pubkey::new_unique(),
|
||||||
),
|
),
|
||||||
CalculateHashIntermediate::new(
|
CalculateHashIntermediate::new_without_slot(
|
||||||
0,
|
|
||||||
Hash::new_unique(),
|
Hash::new_unique(),
|
||||||
offset + 1,
|
offset + 1,
|
||||||
0,
|
|
||||||
Pubkey::new_unique(),
|
Pubkey::new_unique(),
|
||||||
),
|
),
|
||||||
];
|
];
|
||||||
|
@ -2052,18 +2048,14 @@ pub mod tests {
|
||||||
|
|
||||||
let offset = 2;
|
let offset = 2;
|
||||||
let input = vec![
|
let input = vec![
|
||||||
vec![CalculateHashIntermediate::new(
|
vec![CalculateHashIntermediate::new_without_slot(
|
||||||
0,
|
|
||||||
Hash::new_unique(),
|
Hash::new_unique(),
|
||||||
u64::MAX - offset,
|
u64::MAX - offset,
|
||||||
0,
|
|
||||||
Pubkey::new_unique(),
|
Pubkey::new_unique(),
|
||||||
)],
|
)],
|
||||||
vec![CalculateHashIntermediate::new(
|
vec![CalculateHashIntermediate::new_without_slot(
|
||||||
0,
|
|
||||||
Hash::new_unique(),
|
Hash::new_unique(),
|
||||||
offset + 1,
|
offset + 1,
|
||||||
0,
|
|
||||||
Pubkey::new_unique(),
|
Pubkey::new_unique(),
|
||||||
)],
|
)],
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue