(mTx *dbmock.MockStore)
| 1260 | } |
| 1261 | |
| 1262 | func 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. |
| 1275 | func withInTx(mTx *dbmock.MockStore) { |
nothing calls this directly
no test coverage detected