From 46c8cac49b1919b415d7442d0f223f9e1735f9fd Mon Sep 17 00:00:00 2001 From: Nathan <148575555+nathan-artie@users.noreply.github.com> Date: Tue, 25 Jun 2024 16:36:34 -0700 Subject: [PATCH] Convert spaces to tabs in a few test files (#763) --- lib/cdc/relational/debezium_test.go | 24 +++++++-------- lib/debezium/keys_test.go | 48 ++++++++++++++--------------- lib/typing/mongo/bson_bench_test.go | 2 +- lib/typing/mongo/bson_test.go | 2 +- 4 files changed, 38 insertions(+), 38 deletions(-) diff --git a/lib/cdc/relational/debezium_test.go b/lib/cdc/relational/debezium_test.go index 80d7e4dfb..4d802a37f 100644 --- a/lib/cdc/relational/debezium_test.go +++ b/lib/cdc/relational/debezium_test.go @@ -340,18 +340,18 @@ func (r *RelationTestSuite) TestGetEventFromBytes_MySQL() { "optional": false, "field": "abcDEF" }, { - "type": "map", - "keys": { - "type": "string", - "optional": false - }, - "values": { - "type": "string", - "optional": true - }, - "optional": false, - "field": "custom_fields" - }], + "type": "map", + "keys": { + "type": "string", + "optional": false + }, + "values": { + "type": "string", + "optional": true + }, + "optional": false, + "field": "custom_fields" + }], "optional": true, "name": "mysql1.inventory.customers.Value", "field": "after" diff --git a/lib/debezium/keys_test.go b/lib/debezium/keys_test.go index caae8cab6..ae0641220 100644 --- a/lib/debezium/keys_test.go +++ b/lib/debezium/keys_test.go @@ -91,30 +91,30 @@ func TestParsePartitionKeyStruct(t *testing.T) { // Schema keys, err := parsePartitionKeyStruct([]byte(` { - "schema": { - "type": "struct", - "fields": [ - { - "type": "string", - "optional": false, - "field": "id" - }, - { - "type": "int64", - "optional": false, - "name": "io.debezium.time.Timestamp", - "version": 1, - "default": 0, - "field": "created_at" - } - ], - "optional": false, - "name": "b2810475-5d57-48b5-b525-7eaa208d75a0.8024ffce-67eb-472c-99e5-1d9419cdf943.public.message_consents.Key" - }, - "payload": { - "id": "339f3f2f-f29f-4f00-869e-476122310eff", - "created_at": 1713229699440 - } + "schema": { + "type": "struct", + "fields": [ + { + "type": "string", + "optional": false, + "field": "id" + }, + { + "type": "int64", + "optional": false, + "name": "io.debezium.time.Timestamp", + "version": 1, + "default": 0, + "field": "created_at" + } + ], + "optional": false, + "name": "b2810475-5d57-48b5-b525-7eaa208d75a0.8024ffce-67eb-472c-99e5-1d9419cdf943.public.message_consents.Key" + }, + "payload": { + "id": "339f3f2f-f29f-4f00-869e-476122310eff", + "created_at": 1713229699440 + } } `)) assert.NoError(t, err) diff --git a/lib/typing/mongo/bson_bench_test.go b/lib/typing/mongo/bson_bench_test.go index d715f83cb..377b3a2c2 100644 --- a/lib/typing/mongo/bson_bench_test.go +++ b/lib/typing/mongo/bson_bench_test.go @@ -61,7 +61,7 @@ func BenchmarkJSONEToMap(b *testing.B) { } }, "test_timestamp": { - "$timestamp": { "t": 1678929517, "i": 1 } + "$timestamp": { "t": 1678929517, "i": 1 } }, "test_nan": NaN, "test_nan_string": "NaN", diff --git a/lib/typing/mongo/bson_test.go b/lib/typing/mongo/bson_test.go index 8c6594c6d..1b0492d9c 100644 --- a/lib/typing/mongo/bson_test.go +++ b/lib/typing/mongo/bson_test.go @@ -71,7 +71,7 @@ func TestJSONEToMap(t *testing.T) { } }, "test_timestamp": { - "$timestamp": { "t": 1678929517, "i": 1 } + "$timestamp": { "t": 1678929517, "i": 1 } }, "test_nan": NaN, "test_nan_string": "NaN",