Showing 1 of 2 files from the diff.
Other files ignored by Codecov
test/bigquery.ts has changed.

@@ -966,7 +966,7 @@
Loading
966 966
    if (typeName === 'ARRAY') {
967 967
      queryParameter.parameterValue!.arrayValues = (value as Array<{}>).map(
968 968
        itemValue => {
969 -
          const value = getValue(itemValue, parameterType.arrayType!);
969 +
          const value = BigQuery._getValue(itemValue, parameterType.arrayType!);
970 970
          if (is.object(value) || is.array(value)) {
971 971
            if (is.array(providedType)) {
972 972
              providedType = providedType as [];
@@ -998,23 +998,26 @@
Loading
998 998
        {}
999 999
      );
1000 1000
    } else {
1001 -
      queryParameter.parameterValue!.value = getValue(value, parameterType);
1001 +
      queryParameter.parameterValue!.value = BigQuery._getValue(
1002 +
        value,
1003 +
        parameterType
1004 +
      );
1002 1005
    }
1003 1006
1004 1007
    return queryParameter;
1008 +
  }
1005 1009
1006 -
    // eslint-disable-next-line @typescript-eslint/no-explicit-any
1007 -
    function getValue(value: any, type: ValueType): any {
1008 -
      return isCustomType(type) ? value.value : value;
1009 -
    }
1010 +
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1011 +
  private static _getValue(value: any, type: ValueType): any {
1012 +
    return BigQuery._isCustomType(type) ? value.value : value;
1013 +
  }
1010 1014
1011 -
    function isCustomType({type}: ValueType): boolean {
1012 -
      return (
1013 -
        type!.indexOf('TIME') > -1 ||
1014 -
        type!.indexOf('DATE') > -1 ||
1015 -
        type!.indexOf('GEOGRAPHY') > -1
1016 -
      );
1017 -
    }
1015 +
  private static _isCustomType({type}: ValueType): boolean {
1016 +
    return (
1017 +
      type!.indexOf('TIME') > -1 ||
1018 +
      type!.indexOf('DATE') > -1 ||
1019 +
      type!.indexOf('GEOGRAPHY') > -1
1020 +
    );
1018 1021
  }
1019 1022
1020 1023
  createDataset(
Files Coverage
src 98.92%
.mocharc.js 79.31%
.prettierrc.js 0.00%
Project Totals (9 files) 98.59%
actions 12
Build #324083730 -
actions 10
Build #324083730 -
actions windows
Build #324083730 -
actions 13
Build #324083730 -

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading