MCPcopy Create free account
hub / github.com/base/base / scenario

Function scenario

acceptance/src/cli.rs:459–468  ·  view source on GitHub ↗
(stage: Status, checks: &[Status])

Source from the content-addressed store, hash-verified

457 use super::*;
458
459 fn scenario(stage: Status, checks: &[Status]) -> ScenarioResult {
460 let config = ScenarioConfig::load("scenarios/smoke.toml").unwrap();
461 let mut result = CliRun::fatal(&config, String::new());
462 result.stages[0].status = stage;
463 result.checks.truncate(checks.len());
464 for (check, status) in result.checks.iter_mut().zip(checks) {
465 check.status = *status;
466 }
467 result
468 }
469
470 fn run(scenarios: Vec<ScenarioResult>) -> RunResult {
471 RunResult {

Calls 3

newFunction · 0.50
truncateMethod · 0.45
lenMethod · 0.45