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

Source from the content-addressed store, hash-verified

636 #[test]
637 #[serial]
638 fn test_change_run_json_format() {
639 let _guard = TestGuard::new();
640
641 let _repo = Repository::init(".").unwrap();
642
643 let cmd = ChangeCmd::new().with_format(ChangeFormat::Json);
644 let result = cmd.run();
645
646 // Will fail (no changes) but shouldn't panic
647 assert!(result.is_err());
648 }
649
650 #[test]
651 #[serial]

Callers

nothing calls this directly

Calls 3

unwrapMethod · 0.45
with_formatMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected