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

Source from the content-addressed store, hash-verified

518
519 #[test]
520 fn test_format_json_no_sequence() {
521 let cmd = ChangeCmd::new();
522 let change = create_test_change();
523 let hash = Hash::of(b"test");
524 let output = cmd.format_json(&change, &hash, None);
525
526 let parsed: serde_json::Value = serde_json::from_str(&output).unwrap();
527 assert!(parsed.get("sequence").is_none() || parsed["sequence"].is_null());
528 }
529
530 #[test]
531 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