The following issues were found
modules/gapi/test/own/gapi_types_tests.cpp
1 issues
Line: 22
EXPECT_EQ(0, p.y);
}
TEST(Point, CreateWithParams)
{
cv::gapi::own::Point p = {1, 2};
EXPECT_EQ(1, p.x);
EXPECT_EQ(2, p.y);
Reported by Cppcheck.
modules/gapi/test/own/last_written_value_tests.cpp
1 issues
Line: 17
namespace opencv_test {
using namespace cv::gapi;
TEST(LastValue, PushPop) {
own::last_written_value<int> v;
for (int i = 0; i < 100; i++) {
v.push(i);
int x = 1;
Reported by Cppcheck.
modules/gapi/test/own/mat_tests.cpp
1 issues
Line: 24
}
}
TEST(OwnMat, DefaultConstruction)
{
Mat m;
ASSERT_EQ(m.data, nullptr);
ASSERT_EQ(m.cols, 0);
ASSERT_EQ(m.rows, 0);
Reported by Cppcheck.
modules/gapi/test/own/scalar_tests.cpp
1 issues
Line: 24
}
}
TEST(Scalar, CreateFromVal)
{
cv::gapi::own::Scalar s(5.0);
EXPECT_EQ(s[0], 5.0);
EXPECT_EQ(s[1], 0.0);
Reported by Cppcheck.
modules/gapi/test/render/ftp_render_test.cpp
1 issues
Line: 62
}
}
TEST(FTTextRenderTest, Smoke_Test_Ascii)
{
RunTest(getFontPath(), 2000, 32, 126);
}
TEST(FTTextRenderTest, Smoke_Test_Unicode)
Reported by Cppcheck.
modules/gapi/test/rmat/rmat_integration_tests.cpp
1 issues
Line: 154
TYPED_TEST_CASE(RMatIntTypedTest, RMatIntTestTypes);
TYPED_TEST(RMatIntTypedTest, In) {
auto in_rmat = this->createRMat(this->in_mat, this->inCallbackCalled);
this->run(in_rmat, this->out_mat, cv::compile_args(this->kernels()));
}
TYPED_TEST(RMatIntTypedTest, Out) {
Reported by Cppcheck.
modules/gapi/test/rmat/rmat_tests.cpp
1 issues
Line: 58
TYPED_TEST_CASE(RMatTypedTest, RMatTestTypes);
TYPED_TEST(RMatTypedTest, Smoke) {
auto view = this->rmat().access(RMat::Access::R);
auto matFromDevice = cv::Mat(view.size(), view.type(), view.ptr());
EXPECT_TRUE(cv::descr_of(this->cloneDeviceMat()) == this->rmat().desc());
this->expectDeviceDataEqual(matFromDevice);
}
Reported by Cppcheck.
modules/gapi/test/rmat/rmat_view_tests.cpp
1 issues
Line: 33
EXPECT_EQ(desc.chan, view.chan());
}
TEST(RMatView, TestDefaultConstruction) {
View view;
GMatDesc desc{};
expect_eq_desc(desc, view);
EXPECT_EQ(nullptr, view.ptr());
EXPECT_EQ(0u, view.step());
Reported by Cppcheck.
modules/gapi/test/s11n/gapi_s11n_tests.cpp
1 issues
Line: 213
}
}
TEST_F(S11N_Basic, Test_int_pos) {
int x = 42;
put(x);
EXPECT_EQ(x, get<int>());
}
Reported by Cppcheck.
modules/gapi/test/streaming/gapi_streaming_sync_tests.cpp
1 issues
Line: 164
} // anonymous namespace
TEST_P(TimestampSyncTest, Basic)
{
cv::GMat in1, in2;
auto out = cv::gapi::add(in1, in2);
auto ts = cv::gapi::streaming::timestamp(out);
Reported by Cppcheck.