24template <
typename TestClass>
25 requires(std::derived_from<TestClass, TestBase>)
29 template <
typename... MetadataAttrs>
35 TestClass test{assignment, name, metadata};
36 assignment.
add_test(std::make_unique<TestClass>(std::forward<TestClass>(test)));
Declaration for the logic and data encapsulating a class assignment.
Definition assignment.hpp:23
void add_test(std::unique_ptr< TestBase > test) const noexcept
Definition assignment.cpp:16
Assignment & find_or_create_assignment(metadata::Metadata< MetadataAttrs... > metadata)
Find the assignment corresponding to the Assignment attribute of metadata, or create a new assignment...
Definition global_registrar.hpp:84
static GlobalRegistrar & get() noexcept
Safe global singleton pattern (first intro. by Scott Meyers for C++, I think)
Definition global_registrar.cpp:11
Helper class that, whem constructed, automatically constructs and registers a test.
Definition auto_registrars.hpp:27
TestAutoRegistrar(std::string_view name, metadata::Metadata< MetadataAttrs... > metadata=metadata::Metadata< MetadataAttrs... >{}) noexcept
Definition auto_registrars.hpp:30
Definition asm_buffer.hpp:19