Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Jun 13, 2024
1 parent 4826202 commit e446373
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions clients/bigquery/cast_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,10 @@ func TestEncodeStructToJSONString(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, `{"baz":1234,"foo":"bar"}`, result)
}
{
// Toasted map (should not happen):
result, err := EncodeStructToJSONString(map[string]any{"__debezium_unavailable_value": "bar", "baz": 1234})
assert.NoError(t, err)
assert.Equal(t, `{"key":"__debezium_unavailable_value"}`, result)
}
}

0 comments on commit e446373

Please sign in to comment.