summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKwanghoon Son <k.son@samsung.com>2022-05-26 22:24:21 -0400
committerInki Dae <inki.dae@samsung.com>2022-07-20 14:16:57 +0900
commit8204937748faea4f91b4e7c9c69b605393a9085a (patch)
tree2f84c508f59f31f5f8a32556dd02987538361851
parent4a2c6affc5fdfbe4ae7c9f6352736a3a8abf5e16 (diff)
downloadmediavision-8204937748faea4f91b4e7c9c69b605393a9085a.tar.gz
mediavision-8204937748faea4f91b4e7c9c69b605393a9085a.tar.bz2
mediavision-8204937748faea4f91b4e7c9c69b605393a9085a.zip
Add lcov exclude
[Version] 0.23.1 [Issue type] lcov CPP files not fully supported by TCT. Block lcov until covered by unit test. Change-Id: I30e701414a4b05bea5593287d179cde168271c74 Signed-off-by: Kwanghoon Son <k.son@samsung.com>
-rw-r--r--mv_barcode/barcode_detector/src/BarcodeUtils.cpp2
-rw-r--r--mv_barcode/barcode_detector/src/mv_barcode_detect_open.cpp2
-rw-r--r--mv_image/image/src/Features/FeatureMatcher.cpp3
-rw-r--r--mv_surveillance/surveillance/src/EventManager.cpp2
-rw-r--r--mv_surveillance/surveillance/src/EventTrigger.cpp2
-rw-r--r--mv_surveillance/surveillance/src/EventTriggerPersonAppearance.cpp2
-rw-r--r--mv_surveillance/surveillance/src/MFTracker.cpp2
7 files changed, 14 insertions, 1 deletions
diff --git a/mv_barcode/barcode_detector/src/BarcodeUtils.cpp b/mv_barcode/barcode_detector/src/BarcodeUtils.cpp
index 86000f57..332ddaf4 100644
--- a/mv_barcode/barcode_detector/src/BarcodeUtils.cpp
+++ b/mv_barcode/barcode_detector/src/BarcodeUtils.cpp
@@ -24,6 +24,7 @@
namespace MediaVision {
namespace Barcode {
+// LCOV_EXCL_START
int convertSourceMV2Zbar(mv_source_h mvSource, zbar::Image& zbarSource)
{
int err = MEDIA_VISION_ERROR_NONE;
@@ -102,6 +103,7 @@ int convertSourceMV2Zbar(mv_source_h mvSource, zbar::Image& zbarSource)
return err;
}
+// LCOV_EXCL_STOP
int convertSourceMV2GrayCV(mv_source_h mvSource, cv::Mat& cvSource)
{
diff --git a/mv_barcode/barcode_detector/src/mv_barcode_detect_open.cpp b/mv_barcode/barcode_detector/src/mv_barcode_detect_open.cpp
index 54dee63a..fd5ef270 100644
--- a/mv_barcode/barcode_detector/src/mv_barcode_detect_open.cpp
+++ b/mv_barcode/barcode_detector/src/mv_barcode_detect_open.cpp
@@ -77,6 +77,7 @@ int mv_barcode_detect_open(
scanner.set_config(zbar::ZBAR_DATABAR_EXP, zbar::ZBAR_CFG_ENABLE, 1);
scanner.set_config(zbar::ZBAR_QRCODE, zbar::ZBAR_CFG_ENABLE, 1);
break;
+// LCOV_EXCL_START
case 1:
scanner.set_config(zbar::ZBAR_UPCA, zbar::ZBAR_CFG_ENABLE, 1);
scanner.set_config(zbar::ZBAR_UPCE, zbar::ZBAR_CFG_ENABLE, 1);
@@ -95,6 +96,7 @@ int mv_barcode_detect_open(
case 2:
scanner.set_config(zbar::ZBAR_QRCODE, zbar::ZBAR_CFG_ENABLE, 1);
break;
+// LCOV_EXCL_STOP
default:
LOGW("Unavailable target value %d", target_val);
}
diff --git a/mv_image/image/src/Features/FeatureMatcher.cpp b/mv_image/image/src/Features/FeatureMatcher.cpp
index 46ba27de..c32d49de 100644
--- a/mv_image/image/src/Features/FeatureMatcher.cpp
+++ b/mv_image/image/src/Features/FeatureMatcher.cpp
@@ -24,6 +24,7 @@
namespace MediaVision {
namespace Image {
+// LCOV_EXCL_START
namespace {
float computeLinearSupportElement(
@@ -239,6 +240,6 @@ void FeatureMatcher::setMinimumMatchesNumber(size_t minimumMatchesNumber)
{
__minimumMatchesNumber = minimumMatchesNumber;
}
-
+// LCOV_EXCL_STOP
} /* Image */
} /* MediaVision */
diff --git a/mv_surveillance/surveillance/src/EventManager.cpp b/mv_surveillance/surveillance/src/EventManager.cpp
index 7dc2c092..b5d186c3 100644
--- a/mv_surveillance/surveillance/src/EventManager.cpp
+++ b/mv_surveillance/surveillance/src/EventManager.cpp
@@ -361,6 +361,7 @@ int EventManager::getSupportedEventTypes(StringVector& eventTypes)
return MEDIA_VISION_ERROR_NONE;
}
+// LCOV_EXCL_START
int EventManager::getSupportedEventResultValueNames(
StringVector& eventResValNames)
{
@@ -380,6 +381,7 @@ int EventManager::getSupportedEventResultValueNames(
return MEDIA_VISION_ERROR_NONE;
}
+// LCOV_EXCL_STOP
int EventManager::getSupportedEventResultValueNames(
const std::string& eventTypeName,
diff --git a/mv_surveillance/surveillance/src/EventTrigger.cpp b/mv_surveillance/surveillance/src/EventTrigger.cpp
index d6589906..e9968fc3 100644
--- a/mv_surveillance/surveillance/src/EventTrigger.cpp
+++ b/mv_surveillance/surveillance/src/EventTrigger.cpp
@@ -119,6 +119,7 @@ bool EventTrigger::isCallbacksEmpty() const
return __callbackDataMap.empty();
}
+// LCOV_EXCL_START
int EventTrigger::applyROIToImage(
unsigned char *image,
int imageWidth,
@@ -176,6 +177,7 @@ int EventTrigger::applyROIToImage(
return MEDIA_VISION_ERROR_NONE;
}
+// LCOV_EXCL_STOP
bool EventTrigger::operator==(const EventTrigger& other) const
{
diff --git a/mv_surveillance/surveillance/src/EventTriggerPersonAppearance.cpp b/mv_surveillance/surveillance/src/EventTriggerPersonAppearance.cpp
index aecd8697..bcd9f311 100644
--- a/mv_surveillance/surveillance/src/EventTriggerPersonAppearance.cpp
+++ b/mv_surveillance/surveillance/src/EventTriggerPersonAppearance.cpp
@@ -30,6 +30,7 @@
namespace mediavision {
namespace surveillance {
+// LCOV_EXCL_START
using namespace cv;
static const int MAX_VALUE_NAME_LENGHT = 255;
@@ -580,6 +581,7 @@ void EventTriggerPersonAppearance::runCallbacks(mv_source_h source)
__eventResult, iter->second.userData);
}
}
+// LCOV_EXCL_STOP
} /* surveillance */
} /* mediavision */
diff --git a/mv_surveillance/surveillance/src/MFTracker.cpp b/mv_surveillance/surveillance/src/MFTracker.cpp
index 85b98033..32179ffb 100644
--- a/mv_surveillance/surveillance/src/MFTracker.cpp
+++ b/mv_surveillance/surveillance/src/MFTracker.cpp
@@ -22,6 +22,7 @@
namespace mediavision {
namespace surveillance {
+// LCOV_EXCL_START
namespace {
const float FLOATEPS = 10e-6f;
@@ -368,5 +369,6 @@ void MFTracker::check_NCC(
status[idx] = status[idx] && (NCC[idx] > median);
}
+// LCOV_EXCL_STOP
} /* surveillance */
} /* mediavision */