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

Function TestCheckpoint_WaitComplete

agent/checkpoint_internal_test.go:36–49  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

34}
35
36func TestCheckpoint_WaitComplete(t *testing.T) {
37 t.Parallel()
38 logger := testutil.Logger(t)
39 ctx := testutil.Context(t, testutil.WaitShort)
40 uut := newCheckpoint(logger)
41 err := xerrors.New("test")
42 errCh := make(chan error, 1)
43 go func() {
44 errCh <- uut.wait(ctx)
45 }()
46 uut.complete(err)
47 got := testutil.TryReceive(ctx, t, errCh)
48 require.Equal(t, err, got)
49}

Callers

nothing calls this directly

Calls 8

LoggerFunction · 0.92
ContextFunction · 0.92
TryReceiveFunction · 0.92
newCheckpointFunction · 0.85
completeMethod · 0.80
NewMethod · 0.65
waitMethod · 0.45
EqualMethod · 0.45

Tested by

no test coverage detected