MCPcopy Create free account
hub / github.com/apache/solr / iter

Method iter

solr/core/src/test/org/apache/solr/search/TestDocSet.java:159–173  ·  view source on GitHub ↗
(DocSet d1, DocSet d2)

Source from the content-addressed store, hash-verified

157 }
158
159 public void iter(DocSet d1, DocSet d2) {
160
161 DocIterator i1 = d1.iterator();
162 DocIterator i2 = d2.iterator();
163
164 assertEquals(i1.hasNext(), i2.hasNext());
165
166 for (; ; ) {
167 boolean b1 = i1.hasNext();
168 boolean b2 = i2.hasNext();
169 assertEquals(b1, b2);
170 if (!b1) break;
171 assertEquals(i1.nextDoc(), i2.nextDoc());
172 }
173 }
174
175 protected void doSingle(int maxSize) {
176 int sz = rand.nextInt(maxSize + 1);

Callers 2

collectMethod · 0.95
doSingleMethod · 0.95

Calls 4

nextDocMethod · 0.95
assertEqualsMethod · 0.80
iteratorMethod · 0.65
hasNextMethod · 0.65

Tested by

no test coverage detected