Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2096

Refactor mtest.T

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Testing
    • None

    Description

      mtest.T has become bloated. The type could be abstracted into several, smaller types that handle their own setup and teardown. In particular, a resource type could be created to handle Client, Database and Collection setup. Furthermore, mtest.T.shareClient is an example of global mutable state that, while currently unused, should be removed.

      Potential refactors should be at least discussed within the team before being implemented.

      Attachments

        Activity

          People

            Unassigned Unassigned
            benji.rewis@mongodb.com Benji Rewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: