Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for doPanic (0.18 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/filters/timeout_test.go

    }
    
    func TestTimeout(t *testing.T) {
    	origReallyCrash := runtime.ReallyCrash
    	runtime.ReallyCrash = false
    	defer func() {
    		runtime.ReallyCrash = origReallyCrash
    	}()
    
    	sendResponse := make(chan string, 1)
    	doPanic := make(chan interface{}, 1)
    	writeErrors := make(chan error, 1)
    	gotPanic := make(chan interface{}, 1)
    	timeout := make(chan time.Time, 1)
    	resp := "test response"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  2. src/runtime/defer_test.go

    	foo.element.z = 4
    	defer func(element bigStruct) {
    		save3 = element.z
    	}(foo.element)
    	defer func(element bigStruct) {
    		save4 = element.z
    	}(sideeffect2(foo).element)
    }
    
    //go:noinline
    func doPanic() {
    	panic("Test panic")
    }
    
    func TestDeferForFuncWithNoExit(t *testing.T) {
    	cond := 1
    	defer func() {
    		if cond != 2 {
    			t.Fatalf("cond: wanted 2, got %v", cond)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:57:24 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  3. src/testing/fuzz.go

    				f.signal <- true
    			}
    		}()
    
    		// If we recovered a panic or inappropriate runtime.Goexit, fail the test,
    		// flush the output log up to the root, then panic.
    		doPanic := func(err any) {
    			f.Fail()
    			if r := f.runCleanup(recoverAndReturnPanic); r != nil {
    				f.Logf("cleanup panicked with %v", r)
    			}
    			for root := &f.common; root.parent != nil; root = root.parent {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  4. src/runtime/callers_test.go

    	// Make sure we don't have any extra frames on the stack (due to
    	// open-coded defer processing)
    	want := []string{"runtime.Callers", "runtime_test.TestCallersDoublePanic.func1.1",
    		"runtime.gopanic", "runtime_test.TestCallersDoublePanic.func1", "runtime.gopanic", "runtime_test.TestCallersDoublePanic"}
    
    	defer func() {
    		defer func() {
    			pcs := make([]uintptr, 20)
    			pcs = pcs[:runtime.Callers(0, pcs)]
    			if recover() == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 21:36:31 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  5. src/runtime/panic.go

    // The compiler emits calls to this function.
    //
    // gopanic should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - go.undefinedlabs.com/scopeagent
    //   - github.com/goplus/igop
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname gopanic
    func gopanic(e any) {
    	if e == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ir/fmt.go

    	OMIN:              "min",
    	OMOD:              "%",
    	OMUL:              "*",
    	ONEW:              "new",
    	ONE:               "!=",
    	ONOT:              "!",
    	OOROR:             "||",
    	OOR:               "|",
    	OPANIC:            "panic",
    	OPLUS:             "+",
    	OPRINTLN:          "println",
    	OPRINT:            "print",
    	ORANGE:            "range",
    	OREAL:             "real",
    	ORECV:             "<-",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 26K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func mallocgc(size uintptr, typ *byte, needszero bool) unsafe.Pointer
    func panicdivide()
    func panicshift()
    func panicmakeslicelen()
    func panicmakeslicecap()
    func throwinit()
    func panicwrap()
    
    func gopanic(interface{})
    func gorecover(*int32) interface{}
    func goschedguarded()
    
    // Note: these declarations are just for wasm port.
    // Other ports call assembly stubs instead.
    func goPanicIndex(x int, y int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  8. docs/pl/docs/help-fastapi.md

    * Pomóż mi sprawdzić, czy PR ma **testy**.
    
    * Sprawdź, czy testy **nie przechodzą** przed PR. 🚨
    
    * Następnie sprawdź, czy testy **przechodzą** po PR. ✅
    
    * Wiele PR-ów nie ma testów, możesz **przypomnieć** im o dodaniu testów, a nawet **zaproponować** samemu jakieś testy. To jedna z rzeczy, które pochłaniają najwięcej czasu i możesz w tym bardzo pomóc.
    
    * Następnie skomentuj również to, czego spróbowałeś, wtedy będę wiedział, że to sprawdziłeś. 🤓
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/expr.go

    	case ir.OANDAND, ir.OOROR:
    		n := n.(*ir.LogicalExpr)
    		return walkLogical(n, init)
    
    	case ir.OPRINT, ir.OPRINTLN:
    		return walkPrint(n.(*ir.CallExpr), init)
    
    	case ir.OPANIC:
    		n := n.(*ir.UnaryExpr)
    		return mkcall("gopanic", nil, init, n.X)
    
    	case ir.ORECOVERFP:
    		return walkRecoverFP(n.(*ir.CallExpr), init)
    
    	case ir.OCFUNC:
    		return n
    
    	case ir.OCALLINTER, ir.OCALLFUNC:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/typecheck/func.go

    			n.SetOp(l.BuiltinOp)
    			n.Fun = nil
    			n.SetTypecheck(0) // re-typechecking new op is OK, not a loop
    			return typecheck(n, top)
    
    		case ir.OCAP, ir.OCLEAR, ir.OCLOSE, ir.OIMAG, ir.OLEN, ir.OPANIC, ir.OREAL, ir.OUNSAFESTRINGDATA, ir.OUNSAFESLICEDATA:
    			typecheckargs(n)
    			fallthrough
    		case ir.ONEW:
    			arg, ok := needOneArg(n, "%v", n.Op())
    			if !ok {
    				n.SetType(nil)
    				return n
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
Back to top