Coverity analysis defect 72685: Copy-paste error

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • Quint Iteration 4
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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()));
      

            Assignee:
            Max Hirschhorn
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: