summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpr.jung <pr.jung@samsung.com>2016-07-14 16:48:41 +0900
committerpr.jung <pr.jung@samsung.com>2016-07-14 16:48:41 +0900
commit58c76943d115f15d5fb88c750681b90f16264a55 (patch)
treeb095500f2639a05267b990672157997c2c9a5532 /src
parent16dc0708b4f4086d72f2a5a3af00567d73d8135e (diff)
downloadlibsvi-58c76943d115f15d5fb88c750681b90f16264a55.tar.gz
libsvi-58c76943d115f15d5fb88c750681b90f16264a55.tar.bz2
libsvi-58c76943d115f15d5fb88c750681b90f16264a55.zip
Add comments for line/function coverage analysis
Change-Id: I25a9b6fa219068a23c547d2ab1af851170d68a86 Signed-off-by: pr.jung <pr.jung@samsung.com>
Diffstat (limited to 'src')
-rw-r--r--src/feedback.c4
-rw-r--r--src/sound.c2
-rw-r--r--src/vibrator.c10
3 files changed, 5 insertions, 11 deletions
diff --git a/src/feedback.c b/src/feedback.c
index 555123b..6b08557 100644
--- a/src/feedback.c
+++ b/src/feedback.c
@@ -275,7 +275,6 @@ API int feedback_is_supported_pattern(feedback_type_e type, feedback_pattern_e p
return FEEDBACK_ERROR_NONE;
}
-//LCOV_EXCL_START Internal APIs. TODO Will make iUTC
/* Internal APIs */
API int feedback_play_type_by_name(char *type, char *pattern)
{
@@ -370,7 +369,7 @@ API int feedback_set_resource_path(feedback_type_e type, feedback_pattern_e patt
}
if (type == FEEDBACK_TYPE_VIBRATION) {
- _E("Not supported type");
+ _E("Not supported type"); //LCOV_EXCL_LINE
return FEEDBACK_ERROR_NOT_SUPPORTED;
}
@@ -384,4 +383,3 @@ API int feedback_set_resource_path(feedback_type_e type, feedback_pattern_e patt
return FEEDBACK_ERROR_NONE;
}
-//LCOV_EXCL_STOP
diff --git a/src/sound.c b/src/sound.c
index 131a22c..9d42f94 100644
--- a/src/sound.c
+++ b/src/sound.c
@@ -194,7 +194,6 @@ static int sound_is_supported(feedback_pattern_e pattern, bool *supported)
return 0;
}
-//LCOV_EXCL_START Not used function-Internal APIs TODO Will make iUTC
static int sound_get_path(feedback_pattern_e pattern, char *buf, unsigned int buflen)
{
char *cur_path;
@@ -242,7 +241,6 @@ static int sound_set_path(feedback_pattern_e pattern, char *path)
profile->str_pattern[pattern], path);
return 0;
}
-//LCOV_EXCL_STOP
static const struct device_ops sound_device_ops = {
.type = FEEDBACK_TYPE_SOUND,
diff --git a/src/vibrator.c b/src/vibrator.c
index 48cd3c2..3a56824 100644
--- a/src/vibrator.c
+++ b/src/vibrator.c
@@ -235,7 +235,7 @@ static int vibrator_play(feedback_pattern_e pattern)
if (pattern <= FEEDBACK_PATTERN_NONE ||
pattern >= profile->max_pattern) {
- _E("Not supported vibration pattern");
+ _E("Not supported vibration pattern"); //LCOV_EXCL_LINE
return -ENOTSUP;
}
@@ -248,7 +248,7 @@ static int vibrator_play(feedback_pattern_e pattern)
data = trim_str(temp);
if (!data) {
free(temp);
- _E("Not supported vibration pattern");
+ _E("Not supported vibration pattern"); //LCOV_EXCL_LINE
return -ENOTSUP;
}
@@ -317,7 +317,7 @@ static int vibrator_is_supported(int pattern, bool *supported)
if (pattern <= FEEDBACK_PATTERN_NONE ||
pattern >= profile->max_pattern) {
- _E("Not supported vibration pattern");
+ _E("Not supported vibration pattern"); //LCOV_EXCL_LINE
*supported = false;
return 0;
}
@@ -334,7 +334,7 @@ static int vibrator_is_supported(int pattern, bool *supported)
ret = haptic_is_supported(data);
free(temp);
if (ret < 0) {
- _E("fail to get support information");
+ _E("fail to get support information"); //LCOV_EXCL_LINE
if (ret == -ECOMM)
return ret;
return -EPERM;
@@ -345,7 +345,6 @@ static int vibrator_is_supported(int pattern, bool *supported)
return 0;
}
-//LCOV_EXCL_START Not used function-Internal APIs TODO Will make iUTC
static int vibrator_get_path(feedback_pattern_e pattern, char *buf, unsigned int buflen)
{
return 0;
@@ -355,7 +354,6 @@ static int vibrator_set_path(feedback_pattern_e pattern, char *path)
{
return 0;
}
-//LCOV_EXCL_STOP
static const struct device_ops vibrator_device_ops = {
.type = FEEDBACK_TYPE_VIBRATION,