Code coverage for Solidity smart-contracts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
solidity-coverage/test/sources/cli/TotallyPure.sol

42 lines
797 B

//pragma experimental "v0.5.0";
pragma solidity ^0.4.17;
7 years ago
import "./../assets/PureView.sol";
import "./../assets/CLibrary.sol";
7 years ago
contract TotallyPure is PureView {
uint onehundred = 99;
function usesThem() {
uint y = isPure(1,2);
uint z = isView();
}
function isPure(uint a, uint b) pure returns (uint){
return a * b;
}
function isView() view returns (uint){
return notpureview;
}
function isConstant() constant returns (uint){
return onehundred;
}
function beConstant() constant returns (uint){
return onehundred;
}
7 years ago
function bePure(uint a, uint b) pure returns (uint) {
return a + b;
}
function beView() view returns (uint){
return onehundred;
}
function usesLibrary() constant returns (uint){
return CLibrary.a();
}
7 years ago
}