MCPcopy Create free account
hub / github.com/apache/singa / Bool

Function Bool

test/gtest/gtest.h:16786–16788  ·  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 case FlagDependentTe

Source from the content-addressed store, hash-verified

16784// INSTANTIATE_TEST_CASE_P(BoolSequence, FlagDependentTest, Bool());
16785//
16786inline internal::ParamGenerator<bool> Bool() {
16787 return Values(false, true);
16788}
16789
16790# if GTEST_HAS_COMBINE
16791// Combine() allows the user to combine two or more sequences to produce

Callers

nothing calls this directly

Calls 1

ValuesFunction · 0.85

Tested by

no test coverage detected