The following issues were found
modules/core/test/test_ds.cpp
1 issues
Line: 2130
}
TEST(Core_DS_Seq, basic_operations) { Core_SeqBaseTest test; test.safe_run(); }
TEST(Core_DS_Seq, sort_invert) { Core_SeqSortInvTest test; test.safe_run(); }
TEST(Core_DS_Set, basic_operations) { Core_SetTest test; test.safe_run(); }
TEST(Core_DS_Graph, basic_operations) { Core_GraphTest test; test.safe_run(); }
TEST(Core_DS_Graph, scan) { Core_GraphScanTest test; test.safe_run(); }
Reported by Cppcheck.
modules/core/test/test_dxt.cpp
1 issues
Line: 850
}
}
TEST(Core_DCT, accuracy) { CxCore_DCTTest test; test.safe_run(); }
TEST(Core_DFT, accuracy) { CxCore_DFTTest test; test.safe_run(); }
TEST(Core_MulSpectrums, accuracy) { CxCore_MulSpectrumsTest test; test.safe_run(); }
class Core_DFTComplexOutputTest : public cvtest::BaseTest
{
Reported by Cppcheck.
modules/core/test/test_eigen.cpp
1 issues
Line: 520
testEigen(srcZero, expected_eigenvalueZero);
testEigen(srcZero, expected_eigenvalueZero, true);
}
INSTANTIATE_TEST_CASE_P(/**/, Core_EigenZero, testing::Values(2, 3, 5));
TEST(Core_EigenNonSymmetric, convergence)
{
Matx33d m(
0, -1, 0,
Reported by Cppcheck.
modules/core/test/test_hal_core.cpp
1 issues
Line: 52
HAL_SQRT = 2
};
TEST(Core_HAL, mathfuncs)
{
for( int hcase = 0; hcase < 6; hcase++ )
{
int depth = hcase % 2 == 0 ? CV_32F : CV_64F;
double eps = depth == CV_32F ? 1e-5 : 1e-10;
Reported by Cppcheck.
modules/core/test/test_intrin.cpp
1 issues
Line: 71
namespace intrin128 {
DEFINE_SIMD_TESTS(128, CPP_EMULATOR)
DEFINE_SIMD_TESTS(128, BASELINE)
#if defined CV_CPU_DISPATCH_COMPILE_SSE2 || defined CV_CPU_BASELINE_COMPILE_SSE2
DEFINE_SIMD_TESTS(128, SSE2)
Reported by Cppcheck.
modules/core/test/test_io.cpp
1 issues
Line: 311
}
};
TEST(Core_InputOutput, write_read_consistency) { Core_IOTest test; test.safe_run(); }
struct UserDefinedType
{
int a;
Reported by Cppcheck.
modules/core/test/test_logtagconfigparser.cpp
1 issues
Line: 73
typedef testing::TestWithParam<tuple<std::string, std::string>> GlobalShouldSucceedPairedTests;
TEST_P(GlobalShouldSucceedPairedTests, globalNameHandling)
{
const auto firstExpected = cv::utils::logging::LOG_LEVEL_SILENT;
const auto secondExpected = cv::utils::logging::LOG_LEVEL_VERBOSE;
//
const std::string firstInput = get<0>(GetParam());
Reported by Cppcheck.
modules/core/test/test_logtagmanager.cpp
1 issues
Line: 169
const char* const LogTagManagerGlobalSmokeTest::m_globalTagName = "global";
TEST_F(LogTagManagerGlobalSmokeTest, AfterCtorCanGetGlobalWithoutAssign)
{
EXPECT_NE(m_logTagManager.get(m_globalTagName), nullptr);
}
TEST_F(LogTagManagerGlobalSmokeTest, AfterCtorGetGlobalHasDefaultLevel)
Reported by Cppcheck.
modules/core/test/test_lpsolver.cpp
1 issues
Line: 82
#endif
}
TEST(Core_LPSolver, regression_init_unfeasible){
cv::Mat A,B,z,etalon_z;
#if 1
//cormen's example #4 - unfeasible
A=(cv::Mat_<double>(1,3)<<-1,-1,-1);
Reported by Cppcheck.
modules/core/test/test_mat.cpp
1 issues
Line: 296
#define CHECK_C
TEST(Core_PCA, accuracy)
{
const Size sz(200, 500);
double diffPrjEps, diffBackPrjEps,
prjEps, backPrjEps,
Reported by Cppcheck.