Home | History | Annotate | Download | only in test

Lines Matching defs:true

504 // Silences warnings: "Condition is always true", "Unreachable code"
508 // Tests that GTEST_IS_NULL_LITERAL_(x) is true when x is a null
849 return true;
856 return true;
858 found_in_vector[e] = true;
873 return true;
1202 // Silences warnings: "Condition is always true"
1235 bool aborted = true;
1546 GTEST_FLAG(print_time) = true;
1581 GTEST_FLAG(also_run_disabled_tests) = true;
1582 GTEST_FLAG(break_on_failure) = true;
1583 GTEST_FLAG(catch_exceptions) = true;
1585 GTEST_FLAG(death_test_use_fork) = true;
1587 GTEST_FLAG(list_tests) = true;
1592 GTEST_FLAG(shuffle) = true;
1595 GTEST_FLAG(throw_on_failure) = true;
1748 // returns true when the flag represents a valid decimal integer in
1824 EXPECT_FALSE(ShouldShard(total_var_, index_var_, true));
1832 EXPECT_FALSE(ShouldShard(total_var_, index_var_, true));
1843 EXPECT_FALSE(ShouldShard(total_var_, index_var_, true));
1848 EXPECT_FALSE(ShouldShard(total_var_, index_var_, true));
1853 EXPECT_FALSE(ShouldShard(total_var_, index_var_, true));
2103 // Returns true iff the argument is an even number.
2108 // A functor that returns true iff the argument is an even number.
2152 // Returns true iff the sum of the arguments is an even number.
2157 // A functor that returns true iff the sum of the arguments is an even
3485 true).failure_message());
3508 // Silences warnings: "Condition is always true", "Unreachable code"
3527 "Expected: true");
3533 "Expected: true");
3541 " Actual: true\n"
3552 " Actual: true (2 is even)\n"
3558 " Actual: true\n"
3704 ASSERT_EQ(1 < 2, true);
3706 ASSERT_EQ(true && false_value, false);
3959 // Silences warnings: "Condition is always true", "Unreachable code"
4054 ASSERT_TRUE(true);
4103 EXPECT_TRUE(true);
4115 ASSERT_TRUE(true);
4186 ASSERT_FALSE(true) << "Expected failure: " << 2 << " > " << 1
4187 << " evaluates to " << true;
4204 ASSERT_TRUE(true) << "This should succeed.";
4205 ASSERT_TRUE(true) << true;
4227 EXPECT_TRUE(true) << "Intentional success";
4236 "Expected: true");
4247 "Expected: true");
4252 "Expected: true");
4259 EXPECT_NONFATAL_FAILURE(EXPECT_FALSE(true) << "Intentional failure #1.",
4261 EXPECT_NONFATAL_FAILURE(EXPECT_FALSE(true) << "Intentional failure #2.",
4265 " Actual: true\n"
4276 " Actual: true (2 is even)\n"
4281 " Actual: true\n"
4441 EXPECT_EQ(1 < 2, true);
4442 EXPECT_NONFATAL_FAILURE(EXPECT_EQ(true, true && false),
4443 "Value of: true && false");
4535 *aborted = true;
4542 bool aborted = true;
4586 EXPECT_EQ(true, true);
4589 ASSERT_EQ(false_value, true);
4590 }, "Value of: true");
5019 r << "abc" << 'd' << 0 << true;
5288 print_time(true),
5439 GTEST_FLAG(print_time) = true;
5576 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::Filter(""), true);
5624 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::BreakOnFailure(true), false);
5675 // Tests parsing a --gtest_break_on_failure flag that has a "true"
5689 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::BreakOnFailure(true), false);
5705 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::CatchExceptions(true), false);
5721 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::DeathTestUseFork(true), false);
5759 flags.break_on_failure = true;
5777 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::ListTests(true), false);
5780 // Tests having a --gtest_list_tests flag with a "true" value
5793 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::ListTests(true), false);
5858 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags(), true);
5923 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::PrintTime(true), false);
5926 // Tests having a --gtest_print_time flag with a "true" value
5939 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::PrintTime(true), false);
6036 Flags::AlsoRunDisabledTests(true), false);
6039 // Tests having a --gtest_also_run_disabled_tests flag with a "true" value
6053 Flags::AlsoRunDisabledTests(true), false);
6086 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::Shuffle(true), false);
6105 // Tests parsing a --gtest_shuffle flag that has a "true"
6119 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::Shuffle(true), false);
6167 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::ThrowOnFailure(true), false);
6186 // Tests parsing a --gtest_throw_on_failure flag that has a "true"
6200 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::ThrowOnFailure(true), false);
6222 expected_flags.break_on_failure = true;
6224 expected_flags.list_tests = true;
6340 // Silences warnings: "Condition is always true", "Unreachable code"
6345 EXPECT_TRUE(true) << "unexpected failure";
6346 ASSERT_TRUE(true) << "unexpected failure";
6356 EXPECT_NONFATAL_FAILURE(EXPECT_FALSE(true) << "expected failure",
6358 EXPECT_FATAL_FAILURE(ASSERT_FALSE(true) << "expected failure",
6467 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6471 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6478 GTEST_FLAG(color) = "True";
6492 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6496 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6504 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6507 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6510 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6518 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6528 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6531 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6534 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6540 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6543 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6546 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6549 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6552 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6555 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6558 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6561 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6564 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6567 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6570 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6702 *is_destroyed_ = true;
7072 // Tests that IsAProtocolMessage<T>::value is true when T is
7204 // Tests that ImplicitlyConvertible<T1, T2>::value is true when T1 can