Skip to content

Commit 70787fc

Browse files
committed
spotless
1 parent 7295898 commit 70787fc

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/inference/results/TextEmbeddingByteResultsTests.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,12 @@ public void testTransformToCoordinationFormat() {
105105
}
106106

107107
public void testGetFirstEmbeddingSize() {
108-
var firstEmbeddingSize = new TextEmbeddingByteResults(List.of(
109-
new TextEmbeddingByteResults.Embedding(new byte[] { (byte) 23, (byte) 24 }),
110-
new TextEmbeddingByteResults.Embedding(new byte[] { (byte) 25, (byte) 26 })
111-
)).getFirstEmbeddingSize();
108+
var firstEmbeddingSize = new TextEmbeddingByteResults(
109+
List.of(
110+
new TextEmbeddingByteResults.Embedding(new byte[] { (byte) 23, (byte) 24 }),
111+
new TextEmbeddingByteResults.Embedding(new byte[] { (byte) 25, (byte) 26 })
112+
)
113+
).getFirstEmbeddingSize();
112114

113115
assertThat(firstEmbeddingSize, is(2));
114116
}

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/inference/results/TextEmbeddingFloatResultsTests.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,12 @@ public void testTransformToCoordinationFormat() {
105105
}
106106

107107
public void testGetFirstEmbeddingSize() {
108-
var firstEmbeddingSize = new TextEmbeddingFloatResults(List.of(
109-
new TextEmbeddingFloatResults.Embedding(new float[] { 0.1F, 0.2F }),
110-
new TextEmbeddingFloatResults.Embedding(new float[] { 0.3F, 0.4F })
111-
)).getFirstEmbeddingSize();
108+
var firstEmbeddingSize = new TextEmbeddingFloatResults(
109+
List.of(
110+
new TextEmbeddingFloatResults.Embedding(new float[] { 0.1F, 0.2F }),
111+
new TextEmbeddingFloatResults.Embedding(new float[] { 0.3F, 0.4F })
112+
)
113+
).getFirstEmbeddingSize();
112114

113115
assertThat(firstEmbeddingSize, is(2));
114116
}

0 commit comments

Comments
 (0)