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 ifs and menus.)

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At subsys/testsuite/ztest/Kconfig:38

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

Menu path: (Top) → Testing → Zephyr testing framework

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

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)