| 203 | } |
| 204 | |
| 205 | inline void test_script_text(const String &script_name, const String &helper_script_text, int revision, bool helper_script, bool no_text_equality_check, bool compare_whitespace = false) { |
| 206 | auto decomp = GDScriptDecomp::create_decomp_for_commit(revision); |
| 207 | CHECK(decomp.is_valid()); |
| 208 | auto bytecode = decomp->compile_code_string(helper_script_text); |
| 209 | auto compile_error_message = decomp->get_error_message(); |
| 210 | CHECK(compile_error_message == ""); |
| 211 | CHECK(bytecode.size() > 0); |
| 212 | test_script_binary(script_name, bytecode, helper_script_text, revision, helper_script, no_text_equality_check, compare_whitespace); |
| 213 | } |
| 214 | |
| 215 | inline void test_script(const String &helper_script_path, int revision, bool helper_script, bool no_text_equality_check) { |
| 216 | // tests are located in modules/gdsdecomp/helpers |
no test coverage detected