Skip to content

Commit 4c5adc0

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 4f62f23 commit 4c5adc0

File tree

1 file changed

+19
-20
lines changed
  • x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/math

1 file changed

+19
-20
lines changed

x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/expression/function/scalar/math/ScalbTests.java

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -94,27 +94,26 @@ private static TestCaseSupplier test(
9494
Number res,
9595
Iterable<String> warns
9696
) {
97-
return new TestCaseSupplier(
98-
Strings.format("<%s>, <%s>", dType.typeName(), scaleType.typeName()),
99-
List.of(dType, scaleType),
100-
() -> {
101-
var supplier = new TestCaseSupplier.TestCase(
102-
List.of(new TestCaseSupplier.TypedData(d, dType, "d"), new TestCaseSupplier.TypedData(scaleFactor, scaleType, "scaleFactor")),
103-
Strings.format(
104-
"Scalb%sEvaluator[d=%s, scaleFactor=Attribute[channel=1]]",
105-
pascalize(scaleType),
106-
cast(dType)
107-
108-
),
109-
DataType.DOUBLE,
110-
equalTo(res)
111-
);
112-
for (var warn : warns) {
113-
supplier = supplier.withWarning(warn);
114-
}
115-
return supplier;
97+
return new TestCaseSupplier(Strings.format("<%s>, <%s>", dType.typeName(), scaleType.typeName()), List.of(dType, scaleType), () -> {
98+
var supplier = new TestCaseSupplier.TestCase(
99+
List.of(
100+
new TestCaseSupplier.TypedData(d, dType, "d"),
101+
new TestCaseSupplier.TypedData(scaleFactor, scaleType, "scaleFactor")
102+
),
103+
Strings.format(
104+
"Scalb%sEvaluator[d=%s, scaleFactor=Attribute[channel=1]]",
105+
pascalize(scaleType),
106+
cast(dType)
107+
108+
),
109+
DataType.DOUBLE,
110+
equalTo(res)
111+
);
112+
for (var warn : warns) {
113+
supplier = supplier.withWarning(warn);
116114
}
117-
);
115+
return supplier;
116+
});
118117
}
119118

120119
private static String cast(DataType from) {

0 commit comments

Comments
 (0)