The latest development version of this page may be more current than this released 2.7.5 version.

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.

Defaults

No defaults. Implicitly defaults to n.

Kconfig definition

At subsys/testsuite/ztest/Kconfig:78

Included via Kconfig:8Kconfig.zephyr:44subsys/Kconfig:61subsys/testsuite/Kconfig:6

Menu path: (Top) → Sub Systems and OS Services → Testing

config ZTEST_MOCKING
    bool "Mocking support functions"
    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.)