(t *testing.T)
| 197 | } |
| 198 | |
| 199 | func TestParseRouterCommentWithColonSign(t *testing.T) { |
| 200 | t.Parallel() |
| 201 | |
| 202 | comment := `/@Router /customer/get-wishlist/{wishlist_id}:move [post]` |
| 203 | operation := NewOperation(nil) |
| 204 | err := operation.ParseComment(comment, nil) |
| 205 | assert.NoError(t, err) |
| 206 | assert.Len(t, operation.RouterProperties, 1) |
| 207 | assert.Equal(t, "/customer/get-wishlist/{wishlist_id}:move", operation.RouterProperties[0].Path) |
| 208 | assert.Equal(t, "POST", operation.RouterProperties[0].HTTPMethod) |
| 209 | } |
| 210 | |
| 211 | func TestParseRouterCommentNoColonSignAtPathStartErr(t *testing.T) { |
| 212 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…