MCPcopy Create free account
hub / github.com/coder/coder / TestSeed

Function TestSeed

coderd/aibridge/prices/prices_test.go:183–188  ·  view source on GitHub ↗

TestSeed exercises the real embedded prices.json so we catch a corrupted, empty, or unparseable seed file at test time rather than at server startup. Intentionally makes no assertions about specific prices, since those drift whenever the seed is regenerated from upstream.

(t *testing.T)

Source from the content-addressed store, hash-verified

181// Intentionally makes no assertions about specific prices, since those drift
182// whenever the seed is regenerated from upstream.
183func TestSeed(t *testing.T) {
184 t.Parallel()
185 ctx := testutil.Context(t, testutil.WaitShort)
186 db, _ := dbtestutil.NewDB(t)
187 require.NoError(t, prices.Seed(ctx, db))
188}

Callers

nothing calls this directly

Calls 3

ContextFunction · 0.92
NewDBFunction · 0.92
SeedFunction · 0.92

Tested by

no test coverage detected