Open theethernaut opened 3 years ago
@i-stam a couple of things since you own this epic:
1) Let me suggest that Tasks in epics are easily measurable goals, so that we can make them finite. E.g. "Finish test coverage" could be "Take all L2 bridge related contracts to > 90% test coverage". I'm suggesting 90% because I think it makes more sense to hit > 95% in phase c, when things are more mature.
2) I just took a look at hitting the two internal functions in SecondaryDeposit.sol that aren't yet covered, namely
function synthetix() internal view returns (ISynthetix)
function rewardEscrow() internal view returns (IRewardEscrow)
I think the latter we can just comment it out, because no external code uses it yet. The first one is super tricky because it raises the question of doing what test:multi-same-chain does, but here. To hit it, I would have to be able to call mintSecondaryDeposit
without reverting in the initial require statements, which I could easily fake, but, we already do that in the unit tests right? Faking it here wouldn't make this a very good integration test. So, one thing we could do is bring in the test:multi-same-chain here, and get rid of it, since that test does hit the function but is not measured in coverage. A lot of work for just hitting one additional line. We should discuss this and choose what to do.rewardEscrow()
should have been commented out, agreed. I get what you are saying, maybe for the moment being we can leave it as is till we bring the multi-test here. I don't think it is worth spending more time hitting this line now.@i-stam Ok then, super silly PR that comments out the unused code. It should result in increased test coverage. https://github.com/Synthetixio/synthetix/pull/804
Can you also link to: https://github.com/Synthetixio/synthetix/pull/803
We really want these epics to be a summary of all ongoing work
Tasks