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

Function newTestAcquiree

coderd/provisionerdserver/acquirer_test.go:690–700  ·  view source on GitHub ↗
(t *testing.T, orgID uuid.UUID, workerID uuid.UUID, pt []database.ProvisionerType, tags provisionerdserver.Tags)

Source from the content-addressed store, hash-verified

688}
689
690func newTestAcquiree(t *testing.T, orgID uuid.UUID, workerID uuid.UUID, pt []database.ProvisionerType, tags provisionerdserver.Tags) *testAcquiree {
691 return &testAcquiree{
692 t: t,
693 orgID: orgID,
694 workerID: workerID,
695 pt: pt,
696 tags: tags,
697 ec: make(chan error, 1),
698 jc: make(chan database.ProvisionerJob, 1),
699 }
700}
701
702func (a *testAcquiree) startAcquire(ctx context.Context, uut *provisionerdserver.Acquirer) {
703 go func() {

Calls

no outgoing calls

Tested by

no test coverage detected