Skip to content

Commit

Permalink
Output failed test case index in EOF validation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 committed Feb 16, 2024
1 parent 74a8631 commit c1b4f82
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/unittests/eof_validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,11 @@ std::string_view get_tests_error_message(EOFValidationError err) noexcept

void eof_validation::TearDown()
{
for (const auto& test_case : test_cases)
for (size_t i = 0; i < test_cases.size(); ++i)
{
const auto& test_case = test_cases[i];
EXPECT_EQ(evmone::validate_eof(rev, test_case.container), test_case.error)
<< test_case.name << "\n"
<< "test case " << i << " " << test_case.name << "\n"

Check warning on line 119 in test/unittests/eof_validation.cpp

View check run for this annotation

Codecov / codecov/patch

test/unittests/eof_validation.cpp#L119

Added line #L119 was not covered by tests
<< hex(test_case.container);
}

Expand Down

0 comments on commit c1b4f82

Please sign in to comment.