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

Function test_local_byte_json_roundtrip

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

Source from the content-addressed store, hash-verified

427
428 #[test]
429 fn test_local_byte_json_roundtrip() {
430 let local = LocalByte::new("data.bin", 10, 2048);
431 let json = serde_json::to_string(&local).unwrap();
432 let parsed: LocalByte = serde_json::from_str(&json).unwrap();
433 assert_eq!(local, parsed);
434 }
435
436 #[test]
437 fn test_local_byte_json_with_inode() {

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected