@nikita_tsigelnikov @nniikkpp
From what I gathered, number of branches is equal to the number of control statements.
https://ethereum.stackexchange.com/questions/122516/what-is-the-branch-column-for-in-solidity-coverage

The problem is, I have 3 control statements and each of them are covered at least twice.
All conditions for each of the 3 are tested.

Any idea where the remaining branch % may come from?

Apr 28, 2022, 2:46 PM
It seems like you don’t have tests for “else” statement, only for if.
It will be better to see your code snippet
Apr 28, 2022, 2:51 PM
No "elses" in my solution :)
Apr 28, 2022, 2:53 PM
You need tests where statement in require will be false
Apr 28, 2022, 2:54 PM
Couldn't group multiple requires in a single modifier either.
Sure, I'll make those.
Apr 28, 2022, 2:54 PM
You can do that but you really shouldn't
Ahahahah
Apr 28, 2022, 2:57 PM

© 2024 Draquery.com All rights reserved.