File tree 1 file changed +2
-0
lines changed
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ func TestMarshalForm(t *testing.T) {
133
133
StructSlice []testSubStruct `json:"struct_slice,omitempty"`
134
134
OptInt * int `json:"opt_int,omitempty"`
135
135
OptBool * bool `json:"opt_bool,omitempty"`
136
+ OptBoolNullable * bool `json:"opt_bool_nullable"`
136
137
OptString * string `json:"opt_string,omitempty"`
137
138
OptStruct * testSubStruct `json:"opt_struct,omitempty"`
138
139
OptStructSlice * []testSubStruct `json:"opt_struct_slice,omitempty"`
@@ -151,6 +152,7 @@ func TestMarshalForm(t *testing.T) {
151
152
},
152
153
"opt_int=456" : {OptInt : func (v int ) * int { return & v }(456 )},
153
154
"opt_bool=true" : {OptBool : func (v bool ) * bool { return & v }(true )},
155
+ "" : {OptBoolNullable : nil },
154
156
"opt_string=def" : {OptString : func (v string ) * string { return & v }("def" )},
155
157
"opt_struct[int]=456&opt_struct[string]=def" : {OptStruct : & testSubStruct {Int : 456 , String : "def" }},
156
158
"opt_struct_slice[0][int]=123&opt_struct_slice[0][string]=abc&opt_struct_slice[1][int]=456&opt_struct_slice[1][string]=def" : {
You can’t perform that action at this time.
0 commit comments