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

Method gen_command

fendermint/testing/src/smt.rs:256–259  ·  view source on GitHub ↗
(&self, u: &mut Unstructured, _state: &Self::State)

Source from the content-addressed store, hash-verified

254 }
255
256 fn gen_command(&self, u: &mut Unstructured, _state: &Self::State) -> Result<Self::Command> {
257 use CounterCommand::*;
258 u.choose(&[Get, Inc, Dec, Reset])
259 }
260
261 fn run_command(&self, system: &mut Self::System, cmd: &Self::Command) -> Self::Result {
262 use CounterCommand::*;

Callers 1

runFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected