[GODRIVER-728] Consolidate testing files Created: 19/Dec/18 Updated: 27/Oct/23 Resolved: 28/Jul/20 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Trivial - P5 |
| Reporter: | Kristofer Brandow (Inactive) | Assignee: | Unassigned |
| Resolution: | Gone away | Votes: | 0 |
| Labels: | divjot-close | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Throughout the codebase there are various _internal_test.go files. This convention is not idiomatic Go, and some tools that expect test files for other Go files to follow the convention of _test.go. These tools will break and report that there is no test file for a particular file when there is one, it's just named slightly differently. Consolidate the _internal_test.go files into their _test.go counterparts. If there isn't an existing _test.go file, create it. |
| Comments |
| Comment by Divjot Arora (Inactive) [ 28/Jul/20 ] |
|
The internal_test.go files were removed when we did the testing library project. Now, tests for a given type live in mongo/typename_test.go and mongo/integration/typename_test.go. |