Coder Social home page Coder Social logo

Comments (3)

oberpar avatar oberpar commented on July 22, 2024

Could you post gcov output files for this test? This can be obtained using a command like gcov -abc <source.cpp>.

from lcov.

yuriy-mochurad avatar yuriy-mochurad commented on July 22, 2024

The file test.cpp.gcov looks like this:

        -:    0:Source:../../test/test.cpp
        -:    0:Graph:test.gcno
        -:    0:Data:test.gcda
        -:    0:Runs:1
        -:    0:Programs:1
        -:    1:#include "test.h"
        -:    2:#include <iostream>
        -:    3:
function _ZN12TestCoverageC2Ev called 1 returned 100% blocks executed 100%
function _ZN12TestCoverageC1Ev called 1 returned 100% blocks executed 100%
        -:    4:TestCoverage::TestCoverage()
        1:    5:{
        1:    6:    a=15;
        1:    7:    b=20;
        1:    8:}
        1:    8-block  0
        1:    8-block  1
        -:    9:
function _ZN12TestCoverage8testfuncEv called 1 returned 100% blocks executed 100%
        -:   10:void TestCoverage::testfunc(){
        1:   11:    /*
        1:   12:     *
        -:   13:     * */
        1:   14:    std::cout<<"hey";
        1:   15:}
        1:   15-block  0

from lcov.

oberpar avatar oberpar commented on July 22, 2024

The output shows that lines 11 and 12 are already covered in gcov output, so there is little that lcov can do here since it obtains the coverage data from gcov. Therefore I'm closing this issue.

from lcov.

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.