MCPcopy 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
33async fn assert_empty_dir(dir: &Descriptor) {
34 let dirs = read_dir(dir).await;
35 assert_eq!(dirs.len(), 0);
36}
37
38async fn test_readdir(dir: &Descriptor) {
39 // Check the behavior in an empty directory

Callers 1

test_readdirFunction · 0.70

Calls 1

read_dirFunction · 0.85

Tested by 1

test_readdirFunction · 0.56