From ab6c495343a9044035f17d28bafa1303b5e83014 Mon Sep 17 00:00:00 2001 From: herongpeng Date: Mon, 8 Sep 2025 19:25:29 +0800 Subject: [PATCH] Block useless coverage issues Block useless coverage issues Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/ICWZHD Signed-off-by: herongpeng Change-Id: Ibef207e3d90ddc1cc9bdf865249db37d4ea6c030 --- compiler_service/src/aot_compiler_impl.cpp | 4 ++++ compiler_service/src/aot_compiler_service.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/compiler_service/src/aot_compiler_impl.cpp b/compiler_service/src/aot_compiler_impl.cpp index 6fc85de2d9..b9e9e17877 100644 --- a/compiler_service/src/aot_compiler_impl.cpp +++ b/compiler_service/src/aot_compiler_impl.cpp @@ -37,6 +37,7 @@ AotCompilerImpl& AotCompilerImpl::GetInstance() return aotCompiler; } +// LCOV_EXCL_START void AotCompilerImpl::DropCapabilities() const { LOG_SA(INFO) << "begin to drop capabilities"; @@ -154,6 +155,7 @@ bool AotCompilerImpl::VerifyCompilerModeAndPkgInfo(const std::unordered_map &argsMap, std::vector &sigData) @@ -235,6 +237,7 @@ int32_t AotCompilerImpl::NeedReCompile(const std::string& args, bool& sigData) return ERR_OK; } +// LCOV_EXCL_START int32_t AotCompilerImpl::AOTLocalCodeSign(std::vector &sigData) const { #ifdef CODE_SIGN_ENABLE @@ -370,4 +373,5 @@ bool AotCompilerImpl::IsAllowAotCompiler() const { return allowAotCompiler_.load(); } +// LCOV_EXCL_STOP } // namespace OHOS::ArkCompiler diff --git a/compiler_service/src/aot_compiler_service.cpp b/compiler_service/src/aot_compiler_service.cpp index b9195793be..4d67b138e8 100644 --- a/compiler_service/src/aot_compiler_service.cpp +++ b/compiler_service/src/aot_compiler_service.cpp @@ -28,6 +28,7 @@ constexpr int32_t DELAY_TIME = 180000; REGISTER_SYSTEM_ABILITY_BY_ID(AotCompilerService, AOT_COMPILER_SERVICE_ID, false); +// LCOV_EXCL_START AotCompilerService::AotCompilerService() : SystemAbility(AOT_COMPILER_SERVICE_ID, false), state_(ServiceRunningState::STATE_NOT_START) { @@ -112,6 +113,7 @@ void AotCompilerService::OnStop() UnRegisterScreenStatusSubscriber(); UnRegisterThermalMgrListener(); } +// LCOV_EXCL_STOP int32_t AotCompilerService::AotCompiler(const std::unordered_map &argsMap, std::vector &sigData) @@ -157,6 +159,7 @@ int32_t AotCompilerService::StopAotCompiler() return ret; } +// LCOV_EXCL_START void AotCompilerService::RegisterPowerDisconnectedListener() { LOG_SA(DEBUG) << "AotCompilerService::RegisterPowerDisconnectedListener"; @@ -261,4 +264,5 @@ bool AotCompilerService::IsThermalLevelEventSubscribered() const { return isThermalLevelEventSubscribered_; } +// LCOV_EXCL_STOP } // namespace OHOS::ArkCompiler \ No newline at end of file -- Gitee