MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / value

Method value

packages/server/src/main/batch.rs:560–566  ·  view source on GitHub ↗
(&self, key: &str)

Source from the content-addressed store, hash-verified

558
559impl StepOptions {
560 fn value(&self, key: &str) -> Option<&str> {
561 self.values
562 .iter()
563 .rev()
564 .find(|(candidate, _)| candidate == key)
565 .map(|(_, value)| value.as_str())
566 }
567
568 fn flag(&self, key: &str) -> bool {
569 self.flags.iter().any(|candidate| candidate == key)

Callers 7

batch_line_to_json_stepFunction · 0.80
run_batch_stepFunction · 0.80
required_f64Function · 0.80
batch_expectation_jsonFunction · 0.80
batch_selector_from_argsFunction · 0.80
wait_for_batch_selectorFunction · 0.80

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected