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

Function test_serde_strict

atomic-core/src/crdt/apply/options.rs:840–845  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

838
839 #[test]
840 fn test_serde_strict() {
841 let options = ApplyOptions::strict();
842 let json = serde_json::to_string(&options).unwrap();
843 let restored: ApplyOptions = serde_json::from_str(&json).unwrap();
844 assert_eq!(options, restored);
845 }
846
847 #[test]
848 fn test_serde_lenient() {

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected