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