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

Function batch_selector_from_args

packages/server/src/main/batch.rs:663–673  ·  view source on GitHub ↗
(args: &StepOptions)

Source from the content-addressed store, hash-verified

661}
662
663fn batch_selector_from_args(args: &StepOptions) -> ElementSelector {
664 ElementSelector {
665 id: args.value("id").map(str::to_owned),
666 label: args.value("label").map(str::to_owned),
667 value: args.value("value").map(str::to_owned),
668 element_type: args.value("element-type").map(str::to_owned),
669 index: args
670 .value("index")
671 .and_then(|value| value.parse::<usize>().ok()),
672 }
673}
674
675fn parse_bool_value(value: &str) -> Option<bool> {
676 match value.to_ascii_lowercase().as_str() {

Callers 2

run_batch_stepFunction · 0.85
wait_for_batch_selectorFunction · 0.85

Calls 1

valueMethod · 0.80

Tested by

no test coverage detected