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

Function test_local_json_roundtrip

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

Source from the content-addressed store, hash-verified

341
342 #[test]
343 fn test_local_json_roundtrip() {
344 let local = Local::new("src/main.rs", 42);
345 let json = serde_json::to_string(&local).unwrap();
346 let parsed: Local = serde_json::from_str(&json).unwrap();
347 assert_eq!(local, parsed);
348 }
349
350 #[test]
351 fn test_local_json_full_roundtrip() {

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected