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

Function remove_series

nodedb/src/engine/timeseries/last_value_cache.rs:193–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

191
192 #[test]
193 fn remove_series() {
194 let mut cache = LastValueCache::new();
195 let sid = sid(1);
196 cache.update(sid, 100, 10.0);
197 assert!(cache.remove(sid));
198 assert!(cache.get(sid).is_none());
199 assert!(!cache.remove(sid)); // Already removed.
200 }
201
202 #[test]
203 fn clear_cache() {

Callers

nothing calls this directly

Calls 2

sidFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected