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

Function required_f64

packages/server/src/main/batch.rs:602–607  ·  view source on GitHub ↗
(args: &StepOptions, key: &str)

Source from the content-addressed store, hash-verified

600}
601
602fn required_f64(args: &StepOptions, key: &str) -> Result<f64, crate::error::AppError> {
603 args.value(key)
604 .ok_or_else(|| crate::error::AppError::bad_request(format!("Missing --{key}.")))?
605 .parse::<f64>()
606 .map_err(|_| crate::error::AppError::bad_request(format!("--{key} must be numeric.")))
607}
608
609fn batch_selector_json(args: &StepOptions) -> Value {
610 serde_json::json!({

Callers 1

run_batch_stepFunction · 0.85

Calls 1

valueMethod · 0.80

Tested by

no test coverage detected