File mock.h

Parent directory (include/mu/tiny)

C interface to the mutiny mock framework.

Definition (include/mu/tiny/mock.h)

View source on GitHub

Detailed Description

Provides a vtable-style C API for mock interaction from pure C test code. Call Function mutiny_mock to get the global mock scope, or Function mutiny_mock_scope for a named scope; then use the function pointers on the returned struct to set up expectations and report actual calls.

Function mutiny_mock

Function mutiny_mock_scope

Includes

  • mu/tiny/export.h

  • stddef.h

Classes

Enums

Functions

Typedefs