Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 668 for testF (0.08 sec)

  1. src/cmd/go/testdata/script/test_go111module_cache.txt

    env GO111MODULE=on
    go mod init foo
    go test
    stdout ^ok\s+foo
    env GO111MODULE=off
    go test
    stdout ^ok\s+
    ! stdout ^ok\s+(cache)$
    
    -- main_test.go --
    package main
    
    import "testing"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 15 16:28:58 UTC 2019
    - 206 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/cover_cgo.txt

    [short] skip
    [!cgo] skip
    [compiler:gccgo] skip # gccgo has no cover tool
    
    # Test coverage on cgo code.
    
    go test -short -cover cgocover
    stdout  'coverage:.*[1-9][0-9.]+%'
    ! stderr '[^0-9]0\.0%'
    
    -- go.mod --
    module cgocover
    
    go 1.16
    -- p.go --
    package p
    
    /*
    void
    f(void)
    {
    }
    */
    import "C"
    
    var b bool
    
    func F() {
    	if b {
    		for {
    		}
    	}
    	C.f()
    }
    -- p_test.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 423 bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/cover_cgo_extra_file.txt

    [short] skip
    [!cgo] skip
    [compiler:gccgo] skip # gccgo has no cover tool
    
    # Test coverage on cgo code. This test case includes an
    # extra empty non-cgo file in the package being checked.
    
    go test -short -cover cgocover4
    stdout  'coverage:.*[1-9][0-9.]+%'
    ! stderr '[^0-9]0\.0%'
    
    -- go.mod --
    module cgocover4
    
    go 1.16
    -- notcgo.go --
    package p
    -- p.go --
    package p
    
    /*
    void
    f(void)
    {
    }
    */
    import "C"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 560 bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/test_relative_cmdline.txt

    # Relative imports in command line package
    
    env GO111MODULE=off
    
    # Run tests outside GOPATH.
    env GOPATH=$WORK/tmp
    
    go test ./testimport/p.go ./testimport/p_test.go ./testimport/x_test.go
    stdout '^ok'
    
    -- testimport/p.go --
    package p
    
    func F() int { return 1 }
    -- testimport/p1/p1.go --
    package p1
    
    func F() int { return 1 }
    -- testimport/p2/p2.go --
    package p2
    
    func F() int { return 1 }
    -- testimport/p_test.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 16 19:10:58 UTC 2022
    - 688 bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/cover_atomic_pkgall.txt

    env GO111MODULE=off
    
    [short] skip
    
    go test -coverpkg=all -covermode=atomic x
    stdout ok[\s\S]+?coverage
    
    [!race] stop
    
    go test -coverpkg=all -race x
    stdout ok[\s\S]+?coverage
    
    -- x/x.go --
    package x
    
    import _ "sync/atomic"
    
    func F() {}
    
    -- x/x_test.go --
    package x
    
    import "testing"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 19 19:57:03 UTC 2019
    - 316 bytes
    - Viewed (0)
  6. src/internal/coverage/cfile/testdata/harness.go

    	f.writeCount = 0
    	f.writeLimit = lim
    	f.slws = slicewriter.WriteSeeker{}
    }
    
    func writeStressTest(tag string, testf func(testf *failingWriter) error) {
    	// Invoke the function initially without the write limit
    	// set, to capture the number of writes performed.
    	fw := &failingWriter{writeLimit: -1}
    	testf(fw)
    
    	// Now that we know how many writes are going to happen, run the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:41:02 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/test_xtestonly_works.txt

    [short] skip
    
    go test xtestonly
    ! stdout '^ok.*\[no tests to run\]'
    stdout '^ok'
    
    -- go.mod --
    module xtestonly
    
    go 1.16
    -- f.go --
    package xtestonly
    
    func F() int { return 42 }
    -- f_test.go --
    package xtestonly_test
    
    import (
    	"testing"
    	"xtestonly"
    )
    
    func TestF(t *testing.T) {
    	if x := xtestonly.F(); x != 42 {
    		t.Errorf("f.F() = %d, want 42", x)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 357 bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/cover_pkgall_runtime.txt

    env GO111MODULE=off
    
    # Issue 23882
    
    [short] skip
    
    go test -coverpkg=all x
    stdout ok[\s\S]+?coverage
    
    [!race] stop
    
    go test -coverpkg=all -race x
    stdout ok[\s\S]+?coverage
    
    -- x/x.go --
    package x
    import _ "runtime"
    func F() {}
    
    -- x/x_test.go --
    package x
    import "testing"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 19 19:57:03 UTC 2019
    - 305 bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/cover_cgo_xtest.txt

    [short] skip
    [!cgo] skip
    [compiler:gccgo] skip # gccgo has no cover tool
    
    # Test cgo coverage with an external test.
    
    go test -short -cover cgocover2
    stdout  'coverage:.*[1-9][0-9.]+%'
    ! stderr '[^0-9]0\.0%'
    
    -- go.mod --
    module cgocover2
    
    go 1.16
    -- p.go --
    package p
    
    /*
    void
    f(void)
    {
    }
    */
    import "C"
    
    var b bool
    
    func F() {
    	if b {
    		for {
    		}
    	}
    	C.f()
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 464 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/cover_cgo_extra_test.txt

    [short] skip
    [!cgo] skip
    [compiler:gccgo] skip # gccgo has no cover tool
    
    # Test coverage on cgo code. This test case has an external
    # test that tests the code and an in-package test file with
    # no test cases.
    
    go test -short -cover cgocover3
    stdout  'coverage:.*[1-9][0-9.]+%'
    ! stderr '[^0-9]0\.0%'
    
    -- go.mod --
    module cgocover3
    
    go 1.16
    -- p.go --
    package p
    
    /*
    void
    f(void)
    {
    }
    */
    import "C"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 584 bytes
    - Viewed (0)
Back to top