MCPcopy
hub / github.com/swaggo/swag / TestParseAcceptCommentErr

Function TestParseAcceptCommentErr

operation_test.go:60–67  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

58}
59
60func TestParseAcceptCommentErr(t *testing.T) {
61 t.Parallel()
62
63 comment := `/@Accept unknown`
64 operation := NewOperation(nil)
65 err := operation.ParseComment(comment, nil)
66 assert.Error(t, err)
67}
68
69func TestParseProduceComment(t *testing.T) {
70 t.Parallel()

Callers

nothing calls this directly

Calls 3

ParseCommentMethod · 0.95
NewOperationFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…