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)¶
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¶
mu/tiny/StringView.hpp(File StringView.hpp)mu/tiny/export.hmu/tiny/mock/NamedValueComparator.hpp(File NamedValueComparator.hpp)mu/tiny/mock/NamedValueComparatorsAndCopiersRepository.hpp(File NamedValueComparatorsAndCopiersRepository.hpp)mu/tiny/mock/NamedValueCopier.hpp(File NamedValueCopier.hpp)mu/tiny/test/Plugin.hpp(File Plugin.hpp)