On Wed, Jul 11, 2012 at 11:31 AM, Michael McCandless <[email protected]> wrote: > On Wed, Jul 11, 2012 at 11:13 AM, Robert Muir <[email protected]> wrote: >> I worry about real code (e.g. scorers) doing this too. >> >> Its also difficult to debug when a test does this: I think we had this >> problem with calling TermsEnum.next() after the enumeration was over >> before, and it looks really scary. >> >> We already have reader wrapping in LuceneTestcase.maybeWrapReader. >> >> I think it would be nice to have an AssertingReader added here: an FIR >> that wrapped the Fields instance and asserted all these various >> contracts we have in place to catch bad consumers. > > +1 >
https://issues.apache.org/jira/browse/LUCENE-4211 -- lucidimagination.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
