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

Function test_change_run_json_format

atomic-cli/src/commands/change/tests.rs:607–617  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

605 #[test]
606 #[serial]
607 fn test_change_run_json_format() {
608 let _guard = TestGuard::new();
609
610 let _repo = Repository::init(".").unwrap();
611
612 let cmd = ChangeCmd::new().with_format(ChangeFormat::Json);
613 let result = cmd.run();
614
615 // Will fail (no changes) but shouldn't panic
616 assert!(result.is_err());
617 }
618
619 #[test]
620 #[serial]

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
with_formatMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected