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

Function test_local_json_full_roundtrip

atomic-core/src/change/local.rs:351–356  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

349
350 #[test]
351 fn test_local_json_full_roundtrip() {
352 let local = Local::new("path/to/deep/file.txt", 999);
353 let json = serde_json::to_string(&local).unwrap();
354 let parsed: Local = serde_json::from_str(&json).unwrap();
355 assert_eq!(local, parsed);
356 }
357
358 // LocalByte Tests
359

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected