Giter Club home page Giter Club logo

Comments (4)

axw avatar axw commented on July 19, 2024

Oops! Thanks, I'll clean it up later.

from gocov.

axw avatar axw commented on July 19, 2024

Fixed in (pending) pull request #16.

from gocov.

JohanSamyn avatar JohanSamyn commented on July 19, 2024

Btw, Andrew, what do those enter/leave numbers exactly teach me about the coverage ? Another thing that puzzles me is I see lines in the report that have a smaller number for enter than for leave (but never the other way around afaics). How can a function have been left, if it wasn't entered ? These may seem dumb questions, but I'd rather ask and learn, than stay ignorant :).
Johan

from gocov.

axw avatar axw commented on July 19, 2024

Hi Johan,

The enter/leave counts won't tell you much about coverage, beyond whether they're non-zero; I could just as well change it to atomic test-and-set (it needs to be synchronised, in case multiple goroutines access the same function concurrently). It could be used to see how "hot" a function is, which you could use as a sort of confidence factor, though to be honest I haven't had a use for them yet.

Left>Entered sounds like a bug. Is it a public package that you're testing against? How can I reproduce it?

I'm going to close this now, but feel free to keep the discussion going, and/or raise another issue.

Cheers,
Andrew

from gocov.

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.