/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Produces a realistic unicode random string that
// survives MockAnalyzer unchanged:
while(true) {
continue;
}
int count = 0;
while(ts.incrementToken()) {
break;
}
count++;
}
if (count == 1) {
return s;
}
}
}
// Don't use _TestUtil.getTempDir so that we own the
// randomness (ie same seed will point to same dir):
if (VERBOSE) {
}
if (VERBOSE) {
/*
for(int idx=0;idx<s1.length();idx++) {
System.out.println(" s1 ch=0x" + Integer.toHexString(s1.charAt(idx)));
}
for(int idx=0;idx<s2.length();idx++) {
System.out.println(" s2 ch=0x" + Integer.toHexString(s2.charAt(idx)));
}
*/
}
if (random.nextBoolean()) {
}
}
final IndexReader r;
if (true) {
}
}
} else {
}
/*
if (VERBOSE) {
System.out.println("TEST: terms");
TermEnum termEnum = r.terms();
while(termEnum.next()) {
System.out.println(" term=" + termEnum.term() + " len=" + termEnum.term().text().length());
assertTrue(termEnum.docFreq() > 0);
System.out.println(" s1?=" + (termEnum.term().text().equals(s1)) + " s1len=" + s1.length());
System.out.println(" s2?=" + (termEnum.term().text().equals(s2)) + " s2len=" + s2.length());
final String s = termEnum.term().text();
for(int idx=0;idx<s.length();idx++) {
System.out.println(" ch=0x" + Integer.toHexString(s.charAt(idx)));
}
}
}
*/
final byte[] payload = new byte[100];
final boolean doS1;
if (random.nextBoolean()) {
doS1 = true;
} else {
doS1 = false;
}
if (VERBOSE) {
}
int docID = -1;
if (what == 0) {
if (VERBOSE) {
}
// nextDoc
while(true) {
break;
break;
} else {
expected++;
}
}
if (!result) {
if (VERBOSE) {
}
break;
} else {
if (VERBOSE) {
}
}
}
}
}
} else {
// advance
final int targetDocID;
if (docID == -1) {
} else {
}
if (VERBOSE) {
}
int expected = targetDocID;
while(true) {
break;
break;
} else {
expected++;
}
}
if (!result) {
if (VERBOSE) {
}
break;
} else {
if (VERBOSE) {
}
}
}
}
}
}
}
}
r.close();
}
// a weaker form of testLongPostings, that doesnt check positions
}
// Don't use _TestUtil.getTempDir so that we own the
// randomness (ie same seed will point to same dir):
if (VERBOSE) {
}
if (VERBOSE) {
/*
for(int idx=0;idx<s1.length();idx++) {
System.out.println(" s1 ch=0x" + Integer.toHexString(s1.charAt(idx)));
}
for(int idx=0;idx<s2.length();idx++) {
System.out.println(" s2 ch=0x" + Integer.toHexString(s2.charAt(idx)));
}
*/
}
if (random.nextBoolean()) {
}
}
final IndexReader r;
if (true) {
}
}
} else {
}
/*
if (VERBOSE) {
System.out.println("TEST: terms");
TermEnum termEnum = r.terms();
while(termEnum.next()) {
System.out.println(" term=" + termEnum.term() + " len=" + termEnum.term().text().length());
assertTrue(termEnum.docFreq() > 0);
System.out.println(" s1?=" + (termEnum.term().text().equals(s1)) + " s1len=" + s1.length());
System.out.println(" s2?=" + (termEnum.term().text().equals(s2)) + " s2len=" + s2.length());
final String s = termEnum.term().text();
for(int idx=0;idx<s.length();idx++) {
System.out.println(" ch=0x" + Integer.toHexString(s.charAt(idx)));
}
}
}
*/
final byte[] payload = new byte[100];
final boolean doS1;
if (random.nextBoolean()) {
doS1 = true;
} else {
doS1 = false;
}
if (VERBOSE) {
}
int docID = -1;
if (what == 0) {
if (VERBOSE) {
}
// nextDoc
while(true) {
break;
break;
} else {
expected++;
}
}
if (!result) {
if (VERBOSE) {
}
break;
} else {
if (VERBOSE) {
}
}
}
} else {
// advance
final int targetDocID;
if (docID == -1) {
} else {
}
if (VERBOSE) {
}
int expected = targetDocID;
while(true) {
break;
break;
} else {
expected++;
}
}
if (!result) {
if (VERBOSE) {
}
break;
} else {
if (VERBOSE) {
}
}
}
}
}
}
r.close();
}
}