diff --git a/commondependency/src/deviceprofile_connector.cpp b/commondependency/src/deviceprofile_connector.cpp index cf201681d3d627290066e76021cb994d06ad626d..adc8936278caa8bc4f30272eccf7ebd18a27b00b 100644 --- a/commondependency/src/deviceprofile_connector.cpp +++ b/commondependency/src/deviceprofile_connector.cpp @@ -590,6 +590,7 @@ void DeviceProfileConnector::FilterNeedDeleteACLInfos( } } +//LCOV_EXCL_START DM_EXPORT std::vector DeviceProfileConnector::GetAccessControlProfile() { std::vector profiles; @@ -634,6 +635,7 @@ std::vector DeviceProfileConnector::GetAclProfileByDeviceI } return aclProfileVec; } +//LCOV_EXCL_STOP std::vector DeviceProfileConnector::GetAclProfileByDeviceIdAndUserId(const std::string &deviceId, int32_t userId, const std::string &remoteDeviceId) @@ -2325,6 +2327,7 @@ DmOfflineParam DeviceProfileConnector::HandleServiceUnBindEvent(int32_t remoteUs return offlineParam; } +//LCOV_EXCL_START DM_EXPORT std::vector DeviceProfileConnector::GetAllAccessControlProfile() { std::vector profiles; @@ -2344,6 +2347,7 @@ DM_EXPORT std::vector DeviceProfileConnector::GetAllAclInc } return profiles; } +//LCOV_EXCL_STOP DM_EXPORT void DeviceProfileConnector::DeleteAccessControlById( int64_t accessControlId) diff --git a/json/src/json_object_cjson.cpp b/json/src/json_object_cjson.cpp index 32fed83ebe4701dc9e094d8ecef6d4d550abec6b..a27b2762838cc01bcad20e22813ab178dba01dee 100644 --- a/json/src/json_object_cjson.cpp +++ b/json/src/json_object_cjson.cpp @@ -156,6 +156,7 @@ void ToJson(JsonItemObject &itemObject, const uint64_t &value) #endif } +//LCOV_EXCL_START void FromJson(const JsonItemObject &itemObject, std::string &value) { itemObject.GetTo(value); @@ -307,6 +308,7 @@ bool JsonItemObject::IsObject() const } return cJSON_IsObject(GetCJsonPointer(item_)); } +//LCOV_EXCL_STOP void JsonItemObject::Insert(const std::string &key, const JsonItemObject &object) { diff --git a/services/implementation/src/ability/standard/dm_dialog_manager.cpp b/services/implementation/src/ability/standard/dm_dialog_manager.cpp index 156d95b885f03fb87cee74eed45afebabacaf55b..32a64d2e4a0d5439c1e7a7bf4e55179997cef96a 100644 --- a/services/implementation/src/ability/standard/dm_dialog_manager.cpp +++ b/services/implementation/src/ability/standard/dm_dialog_manager.cpp @@ -156,6 +156,7 @@ void DmDialogManager::CloseDialog() } } +//LCOV_EXCL_START void DmDialogManager::ConnectExtension() { LOGI("DmDialogManager::ConnectExtension start."); @@ -197,6 +198,7 @@ void DmDialogManager::ConnectExtension() } } } +//LCOV_EXCL_STOP void DmDialogManager::OnAbilityConnectDone( const AppExecFwk::ElementName& element, const sptr& remoteObject, int resultCode) diff --git a/services/implementation/src/authentication/auth_message_processor.cpp b/services/implementation/src/authentication/auth_message_processor.cpp index 5d4458025323d06c424bdd0da3acedc8732bee30..4241f843ff40919863732b893b1c21c3fd56f668 100644 --- a/services/implementation/src/authentication/auth_message_processor.cpp +++ b/services/implementation/src/authentication/auth_message_processor.cpp @@ -113,6 +113,7 @@ void AuthMessageProcessor::GetJsonObj(JsonObject &jsonObj) } } +//LCOV_EXCL_START bool AuthMessageProcessor::IsPincodeImported() { auto sptrAuthMgr = authMgr_.lock(); @@ -152,6 +153,7 @@ std::vector AuthMessageProcessor::CreateAuthRequestMessage() } return jsonStrVec; } +//LCOV_EXCL_STOP std::string AuthMessageProcessor::CreateSimpleMessage(int32_t msgType) { diff --git a/services/implementation/src/authentication/auth_request_state.cpp b/services/implementation/src/authentication/auth_request_state.cpp index 6b086fef485083c13fb1ca308fb479d1bade5ccc..ff8c4120e541ced6d6234e35ffd5bc8a5a6d2fe8 100644 --- a/services/implementation/src/authentication/auth_request_state.cpp +++ b/services/implementation/src/authentication/auth_request_state.cpp @@ -25,6 +25,7 @@ int32_t AuthRequestState::Leave() return DM_OK; } +//LCOV_EXCL_START int32_t AuthRequestState::SetAuthManager(std::shared_ptr authManager) { authManager_ = std::move(authManager); @@ -246,5 +247,6 @@ int32_t AuthRequestReCheckMsgDone::Enter() stateAuthManager->RequestReCheckMsgDone(); return DM_OK; } +//LCOV_EXCL_STOP } // namespace DistributedHardware } // namespace OHOS \ No newline at end of file diff --git a/services/implementation/src/authentication/auth_response_state.cpp b/services/implementation/src/authentication/auth_response_state.cpp index f076e5e70b657e1fffb1af487d86ba83701af349..38dae0cccfa8727a0caafbc580485e097e26345c 100644 --- a/services/implementation/src/authentication/auth_response_state.cpp +++ b/services/implementation/src/authentication/auth_response_state.cpp @@ -60,6 +60,7 @@ int32_t AuthResponseState::TransitionTo(std::shared_ptr state return DM_OK; } +//LCOV_EXCL_START int32_t AuthResponseInitState::GetStateType() { return AuthState::AUTH_RESPONSE_INIT; @@ -194,5 +195,6 @@ int32_t AuthResponseReCheckMsg::Enter() stateAuthManager->ResponseReCheckMsg(); return DM_OK; } +//LCOV_EXCL_STOP } // namespace DistributedHardware } // namespace OHOS