Expand description
Prelude to be used for pallet testing, for ease of use.
Modules§
- bounded_
btree_ map - Traits, types and structs to support a bounded BTreeMap.
- bounded_
vec - Traits, types and structs to support putting a bounded vector into storage, as a raw value, map or a double map.
Macros§
- assert_
eq_ error_ rate - Copied from
sp-runtime
and documented there. - assert_
err - Assert an expression returns an error specified.
- assert_
err_ ignore_ postinfo - Assert an expression returns an error specified.
- assert_
err_ with_ weight - Assert an expression returns error with the given weight.
- assert_
error_ encoded_ size - Assert that the maximum encoding size does not exceed the value defined in
MAX_MODULE_ERROR_ENCODED_SIZE
during compilation. - assert_
noop - Evaluate an expression, assert it returns an expected
Err
value and that runtime storage has not been mutated (i.e. expression is a no-operation). - assert_
ok - Panic if an expression doesn’t evaluate to
Ok
. - assert_
storage_ noop - Evaluate any expression and assert that runtime storage has not been mutated (i.e. expression is a storage no-operation).
- bounded_
btree_ map - Build a bounded btree-map from the given literals.
- bounded_
vec - Build a bounded vec from the given literals.
- parameter_
types - Create new implementations of the
Get
trait.
Traits§
- Get
- A trait for querying a single value from a type.