()
| 809 | // error message. |
| 810 | #[test] |
| 811 | fn 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)] |
nothing calls this directly
no test coverage detected