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

Function expectFindMatchingPresetID

coderd/wsbuilder/wsbuilder_test.go:1598–1604  ·  view source on GitHub ↗
(id uuid.UUID, err error)

Source from the content-addressed store, hash-verified

1596}
1597
1598func expectFindMatchingPresetID(id uuid.UUID, err error) func(mTx *dbmock.MockStore) {
1599 return func(mTx *dbmock.MockStore) {
1600 mTx.EXPECT().FindMatchingPresetID(gomock.Any(), gomock.Any()).
1601 Times(1).
1602 Return(id, err)
1603 }
1604}
1605
1606type fakeUsageChecker struct {
1607 checkBuildUsageFunc func(ctx context.Context, store database.Store, templateVersion *database.TemplateVersion, task *database.Task, transition database.WorkspaceTransition) (wsbuilder.UsageCheckResponse, error)

Callers 10

TestBuilder_NoOptionsFunction · 0.85
TestBuilder_InitiatorFunction · 0.85
TestBuilder_BaggageFunction · 0.85
TestBuilder_ReasonFunction · 0.85

Calls 2

FindMatchingPresetIDMethod · 0.65
EXPECTMethod · 0.45

Tested by

no test coverage detected