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

Function TestCheckpoint_CompleteWait

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

Source from the content-addressed store, hash-verified

11)
12
13func TestCheckpoint_CompleteWait(t *testing.T) {
14 t.Parallel()
15 logger := testutil.Logger(t)
16 ctx := testutil.Context(t, testutil.WaitShort)
17 uut := newCheckpoint(logger)
18 err := xerrors.New("test")
19 uut.complete(err)
20 got := uut.wait(ctx)
21 require.Equal(t, err, got)
22}
23
24func TestCheckpoint_CompleteTwice(t *testing.T) {
25 t.Parallel()

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected