You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhances PgVectorEmbeddingDimensionsTests with additional test cases covering edge scenarios:
- Embedding model returning zero/negative dimensions
- Explicitly setting zero/negative dimensions via builder
- Improved test structure with Given-When-Then comments
- Ensures all code paths in embeddingDimensions() method are properly tested.
Signed-off-by: alxkm <[email protected]>
Copy file name to clipboardExpand all lines: vector-stores/spring-ai-pgvector-store/src/test/java/org/springframework/ai/vectorstore/pgvector/PgVectorEmbeddingDimensionsTests.java
+56-7Lines changed: 56 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -58,25 +58,74 @@ public void explicitlySetDimensions() {
0 commit comments