GCC Code Coverage Report


Directory: ../
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 0 / 11 / 11
Functions: -% 0 / 6 / 6
Branches: -% 0 / 46 / 46

test/unittest/UnitSystemUtil.cpp
Line Branch Exec Source
1 // Copyright (c) 2021-2026 ChilliBits. All rights reserved.
2 // LCOV_EXCL_START
3
4 #include <gtest/gtest.h>
5
6 #include <util/SystemUtil.h>
7
8 namespace spice::testing {
9
10 using namespace spice::compiler;
11
12 TEST(SystemUtilTest, IsCommandAvailable) {
13 ASSERT_TRUE(SystemUtil::isCommandAvailable("dot"));
14 ASSERT_FALSE(SystemUtil::isCommandAvailable("non-existing-command"));
15 }
16
17 TEST(SystemUtilTest, IsGraphvizInstalled) {
18 ASSERT_TRUE(SystemUtil::isGraphvizInstalled());
19 }
20
21 } // namespace spice::testing
22
23 // LCOV_EXCL_STOP
24