Coder Social home page Coder Social logo

coverage's People

Contributors

jalextowle avatar

Watchers

 avatar

coverage's Issues

Constructor Analysis

After modifying ganache-core and ganache-cli to print the codehash and the bytecode of a given contract, it has become apparent that the bytecode will not be printed if the currently executing code is the code of a constructor (this makes sense because the code is stored after the call to the constructor).

With this in mind, I am going to continue to address the parts of analysis that do not have this issue, and return to this consideration later.

Input Format

Goal

To create new test cases as well as to create the code coverage tool, I will need to specify the input format to the tool. There are two types of input to specify: (1) The RPC input that includes codehashes, a list of program counters, and any other information about the VM state during the test execution and (2) The bytecode and deployed bytecode input.

Logs Cleaning

Currently the strip module will return a list of the name, bytecode, and deployed bytecode of every contract represented in the build folder. This is a good start, but more needs to be done. There are some things that I doubt I will need that are in the logs, and these should be cleaned from the logs output.

Current list of Removals

  • eth_accounts
  • eth_getTransactionReceipt
  • eth_getCode
  • eth_blockNumber
  • eth_getBlockByNumber
  • net_version

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.