- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for XFunc (0.07 sec)
-
src/cmd/go/testdata/script/cover_coverpkg_with_init.txt
stdout '^ok\s+M/main\s+\S+\s+coverage: 80.0% of statements in ./...' # Check for selected elements in the collected coverprofile as well. go tool cover -func=cov.dat stdout '^M/x/x.go:3:\s+XFunc\s+0.0%' stdout '^M/b/b.go:7:\s+BFunc\s+100.0%' stdout '^total:\s+\(statements\)\s+80.0%' -- go.mod -- module M go 1.21 -- a/a.go -- package a import "M/f" func init() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 30 12:33:44 UTC 2023 - 2.4K bytes - Viewed (0) -
src/cmd/go/testdata/script/cover_coverprofile_multipkg.txt
package n type N int -- onlytest/mumble_test.go -- package onlytest import "testing" func TestFoo(t *testing.T) { t.Logf("Whee\n") } -- x/x.go -- package x func XFunc() int { return 2 * 2 } -- xinternal/i.go -- package i func I() int { return 32 } -- xinternal/q/q.go -- package q func Q() int { return 42
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 04 17:02:36 UTC 2023 - 2.7K bytes - Viewed (0) -
src/internal/coverage/test/roundtrip_test.go
}, } idx := b.AddFunc(f1) if idx != 0 { t.Errorf("b.AddFunc(f1) got %d want %d", idx, 0) } f2 := coverage.FuncDesc{ Funcname: "xfunc", Srcfile: "bar.go", Units: []coverage.CoverableUnit{ coverage.CoverableUnit{StLine: 1, StCol: 2, EnLine: 3, EnCol: 4, NxStmts: 5}, coverage.CoverableUnit{StLine: 6, StCol: 7, EnLine: 8, EnCol: 9, NxStmts: 10},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 20 21:42:05 UTC 2023 - 8.5K bytes - Viewed (0)