Giter Club home page Giter Club logo

Comments (7)

axw avatar axw commented on August 20, 2024

Not blind at all: https://github.com/axw/gocov/blob/master/gocov/main.go#L471

from gocov.

axw avatar axw commented on August 20, 2024

P.S. What is the test doing that gocov is adding so much overhead? Seems excessive.

from gocov.

cznic avatar cznic commented on August 20, 2024

It's this: https://github.com/cznic/tmp/tree/master/lldb (Work in progress, hence in /tmp [cca like /exp in Go])

(14:19) jnml@fsc-r550:~/src/github.com/cznic/tmp/lldb$ go test
PASS
ok      github.com/cznic/tmp/lldb   282.797s
(14:24) jnml@fsc-r550:~/src/github.com/cznic/tmp/lldb$ 

The test is excessive. The test 'Allocator' pAllocator verifies the test 'Filer' after every top level operation to catch problems early and thus make debugging it a bit easier for me.

from gocov.

axw avatar axw commented on August 20, 2024

Ah, fair enough.
I've added the -timeout flag, and any additional args will be passed through as well.

from gocov.

cznic avatar cznic commented on August 20, 2024

Thanks for looking into this. Is this because of me doing it wrong?

(15:27) jnml@fsc-r550:~/src/github.com/cznic/tmp/lldb$ make COV='-timeout 3600s' gocov
gocov test -timeout 3600s | gocov-html > cov.html
panic: runtime error: slice bounds out of range

goroutine 1 [running]:
main.instrumentAndTest(0x0, 0x4)
        /home/jnml/src/github.com/axw/gocov/gocov/main.go:491 +0x1b4b
main.main()
        /home/jnml/src/github.com/axw/gocov/gocov/main.go:531 +0x18d
failed to unmarshal coverage data: json: invalid use of ,string struct tag, trying to unmarshal "" into struct { Packages []*gocov.Package }
make: *** [gocov] Error 1
(15:27) jnml@fsc-r550:~/src/github.com/cznic/tmp/lldb$ 

from gocov.

axw avatar axw commented on August 20, 2024

Nope, because I'm absent minded. Should be fixed now.

from gocov.

cznic avatar cznic commented on August 20, 2024

It started the coverage test process successfully now (and it'll run for probably a long time). Thank you.

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.