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

Function test_load_errors

std/src/program.rs:847–863  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

845
846 #[test]
847 fn test_load_errors() {
848 check_load_save_common_errors("LOAD");
849
850 Tester::default()
851 .run("LOAD")
852 .expect_compilation_err("1:1: LOAD expected filename$")
853 .check();
854
855 check_stmt_err("1:1: Entry not found", r#"LOAD "missing-file""#);
856
857 Tester::default()
858 .write_file("mismatched-extension.bat", "")
859 .run(r#"LOAD "mismatched-extension""#)
860 .expect_err("1:1: Entry not found")
861 .expect_file("MEMORY:/mismatched-extension.bat", "")
862 .check();
863 }
864
865 #[test]
866 fn test_new_nothing() {

Callers

nothing calls this directly

Calls 8

check_stmt_errFunction · 0.85
write_fileMethod · 0.80
checkMethod · 0.45
runMethod · 0.45
expect_fileMethod · 0.45
expect_errMethod · 0.45

Tested by

no test coverage detected