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.
| 628 | // available, and returns them to callers with the appropriate provisioner type |
| 629 | // and tags. It doesn't care about the order. |
| 630 | type fakeTaggedStore struct { |
| 631 | t *testing.T |
| 632 | mu sync.Mutex |
| 633 | jobs []database.ProvisionerJob |
| 634 | params chan database.AcquireProvisionerJobParams |
| 635 | } |
| 636 | |
| 637 | func newFakeTaggedStore(t *testing.T) *fakeTaggedStore { |
| 638 | return &fakeTaggedStore{ |
nothing calls this directly
no outgoing calls
no test coverage detected