Bienvenue sur la nouvelle documentation de CppUtils !
CppUtils::UnitTest::TestSuite::TestBuilder<bool IsSkipped = false>
STRUCTBuilder for configuring and registering an individual test case.
Description
Section intitulée « Description »| Paramètre template | Description |
|---|---|
IsSkipped | Indicates whether the test execution is bypassed. |
Types publics
Section intitulée « Types publics »using CppUtils::UnitTest::TestSuite::TestBuilder<IsSkipped>::Base = TestBuilderBase<TestBuilder<IsSkipped>, IsSkipped>;Méthodes publiques
Section intitulée « Méthodes publiques »template <class... Types>[[nodiscard]] auto TestBuilder::forTypes() -> TypedTestBuilder<IsSkipped, Types...>;Converts this test into a type-parameterized test across the specified types.
| Paramètre template | Description |
|---|---|
Types | Type parameters to instantiate the test with. |
Retourne : 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.
| Paramètre template | Description |
|---|---|
Values | Non-type values to instantiate the compile-time test with. |
Retourne : ConstexprValuesTestBuilder instance.
Converts this test into a value-parameterized test across discrete values or a range.
| Paramètre template | Description |
|---|---|
Values | Value types or single range type. |
| Paramètre | Description |
|---|---|
values | Values or range to iterate over. |
Retourne : ParameterizedTestBuilder instance.
Evaluates a test predicate at compile time via static_assert and registers it as a test.
| Paramètre template | Description |
|---|---|
Predicate | Constexpr invocable returning a boolean or performing static assertions. |