Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for cov (0.02 sec)

  1. 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)
  2. 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)
  3. src/cmd/cover/cfg_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 main_test
    
    import (
    	"cmd/internal/cov/covcmd"
    	"encoding/json"
    	"fmt"
    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"strings"
    	"testing"
    )
    
    func writeFile(t *testing.T, path string, contents []byte) {
    	if err := os.WriteFile(path, contents, 0666); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 12:51:11 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/cover_coverpkg_partial.txt

    # f               yes             no              3               ---
    #
    
    [short] skip
    [!GOEXPERIMENT:coverageredesign] skip
    
    # Test all packages with -coverpkg=./...
    go test -coverprofile=cov.p -coverpkg=./... ./...
    stdout '^ok\s+M/a\s+\S+\s+coverage: 50.0% of statements in ./...'
    stdout '^ok\s+M/b\s+\S+\s+coverage: 60.0% of statements in ./...'
    stdout '^ok\s+M/c\s+\S+\s+coverage: 30.0% of statements in ./...'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 20:12:49 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. src/internal/coverage/cformat/format.go

    	pkgs := make([]string, 0, len(fm.pm))
    	for importpath := range fm.pm {
    		pkgs = append(pkgs, importpath)
    	}
    
    	rep := func(cov, tot uint64) error {
    		if tot != 0 {
    			if _, err := fmt.Fprintf(w, "coverage: %.1f%% of statements%s\n",
    				100.0*float64(cov)/float64(tot), covpkgs); err != nil {
    				return err
    			}
    		} else if noteEmpty {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  6. docs/em/docs/tutorial/testing.md

    ```console
    $ pytest
    
    ================ test session starts ================
    platform linux -- Python 3.6.9, pytest-5.3.5, py-1.8.1, pluggy-0.13.1
    rootdir: /home/user/code/superawesome-cli/app
    plugins: forked-1.1.3, xdist-1.31.0, cov-2.8.1
    collected 6 items
    
    ---> 100%
    
    test_main.py <span style="color: green; white-space: pre;">......                            [100%]</span>
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. src/internal/coverage/cfile/ts_test.go

    	strc := string(contents)
    	if err != nil {
    		t.Fatalf("problems reading text file %s: %v", textfile, err)
    	}
    	if !strings.Contains(strc, token) {
    		t.Logf("content: %s\n", string(contents))
    		t.Fatalf("cov profile does not contain aux meta content %q", token)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:58:07 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. docs/zh/docs/tutorial/testing.md

    ```console
    $ pytest
    
    ================ test session starts ================
    platform linux -- Python 3.6.9, pytest-5.3.5, py-1.8.1, pluggy-0.13.1
    rootdir: /home/user/code/superawesome-cli/app
    plugins: forked-1.1.3, xdist-1.31.0, cov-2.8.1
    collected 6 items
    
    ---> 100%
    
    test_main.py <span style="color: green; white-space: pre;">......                            [100%]</span>
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/testing.md

    ```console
    $ pytest
    
    ================ test session starts ================
    platform linux -- Python 3.6.9, pytest-5.3.5, py-1.8.1, pluggy-0.13.1
    rootdir: /home/user/code/superawesome-cli/app
    plugins: forked-1.1.3, xdist-1.31.0, cov-2.8.1
    collected 6 items
    
    ---> 100%
    
    test_main.py <span style="color: green; white-space: pre;">......                            [100%]</span>
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  10. docs/de/docs/tutorial/testing.md

    ```console
    $ pytest
    
    ================ test session starts ================
    platform linux -- Python 3.6.9, pytest-5.3.5, py-1.8.1, pluggy-0.13.1
    rootdir: /home/user/code/superawesome-cli/app
    plugins: forked-1.1.3, xdist-1.31.0, cov-2.8.1
    collected 6 items
    
    ---> 100%
    
    test_main.py <span style="color: green; white-space: pre;">......                            [100%]</span>
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 20:20:01 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top