Lines Matching refs:DATA
351 : log(tlog), data(ld), index(i) {}
378 /* This error is generally caused by data not being present. However, an infinite loop will occur
379 * because the thread thinks that the test data is never done so we should treat the data as done.
382 data.numDone = data.nLocales;
400 data.times[i] += times[i];
401 data.testCounts += testCounts;
403 if (data.index < data.nLocales) {
404 locidx = data.index;
405 data.index++;
416 log.logln((UnicodeString) "\nThread " + index + ": Locale: " + UnicodeString(data.locales[locidx].getName()));
425 SimpleDateFormat *sdf = new SimpleDateFormat(pattern, data.locales[locidx], status);
428 pattern + " for locale " + data.locales[locidx].getName() + " - " + u_errorName(status));
462 UDate t = data.START_TIME;
467 while (t < data.END_TIME) {
500 if (data.quick) {
515 log.errln((UnicodeString) "Parse failure for text=" + text + ", tzid=" + *tzid + ", locale=" + data.locales[locidx].getName()
525 UnicodeString msg = (UnicodeString) "Time round trip failed for " + "tzid=" + *tzid + ", locale=" + data.locales[locidx].getName() + ", pattern=" + PATTERNS[patidx]
554 data.numDone++;
561 LocaleData& data;
627 LocaleData data;
628 data.index = 0;
629 data.testCounts = testCounts;
630 data.times = times;
631 data.locales = LOCALES;
632 data.nLocales = nLocales;
633 data.quick = quick;
634 data.START_TIME = START_TIME;
635 data.END_TIME = END_TIME;
636 data.numDone = 0;
639 TestTimeRoundTripThread fakeThread(*this, data, 0);
645 threads[i] = new TestTimeRoundTripThread(*this, data, i);
654 if (data.numDone == nLocales) {
672 logln(UnicodeString("") + data.times[i] + "ms (" + PATTERNS[i] + ")");
673 total += data.times[i];
676 logln((UnicodeString) "Iteration: " + data.testCounts);
695 const ParseTestData DATA[] = {
718 for (int32_t i = 0; DATA[i].text; i++) {
720 LocalPointer<TimeZoneFormat> tzfmt(TimeZoneFormat::createInstance(Locale(DATA[i].locale), status));
726 ParsePosition pos(DATA[i].inPos);
727 int32_t parseOptions = DATA[i].parseAll ? UTZFMT_PARSE_OPTION_ALL_STYLES : UTZFMT_PARSE_OPTION_NONE;
728 TimeZone* tz = tzfmt->parse(DATA[i].style, DATA
734 if (outID != UnicodeString(DATA[i].expected)) {
735 errMsg = (UnicodeString)"Time zone ID: " + outID + " - expected: " + DATA[i].expected;
736 } else if (pos.getIndex() != DATA[i].outPos) {
737 errMsg = (UnicodeString)"Parsed pos: " + pos.getIndex() + " - expected: " + DATA[i].outPos;
738 } else if (ttype != DATA[i].timeType) {
739 errMsg = (UnicodeString)"Time type: " + ttype + " - expected: " + DATA[i].timeType;
743 if (DATA[i].expected) {
744 errln((UnicodeString)"Fail: Parse failure - expected: " + DATA[i].expected);
748 errln((UnicodeString)"Fail: " + errMsg + " [text=" + DATA[i].text + ", pos=" + DATA[i].inPos + ", style=" + DATA[i].style + "]");