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

Method runCleanupFns

testutil/retry.go:106–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104var _ testing.TB = &fakeT{}
105
106func (t *fakeT) runCleanupFns() {
107 t.mu.Lock()
108 cleanupFns := slices.Clone(t.cleanupFns)
109 t.mu.Unlock()
110
111 // Execute in LIFO order to match the behavior of *testing.T.
112 slices.Reverse(cleanupFns)
113 for _, fn := range cleanupFns {
114 fn()
115 }
116}
117
118// Chdir implements testing.TB.
119func (*fakeT) Chdir(_ string) {

Callers 1

RunRetryFunction · 0.95

Calls 3

LockMethod · 0.45
CloneMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected