[go-nuts] branch coverage in text format

2024-07-10 Thread Akash Kumar
can I get branch coverage in text format? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the

[go-nuts] go tool cover vs go tool covdata

2024-07-10 Thread Akash Kumar
what is the difference between go tool cover and go tool covdata ? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To vi

Re: [go-nuts] go tool cover vs go tool covdata

2024-07-10 Thread Ian Lance Taylor
On Wed, Jul 10, 2024 at 3:07 AM Akash Kumar wrote: > > what is the difference between go tool cover and go tool covdata ? See https://pkg.go/dev/cmd/cover and https://pkg.go.dev/cmd/covdata. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group.

[go-nuts] Rangefunc in Go 1.23

2024-07-10 Thread Justin Scheiber
Howdy, I'm trying to establish a mental model for what the compiler does with range functions in Go 1.23. It looks like the compiler creates a function based on the for loop body, and calls it by looping over the values passed in. Meaning this code: func simpleIter(yield func(v int) bool) {

Re: [go-nuts] Rangefunc in Go 1.23

2024-07-10 Thread Ian Lance Taylor
On Wed, Jul 10, 2024 at 4:17 PM Justin Scheiber wrote: > > I'm trying to establish a mental model for what the compiler does with range > functions in Go 1.23. It looks like the compiler creates a function based on > the for loop body, and calls it by looping over the values passed in. > > Mean

[go-nuts] Re: branch coverage in text format

2024-07-10 Thread Marcello H
I use this: gitlab.com/fgmarand/gocoverstats to do this: gocoverstats -v -f coverage.txt -percent Op woensdag 10 juli 2024 om 12:06:39 UTC+2 schreef Akash Kumar: > can I get branch coverage in text format? -- You received this message because you are subscribed to the Google Groups "golang-nu