MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / Bool

Function Bool

tests/gtest/gtest.h:11452–11454  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

11450// INSTANTIATE_TEST_SUITE_P(BoolSequence, FlagDependentTest, Bool());
11451//
11452inline 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.

Callers

nothing calls this directly

Calls 1

ValuesFunction · 0.85

Tested by

no test coverage detected