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

Function test_header_json_minimal

atomic-core/src/change/header.rs:668–675  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

666
667 #[test]
668 fn test_header_json_minimal() {
669 // Minimal JSON should work
670 let json = r#"{"message": "Test", "timestamp": "2024-01-15T10:30:00Z"}"#;
671 let header: ChangeHeader = serde_json::from_str(json).unwrap();
672 assert_eq!(header.message, "Test");
673 assert!(header.description.is_none());
674 assert!(header.authors.is_empty());
675 }
676
677 #[test]
678 fn test_header_json_full_roundtrip() {

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected