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

Function test_layer_json_roundtrip

atomic-remote/src/streaming/tests.rs:32–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31#[test]
32fn test_layer_json_roundtrip() {
33 for layer in [Layer::Graph, Layer::Semantic, Layer::Content] {
34 let json = serde_json::to_string(&layer).unwrap();
35 let decoded: Layer = serde_json::from_str(&json).unwrap();
36 assert_eq!(layer, decoded);
37 }
38}
39
40// ── LayerSelection ─────────────────────────────────────────────
41

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected