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

Function withTemplate

coderd/wsbuilder/wsbuilder_test.go:1262–1272  ·  view source on GitHub ↗
(mTx *dbmock.MockStore)

Source from the content-addressed store, hash-verified

1260}
1261
1262func withTemplate(mTx *dbmock.MockStore) {
1263 mTx.EXPECT().GetTemplateByID(gomock.Any(), templateID).
1264 Times(1).
1265 Return(database.Template{
1266 ID: templateID,
1267 OrganizationID: orgID,
1268 Provisioner: database.ProvisionerTypeTerraform,
1269 ActiveVersionID: activeVersionID,
1270 UseClassicParameterFlow: true,
1271 }, nil)
1272}
1273
1274// withInTx runs the given functions on the same db mock.
1275func withInTx(mTx *dbmock.MockStore) {

Callers

nothing calls this directly

Calls 2

GetTemplateByIDMethod · 0.65
EXPECTMethod · 0.45

Tested by

no test coverage detected