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

Function run_single_file

cranelift/src/run.rs:76–79  ·  view source on GitHub ↗

Run all functions in a file that are succeeded by "run:" comments

(path: &PathBuf)

Source from the content-addressed store, hash-verified

74
75/// Run all functions in a file that are succeeded by "run:" comments
76fn run_single_file(path: &PathBuf) -> Result<()> {
77 let file_contents = read_to_string(&path)?;
78 run_file_contents(file_contents)
79}
80
81/// Main body of `run_single_file` separated for testing
82fn run_file_contents(file_contents: String) -> Result<()> {

Callers 1

runFunction · 0.85

Calls 2

read_to_stringFunction · 0.85
run_file_contentsFunction · 0.85

Tested by

no test coverage detected