| 20 | class VersionTests : public Test {}; |
| 21 | |
| 22 | TEST_F(VersionTests, getCommitHashIsValidHash) |
| 23 | { |
| 24 | EXPECT_TRUE(std::regex_match( |
| 25 | getCommitHash(), |
| 26 | std::regex("^[a-fA-F0-9]{40}$") |
| 27 | )); |
| 28 | } |
| 29 | |
| 30 | TEST_F(VersionTests, getShortCommitHashIsValidHash) |
| 31 | { |
nothing calls this directly
no test coverage detected