LCOV - code coverage report
Current view: top level - zephyr/drivers/regulator - fake.h Coverage Total Hit
Test: new.info Lines: 0.0 % 18 0
Test Date: 2025-10-20 12:20:01

            Line data    Source code
       1            0 : /*
       2              :  * Copyright (c) 2022 Nordic Semiconductor ASA
       3              :  * SPDX-License-Identifier: Apache-2.0
       4              :  */
       5              : 
       6              : #ifndef ZEPHYR_DRIVERS_REGULATOR_FAKE_H_
       7              : #define ZEPHYR_DRIVERS_REGULATOR_FAKE_H_
       8              : 
       9              : #include <zephyr/drivers/regulator.h>
      10              : #include <zephyr/fff.h>
      11              : 
      12              : #ifdef __cplusplus
      13              : extern "C" {
      14              : #endif
      15              : 
      16            0 : DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_enable, const struct device *);
      17            0 : DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_disable, const struct device *);
      18              : DECLARE_FAKE_VALUE_FUNC(unsigned int, regulator_fake_count_voltages,
      19            0 :                         const struct device *);
      20              : DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_list_voltage, const struct device *,
      21            0 :                         unsigned int, int32_t *);
      22              : DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_set_voltage, const struct device *,
      23            0 :                         int32_t, int32_t);
      24              : DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_get_voltage, const struct device *,
      25            0 :                         int32_t *);
      26            0 : DECLARE_FAKE_VALUE_FUNC(unsigned int, regulator_fake_count_current_limits, const struct device *);
      27              : DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_list_current_limit, const struct device *, unsigned int,
      28            0 :                         int32_t *);
      29              : DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_set_current_limit,
      30            0 :                         const struct device *, int32_t, int32_t);
      31              : DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_get_current_limit,
      32            0 :                         const struct device *, int32_t *);
      33              : DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_set_mode, const struct device *,
      34            0 :                         regulator_mode_t);
      35              : DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_get_mode, const struct device *,
      36            0 :                         regulator_mode_t *);
      37              : DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_set_active_discharge, const struct device *,
      38            0 :                         bool);
      39              : DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_get_active_discharge, const struct device *,
      40            0 :                         bool *);
      41              : DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_get_error_flags,
      42            0 :                         const struct device *, regulator_error_flags_t *);
      43              : 
      44              : DECLARE_FAKE_VALUE_FUNC(int, regulator_parent_fake_dvs_state_set,
      45            0 :                         const struct device *, regulator_dvs_state_t);
      46              : DECLARE_FAKE_VALUE_FUNC(int, regulator_parent_fake_ship_mode,
      47            0 :                         const struct device *);
      48              : 
      49              : #ifdef __cplusplus
      50              : }
      51              : #endif
      52              : 
      53              : #endif /* ZEPHYR_TESTS_DRIVERS_CAN_SHELL_FAKE_CAN_H_ */
        

Generated by: LCOV version 2.0-1