Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestPanic (0.13 sec)

  1. src/testing/panic_test.go

    )
    
    var testPanicTest = flag.String("test_panic_test", "", "TestPanic: indicates which test should panic")
    var testPanicParallel = flag.Bool("test_panic_parallel", false, "TestPanic: run subtests in parallel")
    var testPanicCleanup = flag.Bool("test_panic_cleanup", false, "TestPanic: indicates whether test should call Cleanup")
    var testPanicCleanupPanic = flag.String("test_panic_cleanup_panic", "", "TestPanic: indicate whether test should call Cleanup function that panics")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 27 16:49:24 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  2. 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