(t *testing.T, comment SwaggerComment)
| 294 | } |
| 295 | |
| 296 | func 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 | |
| 303 | func assertGoCommentFirst(t *testing.T, comment SwaggerComment) { |
| 304 | var inSwaggerBlock bool |
no test coverage detected