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

Function newFakeOrderedStore

coderd/provisionerdserver/acquirer_test.go:578–586  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

576}
577
578func newFakeOrderedStore() *fakeOrderedStore {
579 return &fakeOrderedStore{
580 // buffer the channels so that we can queue up lots of responses to
581 // occur nearly simultaneously
582 jobs: make(chan database.ProvisionerJob, 100),
583 errors: make(chan error, 100),
584 inflight: make(map[uuid.UUID]bool),
585 }
586}
587
588func (s *fakeOrderedStore) AcquireProvisionerJob(
589 _ context.Context, params database.AcquireProvisionerJobParams,

Callers 6

TestAcquirer_SingleFunction · 0.85
TestAcquirer_BackupPollFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected