Add test_helpers (#474)
* Add set_enterprise_attestation in TestEnv * Add test_helpers for Test Unification * Used it in structured fuzzer and enterprise attestation unittests * Restructure test_helpers * Rename setup_enterprise_attestation to enable_
This commit is contained in:
4
src/env/test/mod.rs
vendored
4
src/env/test/mod.rs
vendored
@@ -10,7 +10,7 @@ use rand::rngs::StdRng;
|
||||
use rand::{Rng, SeedableRng};
|
||||
use rng256::Rng256;
|
||||
|
||||
mod customization;
|
||||
pub mod customization;
|
||||
mod upgrade_storage;
|
||||
|
||||
pub struct TestEnv {
|
||||
@@ -26,7 +26,7 @@ pub struct TestRng256 {
|
||||
}
|
||||
|
||||
impl TestRng256 {
|
||||
pub fn seed_rng_from_u64(&mut self, state: u64) {
|
||||
pub fn seed_from_u64(&mut self, state: u64) {
|
||||
self.rng = StdRng::seed_from_u64(state);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user