CONFIG_ZTEST_MOCKING

Mocking support functions

Type: bool

Help

Enable mocking support for Ztest. This allows the test to set return values and expected parameters to functions.

Direct dependencies

ZTEST

(Includes any dependencies from if’s and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At subsys/testsuite/ztest/Kconfig:37

Included via Kconfig:10Kconfig.zephyr:39subsys/Kconfig:38subsys/testsuite/Kconfig:9

Menu path: (top menu) → Testing → Zephyr testing framework

config ZTEST_MOCKING
    bool
    prompt "Mocking support functions" if ZTEST
    depends on ZTEST
    help
      Enable mocking support for Ztest. This allows the test to set
      return values and expected parameters to functions.

(Definitions include propagated dependencies, including from if’s and menus.)