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