Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit tests #9

Open
dguido opened this issue Oct 5, 2018 · 3 comments
Open

Add unit tests #9

dguido opened this issue Oct 5, 2018 · 3 comments
Assignees
Milestone

Comments

@dguido
Copy link
Member

dguido commented Oct 5, 2018

No description provided.

@joshwatson
Copy link
Contributor

Do we have a standard unit test framework that we use?

@montyly
Copy link
Member

montyly commented Oct 26, 2018

I dont think so

@Mossberg was working on a fork of solc that could output the edges of a smart contract
We could build unit tests on top of it

@offlinemark
Copy link

offlinemark commented Oct 29, 2018

Yup, the solc fork is here: https://github.com/trailofbits/solidity/tree/basic-block-edges

and some example current output:

[I] mark forge ~/c/e/s/corpus ❯ mysolc qq.sol --bin-runtime
0x7c -> [0x7d]
0xb -> [0xc, 0x3f]
0x3e -> [0x3f, 0x45]
0x4b -> [0x4c, 0x51]
0x57 -> [0x6e]
0x85 -> [0x86, 0x94]
0x93 -> [0x7d]
0x9b -> [0x58]
0xb -> [0xc, 0x11]
Warning: This is a pre-release compiler version, please do not use it in production.
qq.sol:1:1: Warning: Source file does not specify required compiler version!
contract C {
^ (Relevant source part starts here and spans across multiple lines).
qq.sol:3:1: Warning: Function state mutability can be restricted to pure
function x() public returns (uint){
^ (Relevant source part starts here and spans across multiple lines).


@montyly montyly self-assigned this Dec 10, 2018
@montyly montyly added this to the 0.2.0 milestone Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants