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

Function test_format_json_no_sequence

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

Source from the content-addressed store, hash-verified

487
488 #[test]
489 fn test_format_json_no_sequence() {
490 let cmd = ChangeCmd::new();
491 let change = create_test_change();
492 let hash = Hash::of(b"test");
493 let output = cmd.format_json(&change, &hash, None);
494
495 let parsed: serde_json::Value = serde_json::from_str(&output).unwrap();
496 assert!(parsed.get("sequence").is_none() || parsed["sequence"].is_null());
497 }
498
499 #[test]
500 fn test_hunk_display_summaries_coalesce_same_path() {

Callers

nothing calls this directly

Calls 3

create_test_changeFunction · 0.70
format_jsonMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected