Skip to content

Commit e20ce9d

Browse files
committed
Disable coverage on failing test print statements
1 parent d0ba82c commit e20ce9d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_remove_trailing_zeros.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ void test()
2626
const auto temp {boost::decimal::detail::remove_trailing_zeros(static_cast<T>(val))};
2727
if (!BOOST_TEST_EQ(temp.trimmed_number, T(1)))
2828
{
29+
// LCOV_EXCL_START
2930
std::cerr << "Input Number: " << val
3031
<< "\nOutput Number: " << temp.trimmed_number
3132
<< "\nZeros removed: " << temp.number_of_removed_zeros << std::endl;
33+
// LCOV_EXCL_STOP
3234
}
3335
}
3436
}
@@ -64,9 +66,11 @@ void test_extended()
6466
const auto temp {boost::decimal::detail::remove_trailing_zeros(val)};
6567
if (!BOOST_TEST_EQ(temp.trimmed_number, detail::uint128(1)))
6668
{
69+
// LCOV_EXCL_START
6770
std::cerr << "Input Number: " << val
6871
<< "\nOutput Number: " << temp.trimmed_number
6972
<< "\nZeros removed: " << temp.number_of_removed_zeros << std::endl;
73+
// LCOV_EXCL_STOP
7074
}
7175
}
7276
}

0 commit comments

Comments
 (0)