diff --git a/services/implementation/src/attest/dm_auth_attest_common.cpp b/services/implementation/src/attest/dm_auth_attest_common.cpp index de2ad7ce777d0cb0f37adf5ce0c7ab27b4a11da8..3849cb53078e64ddd592303ef437452d39cae574 100644 --- a/services/implementation/src/attest/dm_auth_attest_common.cpp +++ b/services/implementation/src/attest/dm_auth_attest_common.cpp @@ -67,6 +67,7 @@ std::string AuthAttestCommon::SerializeDmCertChain(const DmCertChain *chain) return jsonObject.Dump(); } +//LCOV_EXCL_START bool ValidateInputJson(const std::string &data) { JsonObject jsonObject; @@ -184,5 +185,6 @@ void AuthAttestCommon::FreeDmCertChain(DmCertChain &chain) chain.cert = nullptr; chain.certCount = 0; } +//LCOV_EXCL_STOP } // namespace DistributedHardware -} // namespace OHOS \ No newline at end of file +} // namespace OHOS diff --git a/services/implementation/src/authentication_v2/dm_auth_message_processor.cpp b/services/implementation/src/authentication_v2/dm_auth_message_processor.cpp index 792f37174c85ee900106dfd1b7fd959a209f8110..9d8cc425b7ad9e5154f860177945dec689fe7427 100644 --- a/services/implementation/src/authentication_v2/dm_auth_message_processor.cpp +++ b/services/implementation/src/authentication_v2/dm_auth_message_processor.cpp @@ -1043,6 +1043,7 @@ int32_t DmAuthMessageProcessor::CreateProxyCredExchangeMessage(std::shared_ptr context, JsonObject &jsonObject) @@ -1088,6 +1089,7 @@ int32_t DmAuthMessageProcessor::CreateMessageRspSKDerive(std::shared_ptr context, @@ -2282,4 +2284,4 @@ void FromJson(const JsonItemObject &itemObject, DmAccessToSync &table) SetValueFromJson(itemObject, "skTimeStamp", &JsonItemObject::IsNumberInteger, table.skTimeStamp); } } // namespace DistributedHardware -} // namespace OHOS \ No newline at end of file +} // namespace OHOS diff --git a/services/service/src/publishcommonevent/dm_datashare_common_event.cpp b/services/service/src/publishcommonevent/dm_datashare_common_event.cpp index a18715aa233f84708fcedcb836b38b1a7059bac1..fbf0fc8355d20d296b125e8d1d972834f15fa8d4 100644 --- a/services/service/src/publishcommonevent/dm_datashare_common_event.cpp +++ b/services/service/src/publishcommonevent/dm_datashare_common_event.cpp @@ -95,6 +95,7 @@ bool DmDataShareCommonEventManager::SubscribeDataShareCommonEvent(const std::vec return true; } +//LCOV_EXCL_START bool DmDataShareCommonEventManager::UnsubscribeDataShareCommonEvent() { std::lock_guard locker(evenSubscriberMutex_); @@ -130,6 +131,7 @@ bool DmDataShareCommonEventManager::UnsubscribeDataShareCommonEvent() eventValidFlag_ = false; return true; } +//LCOV_EXCL_STOP void DmDataShareEventSubscriber::OnReceiveEvent(const CommonEventData &data) {