Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testPanics (0.29 sec)

  1. src/reflect/all_test.go

    			},
    		}),
    		struct{ F structFieldType }{})
    }
    
    func TestStructOfExportRules(t *testing.T) {
    	type S1 struct{}
    	type s2 struct{}
    	type ΦType struct{}
    	type φType struct{}
    
    	testPanic := func(i int, mustPanic bool, f func()) {
    		defer func() {
    			err := recover()
    			if err == nil && mustPanic {
    				t.Errorf("test-%d did not panic", i)
    			}
    			if err != nil && !mustPanic {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top