MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / check_output

Method check_output

modules/gdscript/tests/gdscript_test_runner.cpp:484–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482}
483
484bool GDScriptTest::check_output(const String &p_output) const {
485 Error err = OK;
486 String expected = FileAccess::get_file_as_string(output_file, &err);
487
488 ERR_FAIL_COND_V_MSG(err != OK, false, "Error when opening the output file.");
489
490 String got = p_output.strip_edges(); ///< @todo May be hacky.
491 got += "\n"; // Make sure to insert newline for CI static checks.
492
493#ifndef DEBUG_ENABLED
494 expected = strip_warnings(expected);
495#endif
496
497 return got == expected;
498}
499
500String GDScriptTest::get_text_for_status(GDScriptTest::TestStatus p_status) const {
501 switch (p_status) {

Callers 8

get_git_infoFunction · 0.80
detect_darwin_sdk_pathFunction · 0.80
is_apple_clangFunction · 0.80
get_compiler_versionFunction · 0.80
get_ar_versionFunction · 0.80

Calls 2

strip_warningsFunction · 0.85
strip_edgesMethod · 0.80

Tested by

no test coverage detected