Home | History | Annotate | Download | only in test

Lines Matching defs:true

295 // Silences warnings: "Condition is always true", "Unreachable code"
299 // Tests that GTEST_IS_NULL_LITERAL_(x) is true when x is a null
312 EXPECT_TRUE(GTEST_IS_NULL_LITERAL_(true && false));
642 return true;
649 return true;
651 found_in_vector[e] = true;
666 return true;
1328 // Silences warnings: "Condition is always true"
1361 bool aborted = true;
1696 GTEST_FLAG(print_time) = true;
1729 GTEST_FLAG(also_run_disabled_tests) = true;
1730 GTEST_FLAG(break_on_failure) = true;
1731 GTEST_FLAG(catch_exceptions) = true;
1733 GTEST_FLAG(death_test_use_fork) = true;
1735 GTEST_FLAG(list_tests) = true;
1740 GTEST_FLAG(shuffle) = true;
1742 GTEST_FLAG(throw_on_failure) = true;
1893 // returns true when the flag represents a valid decimal integer in
1969 EXPECT_FALSE(ShouldShard(total_var_, index_var_, true));
1977 EXPECT_FALSE(ShouldShard(total_var_, index_var_, true));
1988 EXPECT_FALSE(ShouldShard(total_var_, index_var_, true));
1993 EXPECT_FALSE(ShouldShard(total_var_, index_var_, true));
1998 EXPECT_FALSE(ShouldShard(total_var_, index_var_, true));
2081 // Returns true iff the argument is an even number.
2086 // A functor that returns true iff the argument is an even number.
2130 // Returns true iff the sum of the arguments is an even number.
2135 // A functor that returns true iff the sum of the arguments is an even
3456 true).failure_message());
3479 // Silences warnings: "Condition is always true", "Unreachable code"
3498 "Expected: true");
3504 "Expected: true");
3512 " Actual: true\n"
3523 " Actual: true (2 is even)\n"
3529 " Actual: true\n"
3674 ASSERT_EQ(1 < 2, true);
3675 ASSERT_EQ(true && false, false);
3893 // Silences warnings: "Condition is always true", "Unreachable code"
3988 ASSERT_TRUE(true);
4037 EXPECT_TRUE(true);
4049 ASSERT_TRUE(true);
4069 "Expected: true");
4080 "Expected: true");
4085 "Expected: true");
4093 " Actual: true\n"
4104 " Actual: true (2 is even)\n"
4109 " Actual: true\n"
4269 EXPECT_EQ(1 < 2, true);
4270 EXPECT_NONFATAL_FAILURE(EXPECT_EQ(true, true && false),
4271 "Value of: true && false");
4363 *aborted = true;
4370 bool aborted = true;
4400 EXPECT_EQ(true, true);
4401 EXPECT_FATAL_FAILURE(ASSERT_EQ(false, true),
4402 "Value of: true");
4765 r << "abc" << 'd' << 0 << true;
5028 print_time(true),
5169 GTEST_FLAG(print_time) = true;
5302 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::Filter(""), true);
5350 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::BreakOnFailure(true), false);
5401 // Tests parsing a --gtest_break_on_failure flag that has a "true"
5415 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::BreakOnFailure(true), false);
5431 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::CatchExceptions(true), false);
5447 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::DeathTestUseFork(true), false);
5485 flags.break_on_failure = true;
5503 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::ListTests(true), false);
5506 // Tests having a --gtest_list_tests flag with a "true" value
5519 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::ListTests(true), false);
5584 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags(), true);
5649 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::PrintTime(true), false);
5652 // Tests having a --gtest_print_time flag with a "true" value
5665 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::PrintTime(true), false);
5762 Flags::AlsoRunDisabledTests(true), false);
5765 // Tests having a --gtest_also_run_disabled_tests flag with a "true" value
5779 Flags::AlsoRunDisabledTests(true), false);
5812 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::Shuffle(true), false);
5831 // Tests parsing a --gtest_shuffle flag that has a "true"
5845 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::Shuffle(true), false);
5877 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::ThrowOnFailure(true), false);
5896 // Tests parsing a --gtest_throw_on_failure flag that has a "true"
5910 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::ThrowOnFailure(true), false);
5932 expected_flags.break_on_failure = true;
5934 expected_flags.list_tests = true;
6050 // Silences warnings: "Condition is always true", "Unreachable code"
6055 EXPECT_TRUE(true) << "unexpected failure";
6056 ASSERT_TRUE(true) << "unexpected failure";
6066 EXPECT_NONFATAL_FAILURE(EXPECT_FALSE(true) << "expected failure",
6068 EXPECT_FATAL_FAILURE(ASSERT_FALSE(true) << "expected failure",
6177 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6181 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6188 GTEST_FLAG(color) = "True";
6202 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6206 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6214 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6217 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6220 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6228 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6238 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6241 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6244 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6250 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6253 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6256 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6259 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6262 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6265 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6268 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6399 *is_destroyed_ = true;