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

Method generate_output

modules/gdscript/tests/gdscript_test_runner.cpp:697–715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

695}
696
697bool GDScriptTest::generate_output() {
698 TestResult result = execute_test_code(true);
699 if (result.status == GDTEST_LOAD_ERROR) {
700 return false;
701 }
702
703 Error err = OK;
704 Ref<FileAccess> out_file = FileAccess::open(output_file, FileAccess::WRITE, &err);
705 if (err != OK) {
706 return false;
707 }
708
709 String output = result.output.strip_edges(); ///< @todo May be hacky.
710 output += "\n"; // Make sure to insert newline for CI static checks.
711
712 out_file->store_string(output);
713
714 return true;
715}
716
717} // namespace GDScriptTests

Callers 1

generate_outputsMethod · 0.80

Calls 2

strip_edgesMethod · 0.80
store_stringMethod · 0.80

Tested by

no test coverage detected