MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / run

Method run

crates/test-programs/src/bin/p3_readdir.rs:11–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10impl test_programs::p3::exports::wasi::cli::run::Guest for Component {
11 async fn run() -> Result<(), ()> {
12 let preopens = wasi::filesystem::preopens::get_directories();
13 let (dir, _) = &preopens[0];
14
15 test_readdir(dir).await;
16 test_readdir_lots(dir).await;
17 Ok(())
18 }
19}
20
21fn main() {

Callers

nothing calls this directly

Calls 3

test_readdirFunction · 0.85
test_readdir_lotsFunction · 0.85
OkFunction · 0.85

Tested by

no test coverage detected