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

ServiceStateMachineTest: simplify function templates into ordinary functions

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Service Arch 2022-07-11, Service Arch 2022-07-25, Service Arch 2022-08-08, Service Arch 2022-08-22

      Make all these template functions into regular functions that take enum arguments.
      Example:

      template <IngressState kState, IngressMode kMode>
      void expectNextState() {
      

      Convert this to:

      void expectNextState(IngressState state, IngressMode mode) {
      

      There doesn't appear to be a reason for these to be templates, and the template syntax and dispatching is making the code harder to read and understand.

            Assignee:
            alex.li@mongodb.com Alex Li
            Reporter:
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: