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

Function test_json_change_serialize

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

Source from the content-addressed store, hash-verified

398
399 #[test]
400 fn test_json_change_serialize() {
401 let change = create_test_change();
402 let hash = Hash::of(b"test change");
403 let json_change = JsonChange::from_change(&change, &hash, None);
404
405 let json = serde_json::to_string_pretty(&json_change).unwrap();
406 assert!(json.contains("\"message\": \"Test change message\""));
407 assert!(json.contains("\"description\": \"This is a description\""));
408 }
409
410 // Helper Function Tests
411

Callers

nothing calls this directly

Calls 2

create_test_changeFunction · 0.70
unwrapMethod · 0.45

Tested by

no test coverage detected