MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / test_script_text

Function test_script_text

tests/test_bytecode.h:205–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205inline 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
215inline 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

Callers 2

test_scriptFunction · 0.85
test_bytecode.hFile · 0.85

Calls 5

test_script_binaryFunction · 0.85
compile_code_stringMethod · 0.80
is_validMethod · 0.45
get_error_messageMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected