Skip to main content

Module testing

Module testing 

Source
Expand description

Testing-only StateMgr that stores values in a hash table.

Re-exportsยง

use crate::err::Action; ๐Ÿ”’
use crate::err::ErrorSource; ๐Ÿ”’
use crate::err::Resource; ๐Ÿ”’
use crate::Error; ๐Ÿ”’
use crate::LockStatus; ๐Ÿ”’
use crate::Result; ๐Ÿ”’
use crate::StateMgr; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use serde::de::DeserializeOwned; ๐Ÿ”’
use std::collections::HashMap; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use std::sync::Mutex; ๐Ÿ”’

Structsยง

TestingStateMgr
A state manager for testing support, that allows simulating persistence without having to store anything to disk.
TestingStateMgrInner ๐Ÿ”’
The inner state of a TestingStateMgr.
TestingStateMgrStorage ๐Ÿ”’
Implementation type for TestingStateMgr: represents an underlying storage system that can be shared by multiple TestingStateMgr instances at a time, only one of which can hold the lock.