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

Function assertRequiredAnnotations

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

Source from the content-addressed store, hash-verified

294}
295
296func assertRequiredAnnotations(t *testing.T, comment SwaggerComment) {
297 assert.NotEmpty(t, comment.id, "@ID must be defined")
298 assert.NotEmpty(t, comment.summary, "@Summary must be defined")
299 assert.NotEmpty(t, comment.tags, "@Tags must be defined")
300 assert.NotEmpty(t, comment.router, "@Router must be defined")
301}
302
303func assertGoCommentFirst(t *testing.T, comment SwaggerComment) {
304 var inSwaggerBlock bool

Callers 1

VerifySwaggerDefinitionsFunction · 0.85

Calls 1

NotEmptyMethod · 0.80

Tested by

no test coverage detected