MCPcopy Index your code
hub / github.com/coder/coder / requireNotClosed

Method requireNotClosed

coderd/workspaceagentsrpc_internal_test.go:445–449  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

443}
444
445func (f *fakePingerCloser) requireNotClosed(t *testing.T) {
446 f.Lock()
447 defer f.Unlock()
448 require.False(t, f.closed)
449}
450
451func (f *fakePingerCloser) requireEventuallyClosed(t *testing.T, code websocket.StatusCode, reason string) {
452 require.Eventually(t, func() bool {

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected