From 197fa86c2eacec940858c4bee89e0786c49289cb Mon Sep 17 00:00:00 2001 From: Daniel Bruce Date: Wed, 25 Feb 2026 13:14:22 -0500 Subject: [PATCH 1/2] trim the unit tests to only capture important case --- handwritten/bigquery/test/bigquery.ts | 116 -------------------------- 1 file changed, 116 deletions(-) diff --git a/handwritten/bigquery/test/bigquery.ts b/handwritten/bigquery/test/bigquery.ts index f410273c564..e3a134e85f1 100644 --- a/handwritten/bigquery/test/bigquery.ts +++ b/handwritten/bigquery/test/bigquery.ts @@ -3411,85 +3411,6 @@ describe('BigQuery', () => { expected?: any; bail?: boolean; }[] = [ - { - name: 'TOF: TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED, UI64: true', - opts: { - ['formatOptions.timestampOutputFormat']: - 'TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED', - ['formatOptions.useInt64Timestamp']: true, - }, - expected: { - timestampOutputFormat: 'TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED', - useInt64Timestamp: true, - }, - }, - { - name: 'TOF: TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED, UI64: false (default ISO8601_STRING)', - opts: { - ['formatOptions.timestampOutputFormat']: - 'TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED', - ['formatOptions.useInt64Timestamp']: false, - }, - expected: { - timestampOutputFormat: 'TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED', - useInt64Timestamp: false, - }, - }, - { - name: 'TOF: FLOAT64, UI64: false', - opts: { - ['formatOptions.timestampOutputFormat']: 'FLOAT64', - ['formatOptions.useInt64Timestamp']: false, - }, - expected: { - timestampOutputFormat: 'FLOAT64', - useInt64Timestamp: false, - }, - }, - { - name: 'TOF: INT64, UI64: true', - opts: { - ['formatOptions.timestampOutputFormat']: 'INT64', - ['formatOptions.useInt64Timestamp']: true, - }, - expected: { - timestampOutputFormat: 'INT64', - useInt64Timestamp: true, - }, - }, - { - name: 'TOF: INT64, UI64: false', - opts: { - ['formatOptions.timestampOutputFormat']: 'INT64', - ['formatOptions.useInt64Timestamp']: false, - }, - expected: { - timestampOutputFormat: 'INT64', - useInt64Timestamp: false, - }, - }, - { - name: 'TOF: ISO8601_STRING, UI64: true', - opts: { - ['formatOptions.timestampOutputFormat']: 'ISO8601_STRING', - ['formatOptions.useInt64Timestamp']: true, - }, - expected: { - timestampOutputFormat: 'ISO8601_STRING', - useInt64Timestamp: true, - }, - }, - { - name: 'TOF: ISO8601_STRING, UI64: false', - opts: { - ['formatOptions.timestampOutputFormat']: 'ISO8601_STRING', - ['formatOptions.useInt64Timestamp']: false, - }, - expected: { - timestampOutputFormat: 'ISO8601_STRING', - useInt64Timestamp: false, - }, - }, { name: 'TOF: omitted, UI64: omitted (default ISO8601_STRING)', opts: {}, @@ -3515,43 +3436,6 @@ describe('BigQuery', () => { useInt64Timestamp: false, }, }, - { - name: 'TOF: TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED, UI64: omitted (default ISO8601_STRING)', - opts: { - ['formatOptions.timestampOutputFormat']: - 'TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED', - }, - expected: { - timestampOutputFormat: 'TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED', - }, - }, - { - name: 'TOF: FLOAT64, UI64: omitted', - opts: { - ['formatOptions.timestampOutputFormat']: 'FLOAT64', - }, - expected: { - timestampOutputFormat: 'FLOAT64', - }, - }, - { - name: 'TOF: INT64, UI64: omitted', - opts: { - ['formatOptions.timestampOutputFormat']: 'INT64', - }, - expected: { - timestampOutputFormat: 'INT64', - }, - }, - { - name: 'TOF: ISO8601_STRING, UI64: omitted', - opts: { - ['formatOptions.timestampOutputFormat']: 'ISO8601_STRING', - }, - expected: { - timestampOutputFormat: 'ISO8601_STRING', - }, - }, ]; testCases.forEach(testCase => { From 591b64229c2f683963629ac6110c1f88dec46f17 Mon Sep 17 00:00:00 2001 From: Daniel Bruce Date: Wed, 25 Feb 2026 13:14:22 -0500 Subject: [PATCH 2/2] test: trim the unit tests to only capture important cases --- handwritten/bigquery/test/bigquery.ts | 116 -------------------------- 1 file changed, 116 deletions(-) diff --git a/handwritten/bigquery/test/bigquery.ts b/handwritten/bigquery/test/bigquery.ts index f410273c564..e3a134e85f1 100644 --- a/handwritten/bigquery/test/bigquery.ts +++ b/handwritten/bigquery/test/bigquery.ts @@ -3411,85 +3411,6 @@ describe('BigQuery', () => { expected?: any; bail?: boolean; }[] = [ - { - name: 'TOF: TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED, UI64: true', - opts: { - ['formatOptions.timestampOutputFormat']: - 'TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED', - ['formatOptions.useInt64Timestamp']: true, - }, - expected: { - timestampOutputFormat: 'TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED', - useInt64Timestamp: true, - }, - }, - { - name: 'TOF: TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED, UI64: false (default ISO8601_STRING)', - opts: { - ['formatOptions.timestampOutputFormat']: - 'TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED', - ['formatOptions.useInt64Timestamp']: false, - }, - expected: { - timestampOutputFormat: 'TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED', - useInt64Timestamp: false, - }, - }, - { - name: 'TOF: FLOAT64, UI64: false', - opts: { - ['formatOptions.timestampOutputFormat']: 'FLOAT64', - ['formatOptions.useInt64Timestamp']: false, - }, - expected: { - timestampOutputFormat: 'FLOAT64', - useInt64Timestamp: false, - }, - }, - { - name: 'TOF: INT64, UI64: true', - opts: { - ['formatOptions.timestampOutputFormat']: 'INT64', - ['formatOptions.useInt64Timestamp']: true, - }, - expected: { - timestampOutputFormat: 'INT64', - useInt64Timestamp: true, - }, - }, - { - name: 'TOF: INT64, UI64: false', - opts: { - ['formatOptions.timestampOutputFormat']: 'INT64', - ['formatOptions.useInt64Timestamp']: false, - }, - expected: { - timestampOutputFormat: 'INT64', - useInt64Timestamp: false, - }, - }, - { - name: 'TOF: ISO8601_STRING, UI64: true', - opts: { - ['formatOptions.timestampOutputFormat']: 'ISO8601_STRING', - ['formatOptions.useInt64Timestamp']: true, - }, - expected: { - timestampOutputFormat: 'ISO8601_STRING', - useInt64Timestamp: true, - }, - }, - { - name: 'TOF: ISO8601_STRING, UI64: false', - opts: { - ['formatOptions.timestampOutputFormat']: 'ISO8601_STRING', - ['formatOptions.useInt64Timestamp']: false, - }, - expected: { - timestampOutputFormat: 'ISO8601_STRING', - useInt64Timestamp: false, - }, - }, { name: 'TOF: omitted, UI64: omitted (default ISO8601_STRING)', opts: {}, @@ -3515,43 +3436,6 @@ describe('BigQuery', () => { useInt64Timestamp: false, }, }, - { - name: 'TOF: TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED, UI64: omitted (default ISO8601_STRING)', - opts: { - ['formatOptions.timestampOutputFormat']: - 'TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED', - }, - expected: { - timestampOutputFormat: 'TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED', - }, - }, - { - name: 'TOF: FLOAT64, UI64: omitted', - opts: { - ['formatOptions.timestampOutputFormat']: 'FLOAT64', - }, - expected: { - timestampOutputFormat: 'FLOAT64', - }, - }, - { - name: 'TOF: INT64, UI64: omitted', - opts: { - ['formatOptions.timestampOutputFormat']: 'INT64', - }, - expected: { - timestampOutputFormat: 'INT64', - }, - }, - { - name: 'TOF: ISO8601_STRING, UI64: omitted', - opts: { - ['formatOptions.timestampOutputFormat']: 'ISO8601_STRING', - }, - expected: { - timestampOutputFormat: 'ISO8601_STRING', - }, - }, ]; testCases.forEach(testCase => {