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

55 lines
1.0 KiB

pragma solidity ^0.5.0;
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() public view {
7 years ago
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;
}
function isConstant() public view 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;
}
function usesLibrary() public view 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
}