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

Function component_enabled_by_default

tests/all/cli_tests.rs:789–806  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

787#[test]
788#[cfg_attr(not(feature = "component-model"), ignore)]
789fn component_enabled_by_default() -> Result<()> {
790 let path = "tests/all/cli_tests/component-basic.wat";
791 let wasm = build_wasm(path)?;
792 let output = get_wasmtime_command()?
793 .arg("-Ccache=n")
794 .arg(wasm.path())
795 .output()?;
796 assert!(output.status.success());
797
798 // also tests with raw *.wat input
799 let output = get_wasmtime_command()?
800 .arg("-Ccache=n")
801 .arg(path)
802 .output()?;
803 assert!(output.status.success());
804
805 Ok(())
806}
807
808// If the text format is invalid then the filename should be mentioned in the
809// error message.

Callers

nothing calls this directly

Calls 6

get_wasmtime_commandFunction · 0.85
OkFunction · 0.85
outputMethod · 0.80
build_wasmFunction · 0.70
argMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected