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/solidity/contracts/app/TotallyPure.sol

55 lines
1.1 KiB

pragma solidity ^0.5.0;
import "./../../externalSources/Face.sol";
import "./../../externalSources/PureView.sol";
import "./../../externalSources/CLibrary.sol";
contract TotallyPure is PureView, Face {
uint onehundred = 99;
function usesThem() public view {
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 view 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 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 {
}
}