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:322–339  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

320 #[test]
321 #[serial]
322 fn no_verify_skips_verifier_entirely() {
323 let _guard = HomeGuard::new();
324 seed_config("old-org");
325
326 // The verifier panics if called — `--no-verify` must short-circuit
327 // before reaching it.
328 let cmd = OrgSet {
329 slug: "new-org".to_string(),
330 no_verify: true,
331 };
332
333 let result =
334 cmd.run_with_verifier(|_| panic!("verifier must not be called when no_verify is true"));
335 assert!(result.is_ok());
336
337 let after = GlobalConfig::load().unwrap();
338 assert_eq!(after.server.default_org.as_deref(), Some("new-org"));
339 }
340}

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