[CDRIVER-2743] Improve code coverage for mongoc-cluster Created: 12/Jul/18 Updated: 15/Apr/22 |
|
| Status: | Backlog |
| Project: | C Driver |
| Component/s: | auth, tests |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Spencer Mckenney | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | CDRIVER-2733 |
| Description |
|
There are several large chunks of code in mongoc-cluster that aren't being run in any test. Namely, _mongoc_cluster_build_basic_auth_digest, _mongoc_cluster_auth_node_cr, _mongoc_cluster_auth_node_plain, and _mongoc_cluster_auth_node_x509. Look into adding tests for these functions. See https://codecov.io/gh/mongodb/mongo-c-driver/src/54fbbb7c076128896b4fd2450b7fed2339f1a2f0/src/libmongoc/src/mongoc/mongoc-cluster.c to see a more detailed report on this. |
| Comments |
| Comment by A. Jesse Jiryu Davis [ 12/Jul/18 ] |
|
We should run auth tests against a live MongoDB server with coverage enabled and add that coverage output to the report. |