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

Function strip_warnings

modules/gdscript/tests/gdscript_test_runner.cpp:182–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180
181#ifndef DEBUG_ENABLED
182static String strip_warnings(const String &p_expected) {
183 // On release builds we don't have warnings. Here we remove them from the output before comparison
184 // so it doesn't fail just because of difference in warnings.
185 String expected_no_warnings;
186 for (String line : p_expected.split("\n")) {
187 if (line.begins_with("~~ ")) {
188 continue;
189 }
190 expected_no_warnings += line + "\n";
191 }
192 return expected_no_warnings.strip_edges() + "\n";
193}
194#endif
195
196int GDScriptTestRunner::run_tests() {

Callers 2

run_testsMethod · 0.85
check_outputMethod · 0.85

Calls 3

splitMethod · 0.80
begins_withMethod · 0.80
strip_edgesMethod · 0.80

Tested by

no test coverage detected