Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestUnlockPanic (0.21 sec)

  1. internal/lsync/lrwmutex_test.go

    		rl.Unlock()
    		<-wlocked
    		select {
    		case <-rlocked:
    			t.Fatal("RLocker() didn't respect the write lock")
    		default:
    		}
    		wl.Unlock()
    	}
    }
    
    // Borrowed from rwmutex_test.go
    func TestUnlockPanic(t *testing.T) {
    	defer func() {
    		if recover() == nil {
    			t.Fatalf("unlock of unlocked RWMutex did not panic")
    		}
    	}()
    	mu := NewLRWMutex()
    	mu.Unlock()
    }
    
    // Borrowed from rwmutex_test.go
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Mar 05 04:57:35 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  2. internal/dsync/drwmutex_test.go

    	hammerRWMutex(t, 4, 10, n)
    	hammerRWMutex(t, 10, 1, n)
    	hammerRWMutex(t, 10, 3, n)
    	hammerRWMutex(t, 10, 10, n)
    	hammerRWMutex(t, 10, 5, n)
    }
    
    // Borrowed from rwmutex_test.go
    func TestUnlockPanic(t *testing.T) {
    	defer func() {
    		if recover() == nil {
    			t.Fatalf("unlock of unlocked RWMutex did not panic")
    		}
    	}()
    	mu := NewDRWMutex(ds, "test")
    	mu.Unlock(context.Background())
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 9.7K bytes
    - Viewed (0)
Back to top