Bool() allows generating tests with parameters in a set of (false, true). Synopsis: Bool() - returns a generator producing sequences with elements {false, true}. It is useful when testing code that depends on Boolean flags. Combinations of multiple flags can be tested when several Bool()'s are combined using Combine() function. In the following example all tests in the test suite FlagDependentT
| 11450 | // INSTANTIATE_TEST_SUITE_P(BoolSequence, FlagDependentTest, Bool()); |
| 11451 | // |
| 11452 | inline internal::ParamGenerator<bool> Bool() { |
| 11453 | return Values(false, true); |
| 11454 | } |
| 11455 | |
| 11456 | // Combine() allows the user to combine two or more sequences to produce |
| 11457 | // values of a Cartesian product of those sequences' elements. |