[GODRIVER-2096] Refactor mtest.T Created: 21/Jul/21  Updated: 08/Jan/24

Status: Backlog
Project: Go Driver
Component/s: Testing
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Benji Rewis (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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.


Generated at Thu Feb 08 08:37:49 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.