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

Method sendCtx

coderd/provisionerdserver/acquirer_test.go:611–625  ·  view source on GitHub ↗
(ctx context.Context, job database.ProvisionerJob, err error)

Source from the content-addressed store, hash-verified

609}
610
611func (s *fakeOrderedStore) sendCtx(ctx context.Context, job database.ProvisionerJob, err error) error {
612 select {
613 case <-ctx.Done():
614 return ctx.Err()
615 case s.jobs <- job:
616 // OK
617 }
618 select {
619 case <-ctx.Done():
620 return ctx.Err()
621 case s.errors <- err:
622 // OK
623 }
624 return nil
625}
626
627// fakeTaggedStore is a test store that allows tests to specify which jobs are
628// available, and returns them to callers with the appropriate provisioner type

Callers 6

TestAcquirer_SingleFunction · 0.80
TestAcquirer_BackupPollFunction · 0.80

Calls 2

ErrMethod · 0.80
DoneMethod · 0.45

Tested by

no test coverage detected