The following issues were found
modules/core/test/test_math.cpp
1 issues
Line: 2909
TEST(Core_KMeans, singular) { CV_KMeansSingularTest test; test.safe_run(MAT_N_DIM_C1); }
CV_ENUM(KMeansInputVariant, MAT_N_DIM_C1, MAT_N_1_CDIM, MAT_1_N_CDIM, MAT_N_DIM_C1_NONCONT, MAT_N_1_CDIM_NONCONT, VECTOR)
typedef testing::TestWithParam<KMeansInputVariant> Core_KMeans_InputVariants;
TEST_P(Core_KMeans_InputVariants, singular)
{
Reported by Cppcheck.
modules/core/test/test_misc.cpp
1 issues
Line: 25
ASSERT_NO_THROW(local::create( mat(Rect(Point(), submatSize)), submatSize, mat.type() ));
}
TEST(Core_SaturateCast, NegativeNotClipped)
{
double d = -1.0;
unsigned int val = cv::saturate_cast<unsigned int>(d);
ASSERT_EQ(0xffffffff, val);
Reported by Cppcheck.
modules/core/test/test_opencl.cpp
1 issues
Line: 210
executeUMatCall();
}
INSTANTIATE_TEST_CASE_P(/*nothing*/, OCL_OpenCLExecutionContext_P, getOpenCLTestConfigurations());
typedef testing::TestWithParam<UMatUsageFlags> UsageFlagsFixture;
OCL_TEST_P(UsageFlagsFixture, UsageFlagsRetained)
{
Reported by Cppcheck.
modules/core/test/test_operations.cpp
1 issues
Line: 1277
ts->set_failed_test_info(cvtest::TS::OK);
}
TEST(Core_Array, expressions) { CV_OperationsTest test; test.safe_run(); }
class CV_SparseMatTest : public cvtest::BaseTest
{
public:
CV_SparseMatTest() {}
Reported by Cppcheck.
modules/core/test/test_ptr.cpp
1 issues
Line: 86
}
TEST(Core_Ptr, default_ctor)
{
Ptr<int> p;
EXPECT_NULL(p.get());
}
Reported by Cppcheck.
modules/core/test/test_quaternion.cpp
1 issues
Line: 44
};
TEST_F(QuatTest, constructor)
{
Vec<double, 4> coeff{1, 2, 3, 4};
EXPECT_EQ(Quat<double> (coeff), q1);
EXPECT_EQ(q3, q3UnitAxis);
EXPECT_ANY_THROW(Quatd::createFromAngleAxis(angle, unAxis));
Reported by Cppcheck.
modules/core/test/test_rand.cpp
1 issues
Line: 307
}
}
TEST(Core_Rand, quality) { Core_RandTest test; test.safe_run(); }
class Core_RandRangeTest : public cvtest::BaseTest
{
public:
Reported by Cppcheck.
modules/core/test/test_rotatedrect.cpp
1 issues
Line: 106
return cvtest::TS::OK;
}
TEST(Core_RotatedRect, three_point_constructor) { Core_RotatedRectConstructorTest test; test.safe_run(); }
}} // namespace
Reported by Cppcheck.
modules/core/test/test_umat.cpp
1 issues
Line: 85
}
};
TEST_P(UMatBasicTests, createUMat)
{
if(useRoi)
{
ua = UMat(ua, roi);
}
Reported by Cppcheck.
modules/core/test/test_utils.cpp
1 issues
Line: 502
EXPECT_ANY_THROW(area.allocate(ptr, 1)); // non-zero pointer
}
INSTANTIATE_TEST_CASE_P(/**/, BufferArea, testing::Values(true, false));
}} // namespace
Reported by Cppcheck.