File SupportPlugin.hpp

Parent directory (include/mu/tiny/mock)

Class Plugin that automates mock check/clear and comparator lifetime.

Definition (include/mu/tiny/mock/SupportPlugin.hpp)

View source on GitHub

Detailed Description

Install Class SupportPlugin once in your test runner (or in the test group) to have the framework automatically call mu::tiny::mock::Support::check_expectations() and mu::tiny::mock::Support::clear() after each test, eliminating the need to write teardown code for every test group.

It also provides mu::tiny::mock::SupportPlugin::install_comparator() and mu::tiny::mock::SupportPlugin::install_copier() methods whose lifetime is tied to the plugin scope, ensuring comparators and copiers are removed after each test run.

Includes

Namespaces

Classes