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

Method generate_outputs

modules/gdscript/tests/gdscript_test_runner.cpp:231–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231bool GDScriptTestRunner::generate_outputs() {
232 is_generating = true;
233
234 if (!make_tests()) {
235 print_line("Failed to generate a test output.");
236 return false;
237 }
238
239 if (!generate_class_index()) {
240 return false;
241 }
242
243 for (int i = 0; i < tests.size(); i++) {
244 GDScriptTest test = tests[i];
245 if (print_filenames) {
246 print_line(test.get_source_relative_filepath());
247 } else {
248 OS::get_singleton()->print(".");
249 }
250
251 bool result = test.generate_output();
252
253 if (!result) {
254 print_line("\nCould not generate output for " + test.get_source_file());
255 return false;
256 }
257 }
258 print_line("\nGenerated output files for " + itos(tests.size()) + " tests successfully.");
259
260 return true;
261}
262
263bool GDScriptTestRunner::make_tests_for_dir(const String &p_dir) {
264 Error err = OK;

Callers 1

handle_cmdlineMethod · 0.80

Calls 7

print_lineFunction · 0.85
itosFunction · 0.85
generate_outputMethod · 0.80
get_source_fileMethod · 0.80
sizeMethod · 0.65
printMethod · 0.45

Tested by

no test coverage detected