Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,302 for Cover (0.04 sec)

  1. src/testing/cover.go

    	Stmts uint16 // Number of statements included in this block.
    }
    
    var cover Cover
    
    // Cover records information about test coverage checking.
    // NOTE: This struct is internal to the testing infrastructure and may change.
    // It is not covered (yet) by the Go 1 compatibility guidelines.
    type Cover struct {
    	Mode            string
    	Counters        map[string][]uint32
    	Blocks          map[string][]CoverBlock
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 11:37:31 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/cover.bash

    # Use of this source code is governed by a BSD-style
    # license that can be found in the LICENSE file.
    
    # A quick and dirty way to obtain code coverage from rulegen's main func. For
    # example:
    #
    #     ./cover.bash && go tool cover -html=cover.out
    #
    # This script is needed to set up a temporary test file, so that we don't break
    # regular 'go run .' usage to run the generator.
    
    cat >main_test.go <<-EOF
    	//go:build ignore
    
    	package main
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 664 bytes
    - Viewed (0)
  3. src/cmd/cover/cover.go

    const usageMessage = "" +
    	`Usage of 'go tool cover':
    Given a coverage profile produced by 'go test':
    	go test -coverprofile=c.out
    
    Open a web browser displaying annotated source code:
    	go tool cover -html=c.out
    
    Write out an HTML file instead of launching a web browser:
    	go tool cover -html=c.out -o coverage.html
    
    Display coverage percentages to stdout for each function:
    	go tool cover -func=c.out
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  4. src/cmd/go/internal/work/cover.go

    	args = append(args, cmdline...)
    	return b.Shell(a).runOut(a.Objdir, nil, args)
    }
    
    // BuildActionCoverMetaFile locates and returns the path of the
    // meta-data file written by the "go tool cover" step as part of the
    // build action for the "go test -cover" run action 'runAct'. Note
    // that if the package has no functions the meta-data file will exist
    // but will be empty; in this case the return is an empty string.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 19:09:38 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/coverage/cover.go

    package coverage
    
    // This package contains support routines for coverage "fixup" in the
    // compiler, which happens when compiling a package whose source code
    // has been run through "cmd/cover" to add instrumentation. The two
    // important entry points are FixupVars (called prior to package init
    // generation) and FixupInit (called following package init
    // generation).
    
    import (
    	"cmd/compile/internal/base"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 21:55:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. src/cmd/go/internal/test/cover.go

    Than McIntosh <******@****.***> 1633965979 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:50:58 UTC 2022
    - 2K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/cover_mod_empty.txt

    go tool cover -func=cover.out
    stdout total.*statements.*0.0%
    
    go mod init golang.org/issue/33855
    
    go tool cover -func=cover.out
    stdout total.*statements.*0.0%
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 30 17:07:53 UTC 2019
    - 176 bytes
    - Viewed (0)
  8. src/cmd/go/internal/load/test.go

    }
    
    {{if .Cover}}
    
    // Only updated by init functions, so no need for atomicity.
    var (
    	coverCounters = make(map[string][]uint32)
    	coverBlocks = make(map[string][]testing.CoverBlock)
    )
    
    func init() {
    	{{range $i, $p := .Cover.Vars}}
    	{{range $file, $cover := $p.Vars}}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/test_empty.txt

    go test -cover -coverpkg=. -race
    
    [short] stop # Only run first case in short mode
    
    cd $GOPATH/src/empty/test
    go test -cover -coverpkg=. -race
    
    cd $GOPATH/src/empty/xtest
    go test -cover -coverpkg=. -race
    
    cd $GOPATH/src/empty/pkgtest
    go test -cover -coverpkg=. -race
    
    cd $GOPATH/src/empty/pkgxtest
    go test -cover -coverpkg=. -race
    
    cd $GOPATH/src/empty/pkgtestxtest
    go test -cover -coverpkg=. -race
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 1K bytes
    - Viewed (0)
  10. tests/test_invalid_path_param.py

            def read_items(id: List[Item]):
                pass  # pragma: no cover
    
    
    def test_invalid_tuple():
        with pytest.raises(AssertionError):
            app = FastAPI()
    
            class Item(BaseModel):
                title: str
    
            @app.get("/items/{id}")
            def read_items(id: Tuple[Item, Item]):
                pass  # pragma: no cover
    
    
    def test_invalid_dict():
        with pytest.raises(AssertionError):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Jun 03 17:59:40 UTC 2019
    - 1.7K bytes
    - Viewed (0)
Back to top