Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/wasmtime
/ assert_empty_dir
Function
assert_empty_dir
crates/test-programs/src/bin/p3_readdir.rs:33–36 ·
view source on GitHub ↗
(dir: &Descriptor)
Source
from the content-addressed store, hash-verified
31
}
32
33
async fn assert_empty_dir(dir: &Descriptor) {
34
let dirs = read_dir(dir).await;
35
assert_eq!(dirs.len(), 0);
36
}
37
38
async fn test_readdir(dir: &Descriptor) {
39
// Check the behavior in an empty directory
Callers
1
test_readdir
Function · 0.70
Calls
1
read_dir
Function · 0.85
Tested by
1
test_readdir
Function · 0.56