Test json: add a check with invalid json (no parameter is parsed)
This commit is contained in:
parent
0a470dbd40
commit
a54c428670
|
@ -463,6 +463,13 @@ func TestJsonParameters(t *testing.T) {
|
||||||
ParamNames: []string{"a", "URL#injection"},
|
ParamNames: []string{"a", "URL#injection"},
|
||||||
ParamValues: []interface{}{"b", nil},
|
ParamValues: []interface{}{"b", nil},
|
||||||
},
|
},
|
||||||
|
// json parse error
|
||||||
|
{
|
||||||
|
RawJson: "{ \"a\": \"b\", }",
|
||||||
|
InvalidNames: []string{},
|
||||||
|
ParamNames: []string{},
|
||||||
|
ParamValues: []interface{}{},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for i, test := range tests {
|
for i, test := range tests {
|
||||||
|
|
Loading…
Reference in New Issue