Improve async coverage to ~80% which should increase total coverage by up to 7%.

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Cannot Reproduce
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      Async API Core modules represent ~8.2% of the total codebase (2,640 / 32,085 statements) but are sitting at only ~16% coverage — far below the project average of 44%. Bringing this category to 100% would add roughly +7 percentage points to overall coverage, making it by far the highest-impact category. The worst offenders are bulk.py at 9%, client_bulk.py at 10%, and cursor.py at 11%.

      Async module coverage can be improved by targeting critical code paths:

      • asynchronous/collection.py, cursor.py, bulk.py, client_session.py, change_stream.py
      • 70–86% uncovered; error recovery, cancellation, async context managers

      Definition of done

      Improve async coverage to ~80% which should increase total coverage by up to 7%.

      Pitfalls

      NA

            Assignee:
            Alex Clark
            Reporter:
            Alex Clark
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: