(t *testing.T)
| 68 | } |
| 69 | |
| 70 | func TestBindQuery_Success(t *testing.T) { |
| 71 | ctx := Mock_Ctx() |
| 72 | |
| 73 | var value string |
| 74 | err := ctx.BindQuery("query", &value) |
| 75 | if err != nil { |
| 76 | t.Fatalf("expected no error, got %v", err) |
| 77 | } |
| 78 | if value != "queryValue" { |
| 79 | t.Fatalf("expected query value to be 'queryValue', got '%s'", value) |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | func TestBindQuery_NotFound(t *testing.T) { |
| 84 | ctx := Mock_Ctx() |