LCOV - code coverage report
Current view: top level - src/compile/tests - test_compile.cpp (source / functions) Hit Total Coverage
Test: all-merged.info Lines: 7 7 100.0 %
Date: 2023-11-07 04:00:59 Functions: 8 8 100.0 %

          Line data    Source code
       1             : #include <gtest/gtest.h>
       2             : #include "compile.hpp"
       3             : 
       4           4 : TEST(info, version) {
       5           1 :     const auto version = compile::info::version_compile();
       6           1 :     EXPECT_FALSE(version.empty());
       7           1 : }
       8             : 
       9           4 : TEST(info, distribution) {
      10           1 :     const auto is_debug = compile::info::is_debug();
      11             : #ifdef _DEBUG
      12           1 :     GTEST_ASSERT_TRUE(is_debug);
      13             : #else
      14             :     GTEST_ASSERT_FALSE(is_debug);
      15             : #endif
      16             : }

Generated by: LCOV version 1.14