Skip to content

Commit c8e11ef

Browse files
committed
Cover last lines of diff
1 parent b3f0f27 commit c8e11ef

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/boost/crypt2/detail/clear_mem.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ constexpr void clear_mem(T& data)
116116
{
117117
if (std::is_constant_evaluated())
118118
{
119-
std::fill(data.begin(), data.end(), static_cast<typename T::value_type>(0));
119+
std::fill(data.begin(), data.end(), static_cast<typename T::value_type>(0)); // LCOV_EXCL_LINE
120120
}
121121
else
122122
{

test/test_sha1.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ void test_class()
145145

146146
const std::string bad_update_msg {"bad"};
147147
BOOST_TEST(hasher.process_bytes(bad_update_msg) == boost::crypt::state::state_error);
148+
BOOST_TEST(hasher.finalize() == boost::crypt::state::state_error);
148149
BOOST_TEST(hasher.get_digest() == boost::crypt::sha1_hasher::return_type{});
149150
}
150151

0 commit comments

Comments
 (0)