Skip to content

Commit

Permalink
remove some no longer used code
Browse files Browse the repository at this point in the history
  • Loading branch information
not-napoleon committed Dec 3, 2024
1 parent a3ce856 commit 8308c52
Showing 1 changed file with 0 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -620,70 +620,6 @@ public static void forUnaryBoolean(
unary(suppliers, expectedEvaluatorToString, booleanCases(), expectedType, v -> expectedValue.apply((Boolean) v), warnings);
}

/**
* Generate positive test cases for a unary function operating on an {@link DataType#DATETIME}.
* This variant defaults to maximum range of possible values
*/
public static void forUnaryDatetime(
List<TestCaseSupplier> suppliers,
String expectedEvaluatorToString,
DataType expectedType,
Function<Instant, Object> expectedValue,
List<String> warnings
) {
unaryNumeric(
suppliers,
expectedEvaluatorToString,
dateCases(),
expectedType,
n -> expectedValue.apply(Instant.ofEpochMilli(n.longValue())),
warnings
);
}

/**
* Generate positive test cases for a unary function operating on an {@link DataType#DATETIME}.
* This variant accepts a range of values
*/
public static void forUnaryDatetime(
List<TestCaseSupplier> suppliers,
String expectedEvaluatorToString,
DataType expectedType,
long min,
long max,
Function<Instant, Object> expectedValue,
List<String> warnings
) {
unaryNumeric(
suppliers,
expectedEvaluatorToString,
dateCases(min, max),
expectedType,
n -> expectedValue.apply(Instant.ofEpochMilli(n.longValue())),
warnings
);
}

/**
* Generate positive test cases for a unary function operating on an {@link DataType#DATE_NANOS}.
*/
public static void forUnaryDateNanos(
List<TestCaseSupplier> suppliers,
String expectedEvaluatorToString,
DataType expectedType,
Function<Instant, Object> expectedValue,
List<String> warnings
) {
unaryNumeric(
suppliers,
expectedEvaluatorToString,
dateNanosCases(),
expectedType,
n -> expectedValue.apply(DateUtils.toInstant((long) n)),
warnings
);
}

/**
* Generate positive test cases for a unary function operating on an {@link DataType#GEO_POINT}.
*/
Expand Down

0 comments on commit 8308c52

Please sign in to comment.