(t *testing.T)
| 164 | } |
| 165 | |
| 166 | func TestParseRouterCommentWithDollarSign(t *testing.T) { |
| 167 | t.Parallel() |
| 168 | |
| 169 | comment := `/@Router /customer/get-wishlist/{wishlist_id}$move [post]` |
| 170 | operation := NewOperation(nil) |
| 171 | err := operation.ParseComment(comment, nil) |
| 172 | assert.NoError(t, err) |
| 173 | assert.Len(t, operation.RouterProperties, 1) |
| 174 | assert.Equal(t, "/customer/get-wishlist/{wishlist_id}$move", operation.RouterProperties[0].Path) |
| 175 | assert.Equal(t, "POST", operation.RouterProperties[0].HTTPMethod) |
| 176 | } |
| 177 | |
| 178 | func TestParseRouterCommentWithParens(t *testing.T) { |
| 179 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…