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

Function test_file_metadata_serialization

atomic-core/src/record/item.rs:919–924  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

917
918 #[test]
919 fn test_file_metadata_serialization() {
920 let meta = FileMetadata::executable();
921 let json = serde_json::to_string(&meta).unwrap();
922 let deserialized: FileMetadata = serde_json::from_str(&json).unwrap();
923 assert_eq!(meta, deserialized);
924 }
925
926 // RecordItem Tests
927

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected