Formats the duration in seconds to 3 decimal places. This is done because some genius defined Maven Surefire schema in a way that only accepts 3 decimal places, and tools like Jenkins use that schema for validation JUnit reporter output.
| 11041 | // in a way that only accepts 3 decimal places, and tools like |
| 11042 | // Jenkins use that schema for validation JUnit reporter output. |
| 11043 | std::string formatDuration( double seconds ) { |
| 11044 | ReusableStringStream rss; |
| 11045 | rss << std::fixed << std::setprecision( 3 ) << seconds; |
| 11046 | return rss.str(); |
| 11047 | } |
| 11048 | |
| 11049 | static void normalizeNamespaceMarkers(std::string& str) { |
| 11050 | std::size_t pos = str.find( "::" ); |
no test coverage detected