()
| 34 | } |
| 35 | |
| 36 | func (c *testControllerMethodResult) GetJson() Result { |
| 37 | var err error |
| 38 | if c.Ctx.URLParamExists("err") { |
| 39 | err = errors.New("error here") |
| 40 | } |
| 41 | return Response{ |
| 42 | Err: err, // if err != nil then it will fire the error's text with a BadRequest. |
| 43 | Object: testCustomStruct{Name: "Iris", Age: 2}, |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | var things = []string{"thing 0", "thing 1", "thing 2"} |
| 48 |
nothing calls this directly
no test coverage detected