(t *testing.T)
| 287 | } |
| 288 | |
| 289 | func TestBindingFormForTime2(t *testing.T) { |
| 290 | testFormBindingForTime(t, http.MethodGet, |
| 291 | "/?time_foo=2017-11-15&time_bar=&createTime=1562400033000000123&unixTime=1562400033&unixMilliTime=1562400033001&unixMicroTime=1562400033000012", "/?bar2=foo", |
| 292 | "", "") |
| 293 | testFormBindingForTimeNotUnixFormat(t, http.MethodPost, |
| 294 | "/", "/", |
| 295 | "time_foo=2017-11-15&createTime=bad&unixTime=bad&unixMilliTime=bad&unixMicroTime=bad", "bar2=foo") |
| 296 | testFormBindingForTimeNotFormat(t, http.MethodGet, |
| 297 | "/?time_foo=2017-11-15", "/?bar2=foo", |
| 298 | "", "") |
| 299 | testFormBindingForTimeFailFormat(t, http.MethodGet, |
| 300 | "/?time_foo=2017-11-15", "/?bar2=foo", |
| 301 | "", "") |
| 302 | testFormBindingForTimeFailLocation(t, http.MethodGet, |
| 303 | "/?time_foo=2017-11-15", "/?bar2=foo", |
| 304 | "", "") |
| 305 | } |
| 306 | |
| 307 | func TestFormBindingIgnoreField(t *testing.T) { |
| 308 | testFormBindingIgnoreField(t, http.MethodPost, |
nothing calls this directly
no test coverage detected