Open akuanti opened 6 years ago
--------------------|----------|----------|----------|----------|----------------|
File | % Stmts | % Branch | % Funcs | % Lines |Uncovered Lines |
--------------------|----------|----------|----------|----------|----------------|
contracts/ | 98.87 | 77.11 | 98.18 | 98.52 | |
PLCRVoting.sol | 96.2 | 55.17 | 95.45 | 95.24 |102,103,105,370 |
Parameterizer.sol | 100 | 84.09 | 100 | 100 | |
Registry.sol | 100 | 92.19 | 100 | 100 | |
--------------------|----------|----------|----------|----------|----------------|
All files | 98.87 | 77.11 | 98.18 | 98.52 | |
--------------------|----------|----------|----------|----------|----------------|
We do not quite reach 85% branch coverage in Parameterizer.sol
due to several calls to token.transfer()
, as well as some assertions.
As of f89eb89, coverage output looks like this:
% Stmts
should be at least 95% and% Branch
should be at least 85%. These targets currently exclude tests for where token transfers fail. They also excludePLCRVoting.sol
, since that will be consumed from EPM in the future, and the tests really belong in thePLCRVoting
repository.Non-covered test cases to be added:
Parameterizer
proposeRarameterization
challengeReparameterization
processProposal
dispensationPct
is greater than 100pDispensationPct
is greater than 100claimReward
resolveChallenge
processBy
date has passedRegistry
apply
minDeposit
withdraw
exit
challenge
determineReward