Use LLVM coverage and LCOV genhtml on Windows OS (#131)

This commit is contained in:
Saikari
2025-12-29 21:11:13 +03:00
committed by GitHub
parent f0145ec68e
commit 0ca471ed4f
8 changed files with 206 additions and 2 deletions

View File

@@ -26,6 +26,10 @@ if(OMATH_ENABLE_COVERAGE)
omath_setup_coverage(${PROJECT_NAME})
endif()
if(OMATH_ENABLE_VALGRIND)
omath_setup_valgrind(${PROJECT_NAME})
endif()
# Skip test discovery for Android/iOS builds or when cross-compiling - binaries cannot run on host
if (NOT (ANDROID OR IOS OR EMSCRIPTEN))
gtest_discover_tests(${PROJECT_NAME})

View File

@@ -49,6 +49,13 @@ namespace
{
Ray ray;
bool expected_clear; // true => segment does NOT hit the triangle
friend std::ostream& operator<<(std::ostream& os, const TraceCase& tc)
{
os << "{ RayStart: (" << tc.ray.start.x << ", " << tc.ray.start.y << ", " << tc.ray.start.z << "), "
<< "RayEnd: (" << tc.ray.end.x << ", " << tc.ray.end.y << ", " << tc.ray.end.z << "), "
<< "Expected: " << (tc.expected_clear ? "True" : "False") << " }";
return os;
}
};
class CanTraceLineParam : public LineTracerFixture,