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

Function assertSuccessOrFailureDefined

coderd/coderdtest/swaggerparser.go:292–294  ·  view source on GitHub ↗
(t *testing.T, comment SwaggerComment)

Source from the content-addressed store, hash-verified

290}
291
292func assertSuccessOrFailureDefined(t *testing.T, comment SwaggerComment) {
293 assert.True(t, len(comment.successes) > 0 || len(comment.failures) > 0, "At least one @Success or @Failure annotation must be defined")
294}
295
296func assertRequiredAnnotations(t *testing.T, comment SwaggerComment) {
297 assert.NotEmpty(t, comment.id, "@ID must be defined")

Callers 1

VerifySwaggerDefinitionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected