(t *testing.T)
| 225 | } |
| 226 | |
| 227 | func TestURLGetParamIntValue(t *testing.T) { |
| 228 | params := url.Values{} |
| 229 | params.Set("key", "0") |
| 230 | |
| 231 | u := URL{} |
| 232 | u.SetParams(params) |
| 233 | |
| 234 | v := u.GetParamInt("key", 1) |
| 235 | assert.Equal(t, int64(0), v) |
| 236 | |
| 237 | u = URL{} |
| 238 | v = u.GetParamInt("key", 1) |
| 239 | assert.Equal(t, int64(1), v) |
| 240 | } |
| 241 | |
| 242 | func TestURLGetParamBool(t *testing.T) { |
| 243 | params := url.Values{} |
nothing calls this directly
no test coverage detected