- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 44 for cov (0.02 sec)
-
scripts/test-cov-html.sh
Sebastián RamÃrez <******@****.***> 1667505629 +0100
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Nov 03 20:00:29 UTC 2022 - 124 bytes - Viewed (0) -
src/cmd/covdata/doc.go
... $ 4. Convert coverage data to legacy textual format: $ go tool covdata textfmt -i=profiledir -o=cov.txt $ head cov.txt mode: set cov-example/p/p.go:12.22,13.2 0 0 cov-example/p/p.go:15.31,16.2 1 0 cov-example/p/p.go:16.3,18.3 0 0 cov-example/p/p.go:19.3,21.3 0 0 ... $ go tool cover -html=cov.txt $ 5. Merge profiles together:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 03 12:57:25 UTC 2023 - 2K bytes - Viewed (0) -
src/internal/fuzz/coverage.go
// source code to 0. func ResetCoverage() { cov := coverage() clear(cov) } // SnapshotCoverage copies the current counter values into coverageSnapshot, // preserving them for later inspection. SnapshotCoverage also rounds each // counter down to the nearest power of two. This lets the coordinator store // multiple values for each counter by OR'ing them together. func SnapshotCoverage() { cov := coverage() for i, b := range cov {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 18:23:49 UTC 2024 - 2.5K bytes - Viewed (0) -
src/cmd/covdata/covdata.go
// ... off and running now. dbgtrace(1, "starting perform") indirs := strings.Split(*indirsflag, ",") vis := cov.CovDataVisitor(op) var flags cov.CovDataReaderFlags if *hflag { flags |= cov.PanicOnError } if *hwflag { flags |= cov.PanicOnWarning } reader := cov.MakeCovDataReader(vis, indirs, *verbflag, flags, matchpkg) st := 0 if err := reader.Visit(); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 5.7K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_fuzz_cov.txt
env GOCACHE=$WORK/cache # TODO(#51484): enabled debugging info to help diagnose a deadlock in the fuzzer env GODEBUG=fuzzdebug=1 ! go test -fuzz=FuzzCov -v ! stderr 'cov instrumentation working' -- go.mod -- module test -- cov_test.go -- package cov import "testing" func FuzzCov(f *testing.F) { f.Fuzz(func(t *testing.T, b []byte) { if len(b) == 8 && b[0] == 'h' && b[1] == 'e' &&
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 16 16:53:11 UTC 2023 - 787 bytes - Viewed (0) -
src/cmd/cover/cover_test.go
offset += i + j } return directives } // Makes sure that `cover -func=profile.cov` reports accurate coverage. // Issue #20515. func TestCoverFunc(t *testing.T) { testenv.MustHaveExec(t) // testcover -func ./testdata/profile.cov coverProfile := filepath.Join(testdata, "profile.cov") cmd := testenv.Command(t, testcover(t), "-func", coverProfile) out, err := cmd.Output() if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 07 16:54:28 UTC 2023 - 18.4K bytes - Viewed (0) -
src/cmd/go/testdata/script/cover_statements.txt
! stderr 'compile(\.exe"?)? -' ! stderr 'cover(\.exe"?)? -' [GOEXPERIMENT:coverageredesign] stderr 'covdata(\.exe"?)? percent' # Now add in -coverprofile. go test -cover -coverprofile=cov.dat ./pkg1 ./pkg2 ./pkg3 ./pkg4 [!GOEXPERIMENT:coverageredesign] stdout 'pkg1 \[no test files\]' [GOEXPERIMENT:coverageredesign] stdout 'pkg1 coverage: 0.0% of statements'
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 06 17:36:30 UTC 2023 - 2.4K bytes - Viewed (0) -
src/cmd/go/testdata/script/cover_coverpkg_with_init.txt
# packages); prior to the fix for #58770 Go 1.20 would show 100% # coverage. For packages "x" and "f" (which have no tests), check for # 0% stmts covered (as opposed to "no test files"). go test -count=1 -coverprofile=cov.dat -coverpkg=./... ./... stdout '^\s*\?\s+M/n\s+\[no test files\]' stdout '^\s*M/x\s+coverage: 0.0% of statements' stdout '^\s*M/f\s+coverage: 0.0% of statements' stdout '^ok\s+M/a\s+\S+\s+coverage: 30.0% of statements in ./...'
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
# multiple packages without tests. [short] skip # Kick off test. go test -p=10 -vet=off -count=1 -coverprofile=cov.p ./... # Make sure resulting profile is digestible. go tool cover -func=cov.p # No extraneous extra files please. ! exists _cover_.out -- a/a.go -- package a func init() { println("package 'a' init: launch the missiles!") }
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/cmd/internal/cov/read_test.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package cov_test import ( "cmd/internal/cov" "fmt" "internal/coverage" "internal/coverage/decodecounter" "internal/coverage/decodemeta" "internal/coverage/pods" "internal/goexperiment" "internal/testenv" "os" "path/filepath" "testing" )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 11:36:17 UTC 2023 - 3.5K bytes - Viewed (0)