Code Monkey home page Code Monkey logo

Comments (6)

marco-c avatar marco-c commented on July 20, 2024 1

should the block number be 0 as in coveralls?

Yes.

branch hit count is the number of times the taken value is non zero?

Yes, if by "branch hit count" you mean the "BRH" value.

from grcov.

marco-c avatar marco-c commented on July 20, 2024

From http://ltp.sourceforge.net/coverage/lcov/geninfo.1.php:

Branch coverage information is stored which one line per branch:

  BRDA:<line number>,<block number>,<branch number>,<taken>

Block number and branch number are gcc internal  IDs  for  the  branch.
Taken  is either '-' if the basic block containing the branch was never
executed or a number indicating how often that branch was taken.

Branch coverage summaries are stored in two lines:

  BRF:<number of branches found>
  BRH:<number of branches hit>

from grcov.

Sush0512 avatar Sush0512 commented on July 20, 2024

Dear @marco-c ,
I would like to work on the issue. I understand the issue and have gone through the resources mentioned. In README it is mentioned that we can output the code coverage information in lcov. Please, can you guide me through the necessary things to be done.

Thank you,
Sushma

from grcov.

marco-c avatar marco-c commented on July 20, 2024

Hello @Sush0512. The output_lcov function in src/output.rs needs to be modified to support outputting branch information too (the format is described in my earlier comment).

from grcov.

marco-c avatar marco-c commented on July 20, 2024

output_coveralls for example is outputting the branch information for the coveralls format.

from grcov.

Sush0512 avatar Sush0512 commented on July 20, 2024

Thank you for the information. I started working on the issue and want to clarify the following.

  • should the block number be 0 as in coveralls?
  • branch hit count is the number of times the taken value is non zero?

from grcov.

Related Issues (20)

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.