The following issues were found

modules/features2d/test/test_drawing.cpp
1 issues
syntax error
Error

Line: 44

                  Mat ref_ = getReference_DrawKeypoint(cn);
    EXPECT_EQ(0, cv::norm(outImg, ref_, NORM_INF));
}
INSTANTIATE_TEST_CASE_P(/**/, Features2D_drawKeypoints, Values(CV_8UC1, CV_8UC3, CV_8UC4));

typedef testing::TestWithParam<tuple<MatType, MatType> > Features2D_drawMatches;
TEST_P(Features2D_drawMatches, Accuracy)
{
    Mat inpImg1(11, 11, get<0>(GetParam()), Scalar(1, 1, 1, 255));

            

Reported by Cppcheck.

modules/features2d/test/test_fast.cpp
1 issues
syntax error
Error

Line: 136

                ts->set_failed_test_info(cvtest::TS::OK);
}

TEST(Features2d_FAST, regression) { CV_FastTest test; test.safe_run(); }

}} // namespace

            

Reported by Cppcheck.

modules/features2d/test/test_keypoints.cpp
1 issues
syntax error
Error

Line: 120

              
// Registration of tests

TEST(Features2d_Detector_Keypoints_BRISK, validation)
{
    CV_FeatureDetectorKeypointsTest test(BRISK::create());
    test.safe_run();
}


            

Reported by Cppcheck.

modules/features2d/test/test_matchers_algorithmic.cpp
1 issues
syntax error
Error

Line: 535

              *                                Tests registrations                                     *
\****************************************************************************************/

TEST( Features2d_DescriptorMatcher_BruteForce, regression )
{
    CV_DescriptorMatcherTest test( "descriptor-matcher-brute-force",
                                  DescriptorMatcher::create("BruteForce"), 0.01f );
    test.safe_run();
}

            

Reported by Cppcheck.

modules/features2d/test/test_mser.cpp
1 issues
syntax error
Error

Line: 159

                  }
}

TEST(Features2d_MSER, history_update_regression)
{
    String dataPath = cvtest::TS::ptr()->get_data_path() + "mser/";
    vector<Mat> tstImages;
    tstImages.push_back(imread(dataPath + "mser_test.png", IMREAD_GRAYSCALE));
    tstImages.push_back(imread(dataPath + "mser_test2.png", IMREAD_GRAYSCALE));

            

Reported by Cppcheck.

modules/features2d/test/test_nearestneighbors.cpp
1 issues
syntax error
Error

Line: 324

                  remove( filename.c_str() );
}

TEST(Features2d_FLANN_Linear, regression) { CV_FlannLinearIndexTest test; test.safe_run(); }
TEST(Features2d_FLANN_KMeans, regression) { CV_FlannKMeansIndexTest test; test.safe_run(); }
TEST(Features2d_FLANN_KDTree, regression) { CV_FlannKDTreeIndexTest test; test.safe_run(); }
TEST(Features2d_FLANN_Composite, regression) { CV_FlannCompositeIndexTest test; test.safe_run(); }
TEST(Features2d_FLANN_Auto, regression) { CV_FlannAutotunedIndexTest test; test.safe_run(); }
TEST(Features2d_FLANN_Saved, regression) { CV_FlannSavedIndexTest test; test.safe_run(); }

            

Reported by Cppcheck.

modules/features2d/test/test_orb.cpp
1 issues
syntax error
Error

Line: 93

                  ASSERT_EQ(0, roiViolations);
}

TEST(Features2D_ORB, crash_5031)
{
    cv::Mat image = cv::Mat::zeros(cv::Size(1920, 1080), CV_8UC3);

    int nfeatures = 8000;
    float orbScaleFactor = 1.2f;

            

Reported by Cppcheck.

modules/flann/test/test_lshtable_badarg.cpp
1 issues
syntax error
Error

Line: 91

                      ts->set_failed_test_info(cvtest::TS::OK);
}

TEST(Flann_LshTable, badarg) { CV_LshTableBadArgTest test; test.safe_run(); }

TEST(Flann_LshTable, bad_any_cast) {
    Mat features = Mat::ones(1, 64, CV_8U);
    EXPECT_NO_THROW(flann::GenericIndex<cvflann::Hamming2<unsigned char> >(
                                            features, cvflann::LshIndexParams()));

            

Reported by Cppcheck.

modules/gapi/include/opencv2/gapi/imgproc.hpp
1 issues
syntax error
Error

Line: 65

                      }
    };

    G_TYPED_KERNEL(GSepFilter, <GMat(GMat,int,Mat,Mat,Point,Scalar,int,Scalar)>, "org.opencv.imgproc.filters.sepfilter") {
        static GMatDesc outMeta(GMatDesc in, int ddepth, Mat, Mat, Point, Scalar, int, Scalar) {
            return in.withDepth(ddepth);
        }
    };


            

Reported by Cppcheck.

modules/gapi/include/opencv2/gapi/video.hpp
1 issues
syntax error
Error

Line: 67

                  }
};

G_TYPED_KERNEL(GCalcOptFlowLK,
               <GOptFlowLKOutput(GMat,GMat,cv::GArray<cv::Point2f>,cv::GArray<cv::Point2f>,Size,
                                 GScalar,TermCriteria,int,double)>,
               "org.opencv.video.calcOpticalFlowPyrLK")
{
    static std::tuple<GArrayDesc,GArrayDesc,GArrayDesc> outMeta(GMatDesc,GMatDesc,GArrayDesc,

            

Reported by Cppcheck.