Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TestPanic (0.12 sec)

  1. src/cmd/internal/test2json/testdata/panic.json

    {"Action":"start"}
    {"Action":"output","Test":"TestPanic","Output":"--- FAIL: TestPanic (0.00s)\n"}
    {"Action":"output","Test":"TestPanic","Output":"panic: oops [recovered]\n"}
    {"Action":"output","Test":"TestPanic","Output":"\tpanic: oops\n"}
    {"Action":"output","Test":"TestPanic","Output":"\n"}
    {"Action":"output","Test":"TestPanic","Output":"goroutine 7 [running]:\n"}
    {"Action":"output","Test":"TestPanic","Output":"testing.tRunner.func1(0xc000092100)\n"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  2. test/fixedbugs/issue56990.go

    }
    
    // Hack to run tests in a playground
    func matchString(a, b string) (bool, error) {
    	return a == b, nil
    }
    func main() {
    	testSuite := []testing.InternalTest{
    		{
    			Name: "TestPanic",
    			F:    TestPanic,
    		},
    	}
    	testing.Main(matchString, testSuite, nil, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 30 17:46:51 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/go/testdata/script/test_json_panic_exit.txt

    package exit1_test
    
    import (
    	"os"
    	"testing"
    )
    
    func TestMain(m *testing.M) {
    	os.Exit(1)
    }
    
    -- panic/panic_test.go --
    package panic_test
    
    import "testing"
    
    func TestPanic(t *testing.T) {
    	panic("oh no")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 19:50:36 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  5. 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