| 180 | |
| 181 | #ifndef DEBUG_ENABLED |
| 182 | static 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 | |
| 196 | int GDScriptTestRunner::run_tests() { |
no test coverage detected