forked from voidint/binding
-
Notifications
You must be signed in to change notification settings - Fork 3
/
form_test.go
75 lines (39 loc) · 1.03 KB
/
form_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package binding
import (
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func TestForm(t *testing.T) {
Convey("Given a proper request with a query string", t, func() {
Convey("It should deserialize", nil)
Convey("There should be no errors", nil)
})
Convey("Given a proper request with a form body", t, func() {
Convey("It should deserialize", nil)
Convey("There should be no errors", nil)
})
Convey("Each case in the type switch should be tested", t, func() {
Convey("uint8", nil)
Convey("uint16", nil)
Convey("uint32", nil)
Convey("uint64", nil)
Convey("int8", nil)
Convey("int16", nil)
Convey("int32", nil)
Convey("int64", nil)
Convey("float32", nil)
Convey("[]float32", nil)
Convey("float64", nil)
Convey("[]float64", nil)
Convey("uint", nil)
Convey("[]uint", nil)
Convey("int", nil)
Convey("[]int", nil)
Convey("bool", nil)
Convey("[]bool", nil)
Convey("string", nil)
Convey("[]string", nil)
Convey("time.Time", nil)
Convey("[]time.Time", nil)
})
}