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

Method VerifyResumeToken

coderd/workspaceagents_test.go:978–986  ·  view source on GitHub ↗
(ctx context.Context, token string)

Source from the content-addressed store, hash-verified

976}
977
978func (r *resumeTokenRecordingProvider) VerifyResumeToken(ctx context.Context, token string) (uuid.UUID, error) {
979 select {
980 case r.verifyCalls <- token:
981 return r.ResumeTokenProvider.VerifyResumeToken(ctx, token)
982 default:
983 r.t.Error("verifyCalls full")
984 return uuid.Nil, xerrors.New("verifyCalls full")
985 }
986}
987
988func TestWorkspaceAgentClientCoordinate_ResumeToken(t *testing.T) {
989 t.Parallel()

Callers

nothing calls this directly

Calls 3

VerifyResumeTokenMethod · 0.65
NewMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected