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/integration/projects/libraries/contracts/UsesPure.sol

55 lines
1.0 KiB

pragma solidity ^0.7.0;
7 years ago
import "./_Interface.sol";
import "./PureView.sol";
import "./CLibrary.sol";
7 years ago
contract UsesPure is PureView, _Interface {
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 override {
uint z = a + b;
}
function cry() external override {
}
7 years ago
}