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

Coverity analysis defect 72685: Copy-paste error

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • Quint Iteration 4

    Description

      A copied piece of code is inconsistent with the original

      Defect 72685 (STATIC_C)
      Checker COPY_PASTE_ERROR (subcategory none)
      File: /src/mongo/db/matcher/expression_algo_test.cpp
      Function mongo::UnitTest_ExpressionAlgoIsSubsetOf_Exists::_doTest()
      /src/mongo/db/matcher/expression_algo_test.cpp, line: 277
      "aExists" looks like the original copy.

                  ASSERT_TRUE(expression::isSubsetOf(aExists.get(), aExists.get()));

      /src/mongo/db/matcher/expression_algo_test.cpp, line: 280
      "aExists" in "aExists" looks like a copy-paste error.

                  ASSERT_TRUE(expression::isSubsetOf(aExistsBExists.get(), aExists.get()));

      Attachments

        Activity

          People

            max.hirschhorn@mongodb.com Max Hirschhorn
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: