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

forbid comparisions of raw pointers in unittest framework

    • Server Tooling & Methods

      This usage should be prohibited at compile time:
      ASSERT_EQUALS("one","one");

      The type of the parameters is char[4]. Covering all size char arrays plus char pointers can be tricky when trying to produce an explicit specialization of a template. It may be easier to make function overloads for members in class ComparisonAssertion.

            Assignee:
            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: