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

Struct fakeTaggedStore

coderd/provisionerdserver/acquirer_test.go:630–635  ·  view source on GitHub ↗

fakeTaggedStore is a test store that allows tests to specify which jobs are available, and returns them to callers with the appropriate provisioner type and tags. It doesn't care about the order.

Source from the content-addressed store, hash-verified

628// available, and returns them to callers with the appropriate provisioner type
629// and tags. It doesn't care about the order.
630type fakeTaggedStore struct {
631 t *testing.T
632 mu sync.Mutex
633 jobs []database.ProvisionerJob
634 params chan database.AcquireProvisionerJobParams
635}
636
637func newFakeTaggedStore(t *testing.T) *fakeTaggedStore {
638 return &fakeTaggedStore{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected