MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / no_verify_skips_verifier_entirely

Function no_verify_skips_verifier_entirely

atomic-cli/src/commands/org/set.rs:376–393  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

374 #[test]
375 #[serial]
376 fn no_verify_skips_verifier_entirely() {
377 let _guard = HomeGuard::new();
378 seed_config("old-org");
379
380 // The verifier panics if called — `--no-verify` must short-circuit
381 // before reaching it.
382 let cmd = OrgSet {
383 slug: "new-org".to_string(),
384 no_verify: true,
385 };
386
387 let result =
388 cmd.run_with_verifier(|_| panic!("verifier must not be called when no_verify is true"));
389 assert!(result.is_ok());
390
391 let after = GlobalConfig::load().unwrap();
392 assert_eq!(after.server.default_org.as_deref(), Some("new-org"));
393 }
394}

Callers

nothing calls this directly

Calls 3

seed_configFunction · 0.70
run_with_verifierMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected