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

Function TestParseRouterCommentNoDollarSignAtPathStartErr

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

Source from the content-addressed store, hash-verified

188}
189
190func TestParseRouterCommentNoDollarSignAtPathStartErr(t *testing.T) {
191 t.Parallel()
192
193 comment := `/@Router $customer/get-wishlist/{wishlist_id}$move [post]`
194 operation := NewOperation(nil)
195 err := operation.ParseComment(comment, nil)
196 assert.Error(t, err)
197}
198
199func TestParseRouterCommentWithColonSign(t *testing.T) {
200 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…