Expand description
A set of primitive constructors, to aid in crafting meaningful testcase while reducing repetition.
Note that dummy_
prefixed values are meant to be fillers, that should not matter, and will
contain randomness based data.
Re-exports§
pub use rand;
Structs§
- A special
Rng
that always returns zero for testing something that implied to be random but should not be random in the tests - Builder for
CandidateReceipt
.
Functions§
- Create candidate commitments with filler data.
- Create a candidate descriptor with filler data.
- Create a candidate descriptor with a bogus signature and filler data.
- Create a v2 candidate descriptor with filler data.
- Creates a candidate receipt with filler data.
- Create a candidate receipt with a bogus signature and filler data. Optionally set the commitment hash with the
commitments
arg. - Creates a v2 candidate receipt with filler data.
- Create a candidate receipt with a bogus signature and filler data. Optionally set the commitment hash with the
commitments
arg. - Create a meaningless collator id.
- Create a meaningless collator signature. It is important to not be 0, as we’d confuse v1 and v2 descriptors.
- Creates a committed candidate receipt with filler data.
- Creates a v2 committed candidate receipt with filler data.
- Create meaningless dummy digest.
- Create meaningless dummy hash.
- Create meaningless head data.
- Create a meaningless persisted validation data.
- Creates a meaningless signature
- Create meaningless validation code.
- Create a meaningless validator id.
- Create a meaningless candidate, returning its receipt and PVD.
- Create a meaningless v2 candidate, returning its receipt and PVD.
- Create a new candidate descriptor, and apply a valid signature using the provided
collator
key. - Create a v2 candidate descriptor.
- After manually modifying the candidate descriptor, resign with a defined collator key.
- Extracts validators’s public keys (
ValidatorId
) fromSr25519Keyring
- Create a zeroed collator signature.