Skip to content

Commit

Permalink
Exclude span tests from codecov since they end up being constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Oct 21, 2024
1 parent 5aafe27 commit 84d2e99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_md5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,8 @@ void test_invalid_state()
BOOST_TEST(current_state == boost::crypt::hasher_state::null);
}

// This ends up being completely calculated in a constexpr fashion so Codecov complains
// LCOV_EXCL_START
void test_span()
{
#ifdef BOOST_CRYPT_HAS_SPAN
Expand All @@ -476,6 +478,7 @@ void test_span()

#endif // BOOST_CRYPT_HAS_SPAN
}
// LCOV_EXCL_STOP

int main()
{
Expand Down
3 changes: 3 additions & 0 deletions test/test_sha1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,8 @@ void test_invalid_state()
BOOST_TEST(current_state == boost::crypt::hasher_state::null);
}

// This ends up being completely calculated in a constexpr fashion so Codecov complains
// LCOV_EXCL_START
void test_span()
{
#ifdef BOOST_CRYPT_HAS_SPAN
Expand All @@ -471,6 +473,7 @@ void test_span()

#endif // BOOST_CRYPT_HAS_SPAN
}
// LCOV_EXCL_STOP

int main()
{
Expand Down

0 comments on commit 84d2e99

Please sign in to comment.