Skip to content

Commit

Permalink
add testcase for array of map
Browse files Browse the repository at this point in the history
  • Loading branch information
harshit-splunk committed Jan 30, 2023
1 parent e4096b2 commit f7e1b10
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions receiver/splunkhecreceiver/receiver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,15 @@ func Test_splunkhecreceiver_handle_nested_fields(t *testing.T) {
field: []interface{}{1, []interface{}{1, 2}},
success: false,
},
{
name: "array_of_map",
field: []interface{}{
map[string]interface{}{
"key": "value",
},
},
success: false,
},
{
name: "int",
field: int(0),
Expand Down

0 comments on commit f7e1b10

Please sign in to comment.