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

Function TestCloserStack_Empty

cli/ssh_internal_test.go:96–108  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

94}
95
96func TestCloserStack_Empty(t *testing.T) {
97 t.Parallel()
98 ctx := testutil.Context(t, testutil.WaitShort)
99 logger := testutil.Logger(t)
100 uut := newCloserStack(ctx, logger, quartz.NewMock(t))
101
102 closed := make(chan struct{})
103 go func() {
104 defer close(closed)
105 uut.close(nil)
106 }()
107 testutil.TryReceive(ctx, t, closed)
108}
109
110func TestCloserStack_Context(t *testing.T) {
111 t.Parallel()

Callers

nothing calls this directly

Calls 5

ContextFunction · 0.92
LoggerFunction · 0.92
TryReceiveFunction · 0.92
newCloserStackFunction · 0.85
closeMethod · 0.65

Tested by

no test coverage detected