Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 628 for recovery (0.22 sec)

  1. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	_, err = registry.Get(testContext, podA.Name, &metav1.GetOptions{})
    	if !errors.IsNotFound(err) {
    		t.Errorf("Unexpected error: %v", err)
    	}
    }
    
    // TestGracefulStoreCanDeleteIfExistingGracePeriodZero tests recovery from
    // race condition where the graceful delete is unable to complete
    // in prior operation, but the pod remains with deletion timestamp
    // and grace period set to 0.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  2. src/testing/example.go

    // stdout is the captured output from stdout of the test.
    // recovered is the result of invoking recover after running the test, in case it panicked.
    //
    // If stdout doesn't match the expected output or if recovered is non-nil, it'll print the cause of failure to stdout.
    // If the test is chatty/verbose, it'll print a success message to stdout.
    // If recovered is non-nil, it'll panic with that value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  3. test/abi/defer_recover_results.go

    // run
    
    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test that when a function recovers from a panic, it
    // returns the correct results to the caller (in particular,
    // setting the result registers correctly).
    
    package main
    
    type S struct {
    	x uint8
    	y uint16
    	z uint32
    	w float64
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 06 20:22:15 UTC 2021
    - 800 bytes
    - Viewed (0)
  4. src/runtime/testdata/testprogcgo/sigfwd.go

    		fmt.Fprintf(os.Stderr, "test must be run with GO_TEST_CGOSIGFWD set\n")
    		os.Exit(1)
    	}
    
    	// Test that the signal originating in Go is handled (and recovered) by Go.
    	if !f() {
    		fmt.Fprintf(os.Stderr, "couldn't recover from SIGSEGV in Go.\n")
    		C.exit(2)
    	}
    
    	// Test that the signal originating in C is handled by C.
    	C.sigsegv()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 01 17:06:49 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  5. src/runtime/testdata/testprog/abort.go

    package main
    
    import _ "unsafe" // for go:linkname
    
    func init() {
    	register("Abort", Abort)
    }
    
    //go:linkname runtimeAbort runtime.abort
    func runtimeAbort()
    
    func Abort() {
    	defer func() {
    		recover()
    		panic("BAD: recovered from abort")
    	}()
    	runtimeAbort()
    	println("BAD: after abort")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 08 22:55:55 UTC 2018
    - 449 bytes
    - Viewed (0)
  6. src/runtime/testdata/testprogcgo/crash.go

    package main
    
    import (
    	"fmt"
    	"runtime"
    )
    
    func init() {
    	register("Crash", Crash)
    }
    
    func test(name string) {
    	defer func() {
    		if x := recover(); x != nil {
    			fmt.Printf(" recovered")
    		}
    		fmt.Printf(" done\n")
    	}()
    	fmt.Printf("%s:", name)
    	var s *string
    	_ = *s
    	fmt.Print("SHOULD NOT BE HERE")
    }
    
    func testInNewThread(name string) {
    	c := make(chan bool)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 23:34:33 UTC 2016
    - 743 bytes
    - Viewed (0)
  7. src/time/tick.go

    // panic.
    //
    // Before Go 1.23, the garbage collector did not recover
    // tickers that had not yet expired or been stopped, so code often
    // immediately deferred t.Stop after calling NewTicker, to make
    // the ticker recoverable when it was no longer needed.
    // As of Go 1.23, the garbage collector can recover unreferenced
    // tickers, even if they haven't been stopped.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:30 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/filters/wrap.go

    			// Honor the http.ErrAbortHandler sentinel panic value
    			//
    			// If ServeHTTP panics, the server (the caller of ServeHTTP) assumes
    			// that the effect of the panic was isolated to the active request.
    			// It recovers the panic, logs a stack trace to the server error log,
    			// and either closes the network connection or sends an HTTP/2
    			// RST_STREAM, depending on the HTTP protocol. To abort a handler so
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. src/runtime/testdata/testprog/crash.go

    	register("StringPanic", StringPanic)
    	register("NilPanic", NilPanic)
    	register("CircularPanic", CircularPanic)
    }
    
    func test(name string) {
    	defer func() {
    		if x := recover(); x != nil {
    			fmt.Printf(" recovered")
    		}
    		fmt.Printf(" done\n")
    	}()
    	fmt.Printf("%s:", name)
    	var s *string
    	_ = *s
    	fmt.Print("SHOULD NOT BE HERE")
    }
    
    func testInNewThread(name string) {
    	c := make(chan bool)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. src/runtime/crash_test.go

    	for i, fn := range testCases {
    		got := panicValue(fn)
    		if _, ok := got.(runtime.Error); !ok {
    			t.Errorf("test #%d: recovered value %v(type %T) does not implement runtime.Error", i, got, got)
    		}
    	}
    }
    
    func panicValue(fn func()) (recovered any) {
    	defer func() {
    		recovered = recover()
    	}()
    	fn()
    	return
    }
    
    func TestPanicAfterGoexit(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
Back to top