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

Function gdpr_erasure_distinct_from_tombstone

nodedb-array/src/query/ceiling.rs:157–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

155
156 #[test]
157 fn gdpr_erasure_distinct_from_tombstone() {
158 let v1 = payload(0, OPEN_UPPER, 1);
159 let versions = vec![
160 (TileId::new(1, 200), CELL_GDPR_ERASURE_SENTINEL),
161 (TileId::new(1, 100), v1.as_slice()),
162 ];
163 let result = ceiling_resolve_cell(versions, &[], &live_params(300, None)).unwrap();
164 assert!(matches!(result, CeilingResult::Erased));
165 assert!(!matches!(result, CeilingResult::Tombstoned));
166 }
167
168 #[test]
169 fn valid_time_filter_falls_back_to_older_version() {

Callers

nothing calls this directly

Calls 3

ceiling_resolve_cellFunction · 0.85
live_paramsFunction · 0.85
payloadFunction · 0.70

Tested by

no test coverage detected