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

Function test_json_log_entry_serialize

atomic-cli/src/commands/log/tests.rs:456–464  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

454
455 #[test]
456 fn test_json_log_entry_serialize() {
457 let entry = create_test_entry_with_header();
458 let json_entry = JsonLogEntry::from_entry(&entry);
459 let json = serde_json::to_string_pretty(&json_entry).unwrap();
460
461 assert!(json.contains("\"sequence\": 42"));
462 assert!(json.contains("\"message\": \"Test change message\""));
463 assert!(json.contains("\"is_tagged\": true"));
464 }
465
466 // Helper Function Tests
467

Callers

nothing calls this directly

Calls 2

unwrapMethod · 0.45

Tested by

no test coverage detected