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

Method run_command

fendermint/testing/src/smt.rs:261–270  ·  view source on GitHub ↗
(&self, system: &mut Self::System, cmd: &Self::Command)

Source from the content-addressed store, hash-verified

259 }
260
261 fn run_command(&self, system: &mut Self::System, cmd: &Self::Command) -> Self::Result {
262 use CounterCommand::*;
263 match cmd {
264 Get => return Some(system.get()),
265 Inc => system.inc(),
266 Dec => system.dec(),
267 Reset => system.reset(),
268 }
269 None
270 }
271
272 fn check_result(&self, cmd: &Self::Command, pre_state: &Self::State, result: Self::Result) {
273 if let CounterCommand::Get = cmd {

Callers 1

runFunction · 0.45

Calls 4

incMethod · 0.80
decMethod · 0.80
getMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected