Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 492 for testB (0.1 sec)

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

    go test -coverpkg=./a ./...
    stdout '^ok\s+M/a\s+\S+\s+coverage: 100.0% of statements in ./a'
    stdout '^\s*\?\s+M/f\s+\[no test files\]'
    
    -- a/a.go --
    package a
    
    import "M/f"
    
    var G int
    
    func AFunc() int {
    	G = 1
    	return f.Id()
    }
    -- a/a_test.go --
    package a
    
    import "testing"
    
    func TestA(t *testing.T) {
    	if AFunc() != 42 {
    		t.Fatalf("bad!")
    	}
    }
    -- b/b.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 20:12:49 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/build_pgo_auto_multi.txt

    import _ "test/dep2"
    func main() {}
    -- a/a_test.go --
    package main
    import "testing"
    import _ "test/testdep"
    func TestA(*testing.T) {}
    -- a/default.pgo --
    -- b/b.go --
    package main
    import _ "test/dep"
    import _ "test/dep2"
    func main() {}
    -- b/b_test.go --
    package main
    import "testing"
    import _ "test/testdep"
    func TestB(*testing.T) {}
    -- b/default.pgo --
    -- nopgo/nopgo.go --
    package main
    import _ "test/dep"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:38:19 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. test/fixedbugs/issue5755.dir/main.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import "./a"
    
    func main() {
    	a.Test1("frumious")
    	a.Test2("frumious")
    	a.Test3("frumious")
    	a.Test4("frumious")
    
    	a.Test5(nil)
    	a.Test6(nil)
    	a.Test7(nil)
    	a.Test8(nil)
    	a.Test9(0)
    
    	a.TestBar()
    	a.IsBaz(nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 28 21:29:13 UTC 2013
    - 385 bytes
    - Viewed (0)
  4. test/codegen/bits.go

    	a[0] &= 200
    	// amd64:`ORL\s[$]220,\s4\([A-Z][A-Z0-9]+\)`
    	a[1] |= 220
    	// amd64:`XORL\s[$]240,\s8\([A-Z][A-Z0-9]+\)`
    	a[2] ^= 240
    }
    
    func bitcheckMostNegative(b uint8) bool {
    	// amd64:"TESTB"
    	return b&0x80 == 0x80
    }
    
    // Check AND masking on arm64 (Issue #19857)
    
    func and_mask_1(a uint64) uint64 {
    	// arm64:`AND\t`
    	return a & ((1 << 63) - 1)
    }
    
    func and_mask_2(a uint64) uint64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. test/ken/embed.go

    	if s.test5() != s.a5 {
    		println("t4", 5)
    		panic("fail")
    	}
    	if s.test6() != s.a6 {
    		println("t4", 6)
    		panic("fail")
    	}
    	if s.test7() != s.a7 {
    		println("t4", 7)
    		panic("fail")
    	}
    
    	// call interface
    	if i.test1() != s.test1() {
    		println("t5", 1)
    		panic("fail")
    	}
    	if i.test2() != s.test2() {
    		println("t5", 2)
    		panic("fail")
    	}
    	if i.test3() != s.test3() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 03 17:03:15 UTC 2016
    - 4.3K bytes
    - Viewed (0)
  6. test/fixedbugs/issue5755.dir/a.go

    func (f foo9) F() { return }
    
    func Test1(s string) I  { return foo1(s) }
    func Test2(s string) I  { return foo2(s) }
    func Test3(s string) I  { return foo3(s) }
    func Test4(s string) I  { return foo4(s) }
    func Test5(s []byte) I  { return foo5(s) }
    func Test6(s []rune) I  { return foo6(s) }
    func Test7(s []uint8) I { return foo7(s) }
    func Test8(s []int32) I { return foo8(s) }
    func Test9(s int) I     { return foo9(s) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 28 21:29:13 UTC 2013
    - 1.3K bytes
    - Viewed (0)
  7. test/recover1.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test of recover during recursive panics.
    // Here be dragons.
    
    package main
    
    import "runtime"
    
    func main() {
    	test1()
    	test2()
    	test3()
    	test4()
    	test5()
    	test6()
    	test7()
    }
    
    func die() {
    	runtime.Breakpoint()	// can't depend on panic
    }
    
    func mustRecover(x interface{}) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 2.5K bytes
    - Viewed (0)
  8. test/recover2.go

    // license that can be found in the LICENSE file.
    
    // Test of recover for run-time errors.
    
    // TODO(rsc):
    //	null pointer accesses
    
    package main
    
    import "strings"
    
    var x = make([]byte, 10)
    
    func main() {
    	test1()
    	test2()
    	test3()
    	test4()
    	test5()
    	test6()
    	test7()
    }
    
    func mustRecover(s string) {
    	v := recover()
    	if v == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 03 20:41:29 UTC 2019
    - 1.2K bytes
    - Viewed (0)
  9. test/ken/chan.go

    	test5(c)
    	wait()
    
    	test6(c)
    	wait()
    }
    
    // run all test with 4 buffser sizes
    func main() {
    
    	tests(0)
    	tests(1)
    	tests(10)
    	tests(100)
    
    	t := 4 * // buffer sizes
    		(4*4 + // tests 1,2,3,4 channels
    			8 + // test 5 channels
    			12) * // test 6 channels
    		76 // sends/recvs on a channel
    
    	if tots != t || totr != t {
    		print("tots=", tots, " totr=", totr, " sb=", t, "\n")
    		os.Exit(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 4.7K bytes
    - Viewed (0)
  10. test/fixedbugs/issue13799.go

    	for iter := 0; ; iter++ {
    		if iter%50 == 0 {
    			fmt.Println(iter) // ERROR "iter escapes to heap$" "... argument does not escape$"
    		}
    		test1(iter)
    		test2(iter)
    		test3(iter)
    		test4(iter)
    		test5(iter)
    		test6(iter)
    	}
    }
    
    func test1(iter int) {
    
    	const maxI = 500
    	m := make(map[int][]int) // ERROR "make\(map\[int\]\[\]int\) escapes to heap$"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 4.9K bytes
    - Viewed (0)
Back to top