MCPcopy Create free account
hub / github.com/base/base / not_cacheable_without_canonical

Function not_cacheable_without_canonical

crates/execution/flashblocks/src/cache.rs:169–173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167
168 #[test]
169 fn not_cacheable_without_canonical() {
170 let mut cache = FlashblockCache { entries: HashMap::new(), latest_canonical: None };
171 assert!(!cache.is_cacheable(1));
172 assert!(!cache.insert(make_flashblock(1, 0)));
173 }
174
175 #[test]
176 fn duplicate_index_keeps_latest() {

Callers

nothing calls this directly

Calls 1

newFunction · 0.50

Tested by

no test coverage detected