pub type MockStorage = TestStorage<MockTypes>;Aliased Type§
pub struct MockStorage {
pub inner: Arc<RwLock<TestStorageState<MockTypes>>>,
pub should_return_err: Arc<AtomicBool>,
pub delay_config: DelayConfig,
pub decided_upgrade_certificate: Arc<RwLock<Option<SimpleCertificate<MockTypes, UpgradeProposalData<MockTypes>, UpgradeThreshold>>>>,
}Fields§
§inner: Arc<RwLock<TestStorageState<MockTypes>>>§should_return_err: Arc<AtomicBool>should_return_err is a testing utility to validate negative cases.
delay_config: DelayConfig§decided_upgrade_certificate: Arc<RwLock<Option<SimpleCertificate<MockTypes, UpgradeProposalData<MockTypes>, UpgradeThreshold>>>>