Welcome to the new CppUtils documentation!
CppUtils::UnitTest::TestSuite::TestBuilder<bool IsSkipped = false>
STRUCTBuilder for configuring and registering an individual test case.
Description
Section titled “Description”| Template parameter | Description |
|---|---|
IsSkipped | Indicates whether the test execution is bypassed. |
Public types
Section titled “Public types”using CppUtils::UnitTest::TestSuite::TestBuilder<IsSkipped>::Base = TestBuilderBase<TestBuilder<IsSkipped>, IsSkipped>;Public methods
Section titled “Public methods”template <class... Types>[[nodiscard]] auto TestBuilder::forTypes() -> TypedTestBuilder<IsSkipped, Types...>;Converts this test into a type-parameterized test across the specified types.
| Template parameter | Description |
|---|---|
Types | Type parameters to instantiate the test with. |
Returns: TypedTestBuilder instance.
template <auto... Values>[[nodiscard]] auto TestBuilder::forValues() -> ConstexprValuesTestBuilder<IsSkipped, Values...>;Converts this test into a compile-time value-parameterized test across non-type template values.
| Template parameter | Description |
|---|---|
Values | Non-type values to instantiate the compile-time test with. |
Returns: ConstexprValuesTestBuilder instance.
Converts this test into a value-parameterized test across discrete values or a range.
| Template parameter | Description |
|---|---|
Values | Value types or single range type. |
| Parameter | Description |
|---|---|
values | Values or range to iterate over. |
Returns: ParameterizedTestBuilder instance.
Evaluates a test predicate at compile time via static_assert and registers it as a test.
| Template parameter | Description |
|---|---|
Predicate | Constexpr invocable returning a boolean or performing static assertions. |