MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / arbitrary

Method arbitrary

fendermint/vm/message/src/ipc.rs:120–126  ·  view source on GitHub ↗
(g: &mut Gen)

Source from the content-addressed store, hash-verified

118
119 impl Arbitrary for IpcMessage {
120 fn arbitrary(g: &mut Gen) -> Self {
121 match u8::arbitrary(g) % 3 {
122 0 => IpcMessage::BottomUpResolve(Arbitrary::arbitrary(g)),
123 1 => IpcMessage::BottomUpExec(Arbitrary::arbitrary(g)),
124 _ => IpcMessage::TopDownExec(Arbitrary::arbitrary(g)),
125 }
126 }
127 }
128
129 impl<T: Arbitrary> Arbitrary for SignedRelayedMessage<T> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected