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

Function TestAcquirer_Store

coderd/provisionerdserver/acquirer_test.go:34–41  ·  view source on GitHub ↗

TestAcquirer_Store tests that a database.Store is accepted as a provisionerdserver.AcquirerStore

(t *testing.T)

Source from the content-addressed store, hash-verified

32
33// TestAcquirer_Store tests that a database.Store is accepted as a provisionerdserver.AcquirerStore
34func TestAcquirer_Store(t *testing.T) {
35 t.Parallel()
36 db, ps := dbtestutil.NewDB(t)
37 ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitShort)
38 defer cancel()
39 logger := testutil.Logger(t)
40 _ = provisionerdserver.NewAcquirer(ctx, logger.Named("acquirer"), db, ps)
41}
42
43func TestAcquirer_Single(t *testing.T) {
44 t.Parallel()

Callers

nothing calls this directly

Calls 4

NewDBFunction · 0.92
LoggerFunction · 0.92
NewAcquirerFunction · 0.92
NamedMethod · 0.80

Tested by

no test coverage detected