| 229 | } |
| 230 | |
| 231 | type fakeClient struct { |
| 232 | t testing.TB |
| 233 | |
| 234 | expectedTemplateName string |
| 235 | expectedOrgID uuid.UUID |
| 236 | templateByNameError error |
| 237 | |
| 238 | expectedTags map[string]string |
| 239 | matchedProvisioners int |
| 240 | templateVersionJobStatus codersdk.ProvisionerJobStatus |
| 241 | |
| 242 | createTemplateCount int |
| 243 | templateVersionsCount int |
| 244 | uploadsCount int |
| 245 | templateByNameCount int |
| 246 | } |
| 247 | |
| 248 | func (f *fakeClient) TemplateByName(ctx context.Context, orgID uuid.UUID, templateName string) (codersdk.Template, error) { |
| 249 | f.templateByNameCount++ |
nothing calls this directly
no outgoing calls
no test coverage detected