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;
7 years ago
import "./../assets/Face.sol";
7 years ago
import "./../assets/PureView.sol";
import "./../assets/CLibrary.sol";
7 years ago
contract TotallyPure is PureView, Face {
7 years ago
uint onehundred = 99;
function usesThem() {
uint y = isPure(1,2);
uint z = isView();
}
7 years ago
function isPure(uint a, uint b) public pure returns (uint){
7 years ago
return a * b;
}
7 years ago
function isView() public view returns (uint){
7 years ago
return notpureview;
}
7 years ago
function isConstant() public constant returns (uint){
return onehundred;
}
7 years ago
function beConstant() public constant returns (uint){
return onehundred;
}
7 years ago
function bePure(uint a, uint b) public pure returns (uint) {
7 years ago
return a + b;
}
7 years ago
function beView() public view returns (uint){
7 years ago
return onehundred;
}
7 years ago
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 {
}
7 years ago
}