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

Function check_stmt_err

std/src/testutils.rs:1160–1162  ·  view source on GitHub ↗

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

(exp_error: S, stmt: &str)

Source from the content-addressed store, hash-verified

1158
1159/// Executes `stmt` on a default `Tester` instance and checks that it fails with `exp_error`.
1160pub fn check_stmt_err<S: Into<String>>(exp_error: S, stmt: &str) {
1161 Tester::default().run(stmt).expect_err(exp_error).check();
1162}
1163
1164/// Executes `stmt` on a default `Tester` instance and checks that it fails with `exp_error`
1165/// during compilation.

Callers 15

test_load_errorsFunction · 0.85
test_read_errorsFunction · 0.85
test_sleep_errorsFunction · 0.85
test_color_errorsFunction · 0.85
test_input_errorsFunction · 0.85
test_locate_errorsFunction · 0.85
test_print_errorsFunction · 0.85
check_pin_validationFunction · 0.85
test_real_backendFunction · 0.85
test_gpio_setup_errorsFunction · 0.85
check_errors_two_xyFunction · 0.85
check_errors_three_xyFunction · 0.85

Calls 3

checkMethod · 0.45
expect_errMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected