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

Function bad_text_syntax

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

Source from the content-addressed store, hash-verified

809// error message.
810#[test]
811fn bad_text_syntax() -> Result<()> {
812 let output = get_wasmtime_command()?
813 .arg("-Ccache=n")
814 .arg("tests/all/cli_tests/bad-syntax.wat")
815 .output()?;
816 assert!(!output.status.success());
817 let stderr = String::from_utf8_lossy(&output.stderr);
818 assert!(
819 stderr.contains("--> tests/all/cli_tests/bad-syntax.wat"),
820 "bad stderr: {stderr}"
821 );
822 Ok(())
823}
824
825#[test]
826#[cfg_attr(not(feature = "component-model"), ignore)]

Callers

nothing calls this directly

Calls 4

get_wasmtime_commandFunction · 0.85
OkFunction · 0.85
outputMethod · 0.80
argMethod · 0.45

Tested by

no test coverage detected