summaryrefslogtreecommitdiff
path: root/power
diff options
context:
space:
mode:
authorAaron Massey <aaronmassey@google.com>2022-10-13 16:40:51 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-10-20 21:00:14 +0000
commit093a85a163a1c0edf00beba7f3661a01f5d645dc (patch)
treefccab91e714aaf514537344df210d51a2ca59713 /power
parented1752afc0b36157d5e992a8da3ca3c04e341c7f (diff)
downloadchrome-ec-093a85a163a1c0edf00beba7f3661a01f5d645dc.tar.gz
test: Exclude void overridable stubs from coverage
Exclude overridable functions that have zero behavior and return no values from coverage. BRANCH=none BUG=b:252887178 TEST=twister -s zephyr/test/drivers/drivers.power_host_sleep --coverage Signed-off-by: Aaron Massey <aaronmassey@google.com> Change-Id: I7fabfb2215af745809a13ee534922a5431868df5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3956206 Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Reviewed-by: Yuval Peress <peress@google.com>
Diffstat (limited to 'power')
-rw-r--r--power/host_sleep.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/power/host_sleep.c b/power/host_sleep.c
index b97fb904c1..7dc83ca8e9 100644
--- a/power/host_sleep.c
+++ b/power/host_sleep.c
@@ -18,12 +18,15 @@
/* Track last reported sleep event */
static enum host_sleep_event host_sleep_state;
+/* LCOV_EXCL_START */
+/* Function stub that has no behavior, so ignoring for coverage */
__overridable void
power_chipset_handle_host_sleep_event(enum host_sleep_event state,
struct host_sleep_event_context *ctx)
{
/* Default weak implementation -- no action required. */
}
+/* LCOV_EXCL_STOP */
static enum ec_status
host_command_host_sleep_event(struct host_cmd_handler_args *args)
@@ -116,16 +119,22 @@ static enum sleep_hang_type timeout_hang_type;
static void sleep_transition_timeout(void);
DECLARE_DEFERRED(sleep_transition_timeout);
+/* LCOV_EXCL_START */
+/* Function stub that has no behavior, so ignoring for coverage */
__overridable void power_board_handle_sleep_hang(enum sleep_hang_type hang_type)
{
/* Default empty implementation */
}
+/* LCOV_EXCL_STOP */
+/* LCOV_EXCL_START */
+/* Function stub that has no behavior, so ignoring for coverage */
__overridable void
power_chipset_handle_sleep_hang(enum sleep_hang_type hang_type)
{
/* Default empty implementation */
}
+/* LCOV_EXCL_STOP */
static void sleep_increment_transition(void)
{