Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print account address in state transition test failures #621

Merged
merged 1 commit into from
Apr 24, 2023

Conversation

gumb0
Copy link
Member

@gumb0 gumb0 commented Apr 24, 2023

No description provided.

@codecov
Copy link

codecov bot commented Apr 24, 2023

Codecov Report

Merging #621 (e6649b2) into master (1831ed4) will decrease coverage by 0.02%.
The diff coverage is 80.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #621      +/-   ##
==========================================
- Coverage   97.30%   97.29%   -0.02%     
==========================================
  Files          79       79              
  Lines        7679     7680       +1     
==========================================
  Hits         7472     7472              
- Misses        207      208       +1     
Flag Coverage Δ
blockchaintests 65.16% <ø> (ø)
statetests 63.11% <ø> (ø)
unittests 94.84% <80.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
test/unittests/state_transition.cpp 97.22% <80.00%> (-2.78%) ⬇️

@gumb0 gumb0 requested review from axic, chfast and rodiazet April 24, 2023 11:06
}
if (expected_acc.balance.has_value())
{
EXPECT_EQ(acc->balance, *expected_acc.balance)
<< to_string(acc->balance) << " vs " << to_string(*expected_acc.balance);
<< to_string(acc->balance) << " vs " << to_string(*expected_acc.balance)
<< " account " << addr;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to ass unit test here? I think I was adding in a different PR

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I doubt so, as this is a fixture code... other lines here are also not tested, they are just "covered" because they are being run during (succeeding) tests in unit test sute.

@gumb0 gumb0 merged commit 8708f24 into master Apr 24, 2023
@gumb0 gumb0 deleted the state-transition-print-account branch April 24, 2023 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants