Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Test7 (0.05 sec)

  1. test/ken/embed.go

    package main
    
    
    type I interface {
    	test1() int
    	test2() int
    	test3() int
    	test4() int
    	test5() int
    	test6() int
    	test7() int
    }
    
    /******
     ******
     ******/
    
    type SubpSubp struct {
    	a7 int
    	a  int
    }
    
    func (p *SubpSubp) test7() int {
    	if p.a != p.a7 {
    		println("SubpSubp", p, p.a7)
    		panic("fail")
    	}
    	return p.a
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 03 17:03:15 UTC 2016
    - 4.3K bytes
    - Viewed (0)
  2. test/recover2.go

    // 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 {
    		panic("expected panic")
    	}
    	if e := v.(error).Error(); strings.Index(e, s) < 0 {
    		panic("want: " + s + "; have: " + e)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 03 20:41:29 UTC 2019
    - 1.2K bytes
    - Viewed (0)
  3. test/recover1.go

    // 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{}) {
    	mustNotRecover()	// because it's not a defer call
    	v := recover()
    	if v == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 2.5K bytes
    - Viewed (0)
  4. test/fixedbugs/issue5755.dir/main.go

    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)
  5. test/fixedbugs/issue5755.dir/a.go

    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) }
    
    type bar map[int]int
    
    func (b bar) F() { return }
    
    func TestBar() I { return bar{1: 2} }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 28 21:29:13 UTC 2013
    - 1.3K bytes
    - Viewed (0)
Back to top