size_mismatch_error test added

This commit is contained in:
Rostyslav Tyshko 2025-05-02 17:27:55 -04:00
parent 3e46393b0b
commit d351958458

View File

@ -311,5 +311,11 @@ mod tests {
assert!(matches!(rewrite_result, Err(PrivateStateError::EmptyWrite)));
}
#[test]
fn test_read_size_mismatch_error() {
let state = PrivateSCState::new();
let result = read_num_bytes_start(&state, PRIVATE_BLOB_SIZE * 2);
assert!(matches!(result, Err(PrivateStateError::ReadSizeMismatch(_, _))));
}
}