benwtrent commented on code in PR #14963:
URL: https://github.com/apache/lucene/pull/14963#discussion_r2392873285


##########
lucene/test-framework/src/java/org/apache/lucene/tests/util/LuceneTestCase.java:
##########
@@ -3277,4 +3278,9 @@ public Executor 
getIntraMergeExecutor(MergePolicy.OneMerge merge) {
       return intraMergeExecutor;
     }
   }
+
+  public static boolean hasGraphPresent(int k, int size) {
+    int expectedVisitedNodes = expectedVisitedNodes(k, size);
+    return size > expectedVisitedNodes && expectedVisitedNodes > 0;
+  }

Review Comment:
   > Maybe we can add a separate test case to test this and leave others to be 
disabled on the codec as you mentioned? I'll make those changes.
   
   I think maybe for tests that assume there MUST be a graph, they have codec 
settings that enforce such. For all other tests, it can be the default.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to