Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-100884

Add a unit-test for error logging in implscope.cpp

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In SPM-3895 we introduced the logStatus() in implscope.cpp for printing the given status containing an error to the log. This function depends only on the logging subsystem and therefore is a good candidate for unit-testing. However, there are no existing unit-tests for implscope.cpp and log capture is not easy to import. Ideally, it would be nice to refactor log capturing utilities to be available to use in unit-tests and then use them to test logStatus().

            Assignee:
            Unassigned Unassigned
            Reporter:
            romans.kasperovics@mongodb.com Romans Kasperovics
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              None
              None
              None
              None