MCPcopy Index your code
hub / github.com/endbasic/endbasic / check_stmt_compilation_err

Function check_stmt_compilation_err

std/src/testutils.rs:1166–1168  ·  view source on GitHub ↗

Executes `stmt` on a default `Tester` instance and checks that it fails with `exp_error` during compilation.

(exp_error: S, stmt: &str)

Source from the content-addressed store, hash-verified

1164/// Executes `stmt` on a default `Tester` instance and checks that it fails with `exp_error`
1165/// during compilation.
1166pub fn check_stmt_compilation_err<S: Into<String>>(exp_error: S, stmt: &str) {
1167 Tester::default().run(stmt).expect_compilation_err(exp_error).check();
1168}
1169
1170/// Executes `expr` on a scripting interpreter and ensures that the result is `exp_value`.
1171pub fn check_expr_ok<V: Into<ConstantDatum>>(exp_value: V, expr: &str) {

Callers 15

test_disasm_errorsFunction · 0.85
test_edit_errorsFunction · 0.85
test_list_errorsFunction · 0.85
test_new_errorsFunction · 0.85
test_run_errorsFunction · 0.85
test_clear_errorsFunction · 0.85
test_read_errorsFunction · 0.85
test_restore_errorsFunction · 0.85
test_deg_rad_errorsFunction · 0.85
test_randomize_and_rndFunction · 0.85
test_sleep_errorsFunction · 0.85
test_cls_errorsFunction · 0.85

Calls 3

checkMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected