Expand description
The storage::tests module contains test vectors that implementations of the Storage trait should pass. These can be called with a Storage implementation as part of a test.
These are public so that implementors of the Storage trait (in other libraries or binaries) can call them.
Functionsยง
- do_
ensure_ no_ error_ remove_ nonexistent_ key - Test that a remove of a non-existent key causes no errors
- do_
return_ none_ for_ wrong_ value_ type - Test that the implementation returns None for a mismatch between value types
- do_
test_ set_ get_ remove_ bool - Test that the implementation stores, retrieves, and clears bool values correctly.
- do_
test_ set_ get_ remove_ int - Test that the implementation stores, retrieves, and clears int values correctly.
- do_
test_ set_ get_ remove_ string - These are tests for verifying that a given Storage implementation acts as expected. Test that the implementation stores, retrieves, and clears String values correctly.
- do_
test_ set_ get_ remove_ time - Test that the implementation stores, retrieves, and clears bool values correctly.
- do_
test_ set_ option_ int - Test that the implementation stores, retrieves, and clears Option
values correctly.