- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for Works (0.63 sec)
-
internal/dsync/drwmutex_test.go
mu := NewDRWMutex(ds, "test-unlock-panic-2") defer func() { if recover() == nil { t.Fatalf("unlock of unlocked RWMutex did not panic") } mu.RUnlock(context.Background()) // Unlock, so -test.count > 1 works }() mu.RLock(id, source) mu.Unlock(context.Background()) } // Borrowed from rwmutex_test.go func TestRUnlockPanic(t *testing.T) { defer func() { if recover() == nil {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat Dec 24 03:49:07 GMT 2022 - 9.7K bytes - Viewed (0)