Skip to content

Commit

Permalink
escaping add additional test case
Browse files Browse the repository at this point in the history
  • Loading branch information
felixge committed Nov 2, 2017
1 parent e246032 commit c434322
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/outputs/cratedb/cratedb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func Test_escapeValue(t *testing.T) {
{map[string]interface{}{"foo": "bar"}, `{"foo" = 'bar'}`},
{map[string]interface{}{"foo": "bar", "one": "more"}, `{"foo" = 'bar', "one" = 'more'}`},
{map[string]interface{}{"foo": map[string]interface{}{"one": "more"}}, `{"foo" = {"one" = 'more'}}`},
{map[string]interface{}{`fo"o`: `b'ar`, `ab'c`: `xy"z`, `on"""e`: `mo'''re`}, `{"ab'c" = 'xy"z', "fo""o" = 'b''ar', "on""""""e" = 'mo''''''re'}`},
}

for _, test := range tests {
Expand Down

0 comments on commit c434322

Please sign in to comment.