Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2743

Improve code coverage for mongoc-cluster

    • Type: Icon: Task Task
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: auth, Testing
    • 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?

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            spencer.mckenney Spencer Mckenney
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: