(t *testing.T)
| 269 | } |
| 270 | |
| 271 | func TestBindingFormForTime(t *testing.T) { |
| 272 | testFormBindingForTime(t, http.MethodPost, |
| 273 | "/", "/", |
| 274 | "time_foo=2017-11-15&time_bar=&createTime=1562400033000000123&unixTime=1562400033&unixMilliTime=1562400033001&unixMicroTime=1562400033000012", "bar2=foo") |
| 275 | testFormBindingForTimeNotUnixFormat(t, http.MethodPost, |
| 276 | "/", "/", |
| 277 | "time_foo=2017-11-15&createTime=bad&unixTime=bad&unixMilliTime=bad&unixMicroTime=bad", "bar2=foo") |
| 278 | testFormBindingForTimeNotFormat(t, http.MethodPost, |
| 279 | "/", "/", |
| 280 | "time_foo=2017-11-15", "bar2=foo") |
| 281 | testFormBindingForTimeFailFormat(t, http.MethodPost, |
| 282 | "/", "/", |
| 283 | "time_foo=2017-11-15", "bar2=foo") |
| 284 | testFormBindingForTimeFailLocation(t, http.MethodPost, |
| 285 | "/", "/", |
| 286 | "time_foo=2017-11-15", "bar2=foo") |
| 287 | } |
| 288 | |
| 289 | func TestBindingFormForTime2(t *testing.T) { |
| 290 | testFormBindingForTime(t, http.MethodGet, |
nothing calls this directly
no test coverage detected