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.
|
|
|
pragma solidity ^0.5.0;
|
|
|
|
|
|
|
|
import "./../assets/Face.sol";
|
|
|
|
import "./../assets/PureView.sol";
|
|
|
|
import "./../assets/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 {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|