Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4211

in LuceneTestCase.maybeWrapReader: add an asserting impl

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0-BETA, 6.0
    • general/test
    • None
    • New

    Description

      It would be nice to wrap with FIR here sometimes,
      one that returns AssertingFields, etc etc.

      This way we could check if consumers are doing bogus things (like reading nextDoc after it returned NO_MORE_DOCS, or TermsEnum.next after its exhausted, or things like that).

      This would also be nice to catch tests that do this rather than doing
      crazy debugging over whats not really a bug.

      Attachments

        1. LUCENE-4211.patch
          6 kB
          Robert Muir
        2. LUCENE-4211.patch
          15 kB
          Robert Muir
        3. LUCENE-4211.patch
          26 kB
          Robert Muir
        4. LUCENE-4211.patch
          27 kB
          Michael McCandless
        5. LUCENE-4211.patch
          33 kB
          Robert Muir
        6. LUCENE-4211.patch
          34 kB
          Robert Muir
        7. LUCENE-4211.patch
          33 kB
          Michael McCandless
        8. LUCENE-4211.patch
          35 kB
          Robert Muir
        9. LUCENE-4211.patch
          36 kB
          Robert Muir
        10. LUCENE-4211.patch
          36 kB
          Robert Muir

        Activity

          People

            Unassigned Unassigned
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: