Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for test_panic_test (0.16 sec)

  1. src/testing/panic_test.go

    		desc  string
    		flags []string
    		want  string
    	}{{
    		desc:  "root test panics",
    		flags: []string{"-test_panic_test=TestPanicHelper"},
    		want: `
    --- FAIL: TestPanicHelper (N.NNs)
        panic_test.go:NNN: TestPanicHelper
    `,
    	}, {
    		desc:  "subtest panics",
    		flags: []string{"-test_panic_test=TestPanicHelper/1"},
    		want: `
    --- FAIL: TestPanicHelper (N.NNs)
        panic_test.go:NNN: TestPanicHelper
    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/cmd/go/testdata/script/test_json_exit.txt

    	"os"
    	"testing"
    )
    
    func TestMain(m *testing.M) {
    	fmt.Println("nothing to do")
    	os.Exit(0)
    }
    -- testpanic/testpanic_test.go --
    package testpanic_test
    
    import "testing"
    
    func TestPanic(*testing.T) {
    	panic("haha no")
    }
    -- testbgpanic/testbgpanic_test.go --
    package testbgpanic_test
    
    import "testing"
    
    func TestPanicInBackground(*testing.T) {
    	c := make(chan struct{})
    	go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 17 19:43:21 UTC 2020
    - 2K bytes
    - Viewed (0)
Back to top