GithubHelp home page GithubHelp logo

chaintope / contract-coverager Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 1.0 987 KB

Coverage tool for SmartContract

License: GNU General Public License v3.0

JavaScript 100.00%
abi coverage ethereum smart-contract solidity vyper

contract-coverager's Issues

Feedback of contract-coverager

Hello! This is my feedback.

I have 2 small problems.

First, now plasma-predicate has 2 test. When I remove CoverageSubprovider from one test, npm test hangs. When I add CoverageSubprovider to both tests, tests are passed.

Second, when I ran the test of our OwnershipPredicate.test.js, the test was passed but errors happen. Descriptions are below. I'm not sure this depends on the contract-coverager or not. But when I remove lines using contract-coverager, the error didn't happen.

This is source code.
https://github.com/cryptoeconomicslab/plasma-predicates/pull/11

  Contract: OwnershipPredicate
    canStartExitGame
      ✓ succeed to canStartExitGame (177ms)
    executeStateTransition
Error: the tx doesn't have the correct nonce. account has nonce of: 1 tx has nonce of: 0
    at Object._fireError (/Users/syuhei/work/cel/plasma-predicates/node_modules/truffle/build/webpack:/~/web3-utils/src/index.js:56:1)
    at sendTxCallback (/Users/syuhei/work/cel/plasma-predicates/node_modules/truffle/build/webpack:/~/web3-eth/~/web3-core-method/src/index.js:491:1)
    at /Users/syuhei/work/cel/plasma-predicates/node_modules/truffle/build/webpack:/~/web3-eth/~/web3-core-requestmanager/src/index.js:136:1
    at /Users/syuhei/work/cel/plasma-predicates/node_modules/web3-provider-engine/index.js:190:9
    at /Users/syuhei/work/cel/plasma-predicates/node_modules/async/internal/once.js:12:16
    at replenish (/Users/syuhei/work/cel/plasma-predicates/node_modules/async/internal/eachOfLimit.js:61:25)
    at /Users/syuhei/work/cel/plasma-predicates/node_modules/async/internal/eachOfLimit.js:71:9
    at eachLimit (/Users/syuhei/work/cel/plasma-predicates/node_modules/async/eachLimit.js:43:36)
    at /Users/syuhei/work/cel/plasma-predicates/node_modules/async/internal/doLimit.js:9:16
    at end (/Users/syuhei/work/cel/plasma-predicates/node_modules/web3-provider-engine/index.js:169:5)
    at traceFunc.then.res (/Users/syuhei/work/cel/plasma-predicates/node_modules/contract-coverager/src/coverage_subprovider.js:191:34)
    at process._tickCallback (internal/process/next_tick.js:68:7)
0xf86cb840000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000027109413274fe19c0178208bcbee397af8167a7be27f6f94f17f52151ebef6c7334fad080c5704d77216b732
      ✓ succeed to executeStateTransition (599ms)

Thank you!

Reveal the entity of unknown bytecodes.

What is entity this bytecodes?
0x366000600037611000600036600073baaa2a3237035a2c7fa2a33c76b44a8c6fe18e875af4602c57600080fd5b6110006000f3

Maybe It is injected in complex vyper contract.

Support lcov format

Abstract tasks

  • Mappings pc to line num of source code.
  • Output raw information about executed count regard of line num of source coce by specific format.
  • Change text reporting process to use specific raw information.
  • Output only each line executed count info within each source file of lcov format.
  • Add executed function information in lcov report.

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.