Bienvenue sur la nouvelle documentation de CppUtils !
CppUtils::UnitTest::TestSuiteBuilder
STRUCTTop-level builder used to declare a test suite, configure dependencies, and define its body.
Description
Section intitulée « Description »Attributs publics
Section intitulée « Attributs publics »Names of prerequisite test suites that must succeed before this suite runs.
Méthodes publiques
Section intitulée « Méthodes publiques »template <class... Dependencies>auto TestSuiteBuilder::dependsOn(Dependencies&&... dependencies) -> TestSuiteBuilder&;Adds prerequisite test suites that must succeed before executing this suite.
| Paramètre | Description |
|---|---|
dependencies | Prerequisite test suite names. |
Retourne : Reference to this builder.
template <class... Types>[[nodiscard]] auto TestSuiteBuilder::forTypes() -> TypedTestSuiteBuilder<Types...>;Converts this suite into a type-parameterized test suite.
| Paramètre template | Description |
|---|---|
Types | Type parameter list. |
Retourne : TypedTestSuiteBuilder instance.
Converts this suite into a value-parameterized test suite over values or a range.
| Paramètre template | Description |
|---|---|
Values | Value types or single range type. |
| Paramètre | Description |
|---|---|
values | Values or range to parameterize the suite with. |
Retourne : ParameterizedTestSuiteBuilder instance.
Registers the test suite callback into the global test runner.
| Paramètre | Description |
|---|---|
function | Invocable accepting a TestSuite&. |
Retourne : TestSuiteRegistration token.