Exclude unnecessary code segments from coverage report 13/234713/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Thu, 28 May 2020 06:44:21 +0000 (15:44 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Thu, 28 May 2020 06:44:21 +0000 (15:44 +0900)
Code that are executed only when the current device or caller
is not capable of using multi-assistant facilities, are excluded.
(Either the feature is disabled of the privilege is not given)

Change-Id: Id0a0c9989a6c6620580d586b29c917bf2efd1db9

client/ma.c

index ffa9514591548d682127515d2b61204e0b1c8b5f..f1016ad840737573ac2891fbcb93bcc616672d97 100644 (file)
@@ -198,11 +198,11 @@ static int __ma_check_volume_set_privilege()
 int ma_initialize(void)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (0 != __ma_check_recorder_privilege()) {
-               return MA_ERROR_PERMISSION_DENIED;
+               return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGI("[Client DEBUG] Initialize"); //LCOV_EXCL_LINE
@@ -259,11 +259,11 @@ static void __ma_internal_unprepare(void)
 int ma_deinitialize(void)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (0 != __ma_check_recorder_privilege()) {
-               return MA_ERROR_PERMISSION_DENIED;
+               return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGI("[Client DEBUG] Deinitialize"); //LCOV_EXCL_LINE
@@ -450,11 +450,11 @@ static void __end_prepare_func()
 int ma_prepare(void)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (0 != __ma_check_recorder_privilege()) {
-               return MA_ERROR_PERMISSION_DENIED;
+               return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGI("[Client DEBUG] Prepare"); //LCOV_EXCL_LINE
@@ -481,11 +481,11 @@ int ma_prepare(void)
 int ma_unprepare(void)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (0 != __ma_check_recorder_privilege()) {
-               return MA_ERROR_PERMISSION_DENIED;
+               return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGI("[Client DEBUG] Unprepare"); //LCOV_EXCL_LINE
@@ -963,11 +963,11 @@ int __ma_cb_voice_key_status_changed(int status)
 int ma_get_state(ma_state_e* state)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (0 != __ma_check_recorder_privilege()) {
-               return MA_ERROR_PERMISSION_DENIED;
+               return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Get current state"); //LCOV_EXCL_LINE
@@ -992,11 +992,11 @@ int ma_get_state(ma_state_e* state)
 int ma_get_current_language(char** language)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (0 != __ma_check_recorder_privilege()) {
-               return MA_ERROR_PERMISSION_DENIED;
+               return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Get current language"); //LCOV_EXCL_LINE
@@ -1024,11 +1024,11 @@ int ma_get_current_language(char** language)
 int ma_get_recording_audio_format(int *rate, ma_audio_channel_e *channel, ma_audio_type_e *audio_type)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (0 != __ma_check_recorder_privilege()) {
-               return MA_ERROR_PERMISSION_DENIED;
+               return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
        }
 
        if (NULL == rate || NULL == channel || NULL == audio_type) {
@@ -1079,7 +1079,7 @@ int ma_get_recording_audio_format(int *rate, ma_audio_channel_e *channel, ma_aud
 int ma_set_state_changed_cb(ma_state_changed_cb callback, void* user_data)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Set Multi-assistant client state changed cb"); //LCOV_EXCL_LINE
@@ -1111,7 +1111,7 @@ int ma_set_state_changed_cb(ma_state_changed_cb callback, void* user_data)
 int ma_unset_state_changed_cb(void)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Unset Multi-assistant client state changed cb"); //LCOV_EXCL_LINE
@@ -1137,7 +1137,7 @@ int ma_unset_state_changed_cb(void)
 int ma_set_error_cb(ma_error_cb callback, void* user_data)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Set Multi-assistant client error cb"); //LCOV_EXCL_LINE
@@ -1169,7 +1169,7 @@ int ma_set_error_cb(ma_error_cb callback, void* user_data)
 int ma_unset_error_cb(void)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Unset Multi-assistant client error cb"); //LCOV_EXCL_LINE
@@ -1195,7 +1195,7 @@ int ma_unset_error_cb(void)
 int ma_set_language_changed_cb(ma_language_changed_cb callback, void* user_data)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Set Multi-assistant language changed cb"); //LCOV_EXCL_LINE
@@ -1227,7 +1227,7 @@ int ma_set_language_changed_cb(ma_language_changed_cb callback, void* user_data)
 int ma_unset_language_changed_cb(void)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Unset Multi-assistant language changed cb"); //LCOV_EXCL_LINE
@@ -1253,7 +1253,7 @@ int ma_unset_language_changed_cb(void)
 int ma_set_audio_streaming_cb(ma_audio_streaming_cb callback, void* user_data)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Set Multi-assistant audio streaming cb"); //LCOV_EXCL_LINE
@@ -1284,7 +1284,7 @@ int ma_set_audio_streaming_cb(ma_audio_streaming_cb callback, void* user_data)
 int ma_unset_audio_streaming_cb(void)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Unset Multi-assistant audio streaming cb"); //LCOV_EXCL_LINE
@@ -1310,11 +1310,11 @@ int ma_unset_audio_streaming_cb(void)
 int ma_send_asr_result(ma_asr_result_event_e event, const char* asr_result)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (0 != __ma_check_recorder_privilege()) {
-               return MA_ERROR_PERMISSION_DENIED;
+               return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
        }
 
        if (event < MA_ASR_RESULT_EVENT_PARTIAL_RESULT || event > MA_ASR_RESULT_EVENT_ERROR) {
@@ -1359,11 +1359,11 @@ int ma_send_asr_result(ma_asr_result_event_e event, const char* asr_result)
 int ma_send_result(const char* display_text, const char* utterance_text, const char* result_json)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (0 != __ma_check_recorder_privilege()) {
-               return MA_ERROR_PERMISSION_DENIED;
+               return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
        }
 
        ma_state_e state;
@@ -1402,11 +1402,11 @@ int ma_send_result(const char* display_text, const char* utterance_text, const c
 int ma_send_recognition_result(ma_recognition_result_event_e result)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (0 != __ma_check_recorder_privilege()) {
-               return MA_ERROR_PERMISSION_DENIED;
+               return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
        }
 
        ma_state_e state;
@@ -1438,7 +1438,7 @@ int ma_send_recognition_result(ma_recognition_result_event_e result)
 int ma_set_active_state_changed_cb(ma_active_state_changed_cb callback, void* user_data)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Set Multi-assistant active state changed cb"); //LCOV_EXCL_LINE
@@ -1469,7 +1469,7 @@ int ma_set_active_state_changed_cb(ma_active_state_changed_cb callback, void* us
 int ma_unset_active_state_changed_cb(void)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Unset Multi-assistant active state changed cb"); //LCOV_EXCL_LINE
@@ -1495,11 +1495,11 @@ int ma_unset_active_state_changed_cb(void)
 int ma_start_receiving_audio_streaming_data(ma_audio_streaming_data_type_e type)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (0 != __ma_check_recorder_privilege()) {
-               return MA_ERROR_PERMISSION_DENIED;
+               return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
        }
 
        ma_state_e state;
@@ -1536,11 +1536,11 @@ int ma_start_receiving_audio_streaming_data(ma_audio_streaming_data_type_e type)
 int ma_stop_receiving_audio_streaming_data(ma_audio_streaming_data_type_e type)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (0 != __ma_check_recorder_privilege()) {
-               return MA_ERROR_PERMISSION_DENIED;
+               return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
        }
 
        ma_state_e state;
@@ -1572,11 +1572,11 @@ int ma_stop_receiving_audio_streaming_data(ma_audio_streaming_data_type_e type)
 int ma_update_voice_feedback_state(ma_voice_feedback_state_e feedback_state)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (0 != __ma_check_recorder_privilege()) {
-               return MA_ERROR_PERMISSION_DENIED;
+               return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
        }
 
        ma_state_e state;
@@ -1608,11 +1608,11 @@ int ma_update_voice_feedback_state(ma_voice_feedback_state_e feedback_state)
 int ma_send_assistant_specific_command(const char* command)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (0 != __ma_check_recorder_privilege()) {
-               return MA_ERROR_PERMISSION_DENIED;
+               return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
        }
 
        ma_state_e state;
@@ -1644,7 +1644,7 @@ int ma_send_assistant_specific_command(const char* command)
 int ma_set_wakeup_engine_command_cb(ma_wakeup_engine_command_cb callback, void* user_data)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Set Multi-assistant wakeup engine command cb"); //LCOV_EXCL_LINE
@@ -1675,7 +1675,7 @@ int ma_set_wakeup_engine_command_cb(ma_wakeup_engine_command_cb callback, void*
 int ma_unset_wakeup_engine_command_cb(void)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Unset Multi-assistant wakeup engine command cb"); //LCOV_EXCL_LINE
@@ -1735,7 +1735,7 @@ int __get_assistant_info_cb(const char* app_id, const char* name,
 
 int ma_assistant_info_foreach_assistants(ma_assistant_info_list_cb callback, void* user_data) {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        int res;
@@ -1759,7 +1759,7 @@ int ma_assistant_info_foreach_assistants(ma_assistant_info_list_cb callback, voi
 
 int ma_assistant_info_get_app_id(ma_assistant_info_h handle, char** app_id) {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (NULL == handle || NULL == app_id)
@@ -1771,7 +1771,7 @@ int ma_assistant_info_get_app_id(ma_assistant_info_h handle, char** app_id) {
 
 int ma_assistant_info_get_enabled_status(ma_assistant_info_h handle, bool* status) {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (NULL == handle || NULL == status)
@@ -1794,7 +1794,7 @@ int ma_assistant_info_get_enabled_status(ma_assistant_info_h handle, bool* statu
 
 int ma_get_recording_audio_source_type(char** type) {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (NULL == type) {
@@ -1848,11 +1848,11 @@ int ma_set_background_volume(double ratio)
 
        if (0 != __ma_get_feature_enabled()) {
                MA_SLOGD("@@@ [Manager] not supported"); //LCOV_EXCL_LINE
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (0 != __ma_check_volume_set_privilege()) {
-               return MA_ERROR_PERMISSION_DENIED;
+               return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
        }
 
        ma_state_e state;
@@ -1888,11 +1888,11 @@ int ma_set_preprocessing_allow_mode(ma_preprocessing_allow_mode_e mode, const ch
 
        if (0 != __ma_get_feature_enabled()) {
                MA_SLOGD("@@@ [Manager] not supported"); //LCOV_EXCL_LINE
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (0 != __ma_check_recorder_privilege()) {
-               return MA_ERROR_PERMISSION_DENIED;
+               return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
        }
 
        ma_state_e state;
@@ -1928,7 +1928,7 @@ int ma_set_preprocessing_allow_mode(ma_preprocessing_allow_mode_e mode, const ch
 int ma_set_preprocessing_information_changed_cb(ma_preprocessing_information_changed_cb callback, void* user_data)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Set Multi-assistant preprocessing information changed cb"); //LCOV_EXCL_LINE
@@ -1959,7 +1959,7 @@ int ma_set_preprocessing_information_changed_cb(ma_preprocessing_information_cha
 int ma_unset_preprocessing_information_changed_cb(void)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Unset Multi-assistant preprocessing information changed cb"); //LCOV_EXCL_LINE
@@ -1988,11 +1988,11 @@ int ma_send_preprocessing_result(bool is_success)
 
        if (0 != __ma_get_feature_enabled()) {
                MA_SLOGD("@@@ [Manager] not supported"); //LCOV_EXCL_LINE
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (0 != __ma_check_recorder_privilege()) {
-               return MA_ERROR_PERMISSION_DENIED;
+               return MA_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
        }
 
        ma_state_e state;
@@ -2027,7 +2027,7 @@ int ma_set_wake_word_audio_require_flag(bool require)
 
        if (0 != __ma_get_feature_enabled()) {
                MA_SLOGD("@@@ [Manager] not supported"); //LCOV_EXCL_LINE
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        ma_state_e state;
@@ -2059,7 +2059,7 @@ int ma_set_wake_word_audio_require_flag(bool require)
 int ma_set_audio_streaming_data_section_changed_cb(ma_audio_streaming_data_section_changed_cb callback, void* user_data)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Set Multi-assistant audio streaming data section changed cb"); //LCOV_EXCL_LINE
@@ -2090,7 +2090,7 @@ int ma_set_audio_streaming_data_section_changed_cb(ma_audio_streaming_data_secti
 int ma_unset_audio_streaming_data_section_changed_cb(void)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Unset Multi-assistant audio streaming data section changed cb"); //LCOV_EXCL_LINE
@@ -2116,7 +2116,7 @@ int ma_unset_audio_streaming_data_section_changed_cb(void)
 int ma_set_preprocessing_result_received_cb(ma_preprocessing_result_received_cb callback, void* user_data)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Set Multi-assistant preprocessing result received cb"); //LCOV_EXCL_LINE
@@ -2147,7 +2147,7 @@ int ma_set_preprocessing_result_received_cb(ma_preprocessing_result_received_cb
 int ma_unset_preprocessing_result_received_cb(void)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Unset Multi-assistant preprocessing result received cb"); //LCOV_EXCL_LINE
@@ -2182,7 +2182,7 @@ int ma_set_assistant_wakeup_language(const char* language)
 
        if (0 != __ma_get_feature_enabled()) {
                MA_SLOGD("@@@ [Manager] not supported"); //LCOV_EXCL_LINE
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (NULL == language) {
@@ -2219,7 +2219,7 @@ int ma_set_assistant_wakeup_language(const char* language)
 int ma_set_service_state_changed_cb(ma_service_state_changed_cb callback, void* user_data)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Set Multi-assistant service state changed cb"); //LCOV_EXCL_LINE
@@ -2250,7 +2250,7 @@ int ma_set_service_state_changed_cb(ma_service_state_changed_cb callback, void*
 int ma_unset_service_state_changed_cb(void)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Unset Multi-assistant service state changed cb"); //LCOV_EXCL_LINE
@@ -2276,7 +2276,7 @@ int ma_unset_service_state_changed_cb(void)
 int ma_set_voice_key_status_changed_cb(ma_voice_key_status_changed_cb callback, void* user_data)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Set Multi-assistant voice key status changed cb"); //LCOV_EXCL_LINE
@@ -2307,7 +2307,7 @@ int ma_set_voice_key_status_changed_cb(ma_voice_key_status_changed_cb callback,
 int ma_unset_voice_key_status_changed_cb(void)
 {
        if (0 != __ma_get_feature_enabled()) {
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        MA_SLOGD("[Client DEBUG] Unset Multi-assistant voice key status changed cb"); //LCOV_EXCL_LINE
@@ -2335,7 +2335,7 @@ int ma_add_wake_word(const char* wake_word, const char *language) {
 
        if (0 != __ma_get_feature_enabled()) {
                MA_SLOGD("@@@ [Manager] not supported"); //LCOV_EXCL_LINE
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (NULL == wake_word || NULL == language) {
@@ -2374,7 +2374,7 @@ int ma_remove_wake_word(const char* wake_word, const char *language) {
 
        if (0 != __ma_get_feature_enabled()) {
                MA_SLOGD("@@@ [Manager] not supported"); //LCOV_EXCL_LINE
-               return MA_ERROR_NOT_SUPPORTED;
+               return MA_ERROR_NOT_SUPPORTED; //LCOV_EXCL_LINE
        }
 
        if (NULL == wake_word || NULL == language) {