Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/base/base
/ drain_empty
Function
drain_empty
crates/execution/flashblocks/src/cache.rs:134–138 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
132
133
#[test]
134
fn drain_empty() {
135
let mut cache = FlashblockCache::new(0);
136
let drained = cache.drain(42);
137
assert!(drained.is_empty());
138
}
139
140
#[test]
141
fn rejects_beyond_cache_limit() {
Callers
nothing calls this directly
Calls
1
drain
Method · 0.45
Tested by
no test coverage detected