| 482 | } |
| 483 | |
| 484 | bool 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 | |
| 500 | String GDScriptTest::get_text_for_status(GDScriptTest::TestStatus p_status) const { |
| 501 | switch (p_status) { |
no test coverage detected