Re-enable solidity coverage

- Upgrade version
- Re-enable in travis.yml
- Move mocks to contracts folder for instrumentation
This commit is contained in:
Santiago Palladino
2017-12-19 13:34:35 -03:00
parent ddcae6254e
commit 1455a5a942
43 changed files with 127 additions and 1044 deletions

View File

@ -0,0 +1,25 @@
pragma solidity ^0.4.18;
import '../lifecycle/Pausable.sol';
// mock class using Pausable
contract PausableMock is Pausable {
bool public drasticMeasureTaken;
uint256 public count;
function PausableMock() public {
drasticMeasureTaken = false;
count = 0;
}
function normalProcess() external whenNotPaused {
count++;
}
function drasticMeasure() external whenPaused {
drasticMeasureTaken = true;
}
}