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

59 lines
1.1 KiB

pragma solidity ^0.4.21;
import "./../assets/Face.sol";
import "./../assets/PureView.sol";
import "./../assets/CLibrary.sol";
contract TotallyPure is PureView, Face {
uint onehundred = 99;
function usesThem() {
uint y = isPure(1,2);
uint z = isView();
}
function isPure(uint a, uint b) public pure returns (uint){
return a * b;
}
function isView() public view returns (uint){
return notpureview;
}
function isConstant() public constant returns (uint){
return onehundred;
}
function beConstant() public constant returns (uint){
return onehundred;
}
function bePure(uint a, uint b) public pure returns (uint) {
return a + b;
}
function beView() public view returns (uint){
return onehundred;
}
function usesLibrary() public constant returns (uint){
return CLibrary.a();
}
function multiline(uint x,
uint y)
public
view
returns (uint)
{
return onehundred;
}
function stare(uint a, uint b) external {
uint z = a + b;
}
function cry() external {
}
}