Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for recovered (0.28 sec)

  1. src/cmd/cgo/internal/test/callback.go

    }
    
    func testCallbackPanic(t *testing.T) {
    	// Make sure panic during callback unwinds properly.
    	if lockedOSThread() {
    		t.Fatal("locked OS thread on entry to TestCallbackPanic")
    	}
    	defer func() {
    		s := recover()
    		if s == nil {
    			t.Fatal("did not panic")
    		}
    		if s.(string) != "callback panic" {
    			t.Fatal("wrong panic:", s)
    		}
    		if lockedOSThread() {
    			t.Fatal("locked OS thread on exit from TestCallbackPanic")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 111.5K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    </pre>
    
    <h3 id="Handling_panics">Handling panics</h3>
    
    <p> Two built-in functions, <code>panic</code> and <code>recover</code>,
    assist in reporting and handling <a href="#Run_time_panics">run-time panics</a>
    and program-defined error conditions.
    </p>
    
    <pre class="grammar">
    func panic(interface{})
    func recover() interface{}
    </pre>
    
    <p>
    While executing a function <code>F</code>,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  3. src/database/sql/sql_test.go

    	db, err := Open("test", fakeDBName)
    	if err != nil {
    		t.Fatalf("Open: %v", err)
    	}
    	expectPanic := func(name string, f func()) {
    		defer func() {
    			err := recover()
    			if err == nil {
    				t.Fatalf("%s did not panic", name)
    			}
    		}()
    		f()
    	}
    
    	expectPanic("Exec Exec", func() { db.Exec("PANIC|Exec|WIPE") })
    	exec(t, db, "WIPE") // check not deadlocked
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  4. pkg/volume/util/operationexecutor/operation_generator.go

    		}
    	} else {
    		// Get attacher plugin and the volumeName by splitting the volume unique name in case
    		// there's no VolumeSpec: this happens only on attach/detach controller crash recovery
    		// when a pod has been deleted during the controller downtime
    		pluginName, volumeName, err = util.SplitUniqueName(volumeToDetach.VolumeName)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 101.4K bytes
    - Viewed (0)
  5. 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)
  6. src/net/http/server.go

    // provided Request.
    //
    // 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: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  7. pkg/controller/garbagecollector/garbagecollector_test.go

    	// Wait until sync discovers the change
    	time.Sleep(1 * time.Second)
    	assertMonitors(t, gc, "pods", "secrets")
    
    	// Put the resources back to normal and ensure garbage collector sync recovers
    	fakeDiscoveryClient.setPreferredResources(serverResources, nil)
    
    	err = expectSyncNotBlocked(fakeDiscoveryClient, &gc.workerLock)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  8. src/compress/bzip2/testdata/Isaac.Newton-Opticks.txt.bz2

    crystalline humour AB which is beyond the Pupil _mk_) as to converge and meet again in so many Points in the bottom of the Eye, and there to paint the Picture of the Object upon that skin (called the _Tunica Retina_) with which the bottom of the Eye is covered. For Anatomists, when they have taken off from the bottom of the Eye that outward and most thick Coat called the _Dura Mater_, can then see through the thinner Coats, the Pictures of Objects lively painted thereon. And these Pictures, propagated by...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 24 18:26:02 UTC 2018
    - 129.4K bytes
    - Viewed (0)
  9. okhttp-android/src/main/baseline-prof.txt

    HSPLokhttp3/internal/http/RetryAndFollowUpInterceptor;->intercept(Lokhttp3/Interceptor$Chain;)Lokhttp3/Response;
    HSPLokhttp3/internal/http/RetryAndFollowUpInterceptor;->recover(Ljava/io/IOException;Lokhttp3/internal/connection/RealCall;Lokhttp3/Request;Z)Z
    HSPLokhttp3/internal/http/StatusLine;-><init>(Lokhttp3/Protocol;ILjava/lang/String;)V
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Mar 21 11:22:00 UTC 2022
    - 127.9K bytes
    - Viewed (0)
  10. src/crypto/sha512/sha512_test.go

    	},
    }
    
    func safeSum(h hash.Hash) (sum []byte, err error) {
    	defer func() {
    		if r := recover(); r != nil {
    			err = fmt.Errorf("sum panic: %v", r)
    		}
    	}()
    
    	return h.Sum(nil), nil
    }
    
    func TestLargeHashes(t *testing.T) {
    	for i, test := range largeUnmarshalTests {
    
    		h := New()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 21:17:08 UTC 2023
    - 105.6K bytes
    - Viewed (0)
Back to top