MCPcopy Create free account
hub / github.com/Shopify/goose / assertResolved

Function assertResolved

lockmap/map_test.go:53–59  ·  view source on GitHub ↗
(promise Promise)

Source from the content-addressed store, hash-verified

51}
52
53func assertResolved(promise Promise) {
54 select {
55 case <-promise:
56 default:
57 panic("promise should have been resolved")
58 }
59}
60
61func assertNotResolved(promise Promise) {
62 select {

Callers 3

Test_lockMap_ReleaseFunction · 0.85
Test_lockMap_WaitFunction · 0.85
Test_lockMap_sweepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected