Uploaded image for project: 'Snowstorm'
  1. Snowstorm
  2. STORM-477

Re-implement LLDir::getNextFileInDir() as an iterator object

    Details

    • Type: Story
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Sprint 15
    • Labels:
      None
    • Environment:
      -

      Description

      The test code for lldir (lldir_test) doesn't test the getNextFileInDir function, which is bad, because its implementation is questionable. I believe there may be bugs related to restarting a search that are not currently being exercised because we use it in specific ways.

      It should:

      • Create a set of at least 4 files in a temporary directory
      • Retrieve them with getNextFileInDir and see that they're all found
      • Create a set of files in a different directory
      • Search for those and find a subset of them
      • Re-search for previous directory before finishing previous search
      • Test behavior with empty result and with 1 result.
      • No need to test the Wrap functionality, as it's never used and should be deleted.
      • Delete temp files and directory

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                q.linden Q Linden (Inactive)
                Prod Owner Approved:
                Oz Linden
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 4 hours
                  2d 4h