MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / roundtrip

Function roundtrip

nodedb-wal/src/temporal_purge.rs:156–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

154
155 #[test]
156 fn roundtrip() {
157 let p =
158 TemporalPurgePayload::new(TemporalPurgeEngine::EdgeStore, "users", 1_000_000_000, 42);
159 let bytes = p.to_bytes().unwrap();
160 let decoded = TemporalPurgePayload::from_bytes(&bytes).unwrap();
161 assert_eq!(p, decoded);
162 }
163
164 #[test]
165 fn all_engine_tags_roundtrip() {

Callers

nothing calls this directly

Calls 1

to_bytesMethod · 0.45

Tested by

no test coverage detected