Lines Matching full:tests
32 // Tests for Google Test itself. This verifies that the basic constructs of
156 // This line tests that we can define tests in an unnamed namespace.
159 // Tests GetTypeId.
184 // Tests FormatTimeInMillisAsSeconds().
212 // Tests that GTEST_IS_NULL_LITERAL_(x) is true when x is a null
224 // Tests that GTEST_IS_NULL_LITERAL_(x) is false when x is not a null
235 // Tests CodePointToUtf8().
237 // Tests that the NUL character L'\0' is encoded correctly.
243 // Tests that ASCII characters are encoded correctly.
252 // Tests that Unicode code-points that have 8 to 11 bits are encoded
263 // Tests that Unicode code-points that have 12 to 16 bits are encoded
275 // Tests in this group require a wchar_t to hold > 16 bits, and thus
279 // Tests that Unicode code-points that have 17 to 21 bits are encoded
293 // Tests that encoding an invalid code-point generates the expected result.
302 // Tests WideStringToUtf8().
304 // Tests that the NUL character L'\0' is encoded correctly.
311 // Tests that ASCII strings are encoded correctly.
320 // Tests that Unicode code-points that have 8 to 11 bits are encoded
332 // Tests that Unicode code-points that have 12 to 16 bits are encoded
344 // Tests that the conversion stops when the function encounters \0 character.
349 // Tests that the conversion stops when the function reaches the limit
357 // Tests that Unicode code-points that have 17 to 21 bits are encoded
370 // Tests that encoding an invalid code-point generates the expected result.
376 // Tests that surrogate pairs are encoded correctly on the systems using
383 // Tests that encoding an invalid UTF-16 surrogate pair
395 // Tests that codepoint concatenation works correctly.
417 // Tests the List template class.
419 // Tests List::PushFront().
444 // Tests List::PopFront().
469 // Tests inserting at the beginning using List::InsertAfter().
494 // Tests inserting at a location other than the beginning using
524 // Tests the String class.
526 // Tests String's constructors.
613 // Tests String::ShowCString().
620 // Tests String::ShowCStringQuoted().
630 // Tests String::operator==().
649 // Tests String::operator!=().
668 // Tests String::EndsWith().
678 // Tests String::EndsWithCaseInsensitive().
690 // Tests String::CaseInsensitiveWideCStringEquals
702 // Tests that NULL can be assigned to a String.
711 // Tests that the empty string "" can be assigned to a String.
720 // Tests that a non-empty string can be assigned to a String.
729 // Tests that a String can be assigned to itself.
739 // Tests String::ShowWideCString().
747 // Tests String::ShowWideCStringQuoted().
784 // Tests TestProperty construction.
791 // Tests TestProperty replacing a value.
814 // Tests that ScopedFakeTestPartResultReporter intercepts test
834 // Tests, that the deprecated constructor still works.
884 // Tests EXPECT_FATAL_FAILURE{,ON_ALL_THREADS}.
899 // Tests that EXPECT_FATAL_FAILURE() can be used in a non-void
912 // Tests that EXPECT_FATAL_FAILURE(statement, ...) doesn't abort the
928 // Tests that the EXPECT_FATAL_FAILURE{,_ON_ALL_THREADS} accepts a
947 // Tests EXPECT_NONFATAL_FAILURE{,ON_ALL_THREADS}.
963 // Tests that the EXPECT_NONFATAL_FAILURE{,_ON_ALL_THREADS} accepts a
995 // Tests the TestResult class
1053 // Tests TestResult::test_part_results()
1060 // Tests TestResult::successful_part_count()
1067 // Tests TestResult::failed_part_count()
1074 // Tests testing::internal::GetFailedPartCount().
1081 // Tests TestResult::total_part_count()
1088 // Tests TestResult::Passed()
1095 // Tests TestResult::Failed()
1102 // Tests TestResult::test_properties() has no properties when none are added.
1108 // Tests TestResult::test_properties() has the expected property when added.
1120 // Tests TestResult::test_properties() has multiple properties when added.
1138 // Tests TestResult::test_properties() overrides values for duplicate keys.
1161 // When a property using a reserved key is supplied to this function, it tests
1195 // Tests that GTestFlagSaver works on Windows and Mac.
1218 // Restores the Google Test flags that the tests have modified. This will
1259 // Google Test doesn't guarantee the order of tests. The following two
1260 // tests are designed to work regardless of their order.
1296 // Tests Int32FromGTestEnv().
1298 // Tests that Int32FromGTestEnv() returns the default value when the
1305 // Tests that Int32FromGTestEnv() returns the default value when the
1317 // Tests that Int32FromGTestEnv() returns the default value when the
1329 // Tests that Int32FromGTestEnv() parses and returns the value of the
1341 // Tests ParseInt32Flag().
1343 // Tests that ParseInt32Flag() returns false and doesn't change the
1354 // Tests that ParseInt32Flag() returns false and doesn't change the
1367 // Tests that ParseInt32Flag() returns false and doesn't change the
1381 // Tests that ParseInt32Flag() parses the value of the flag and
1393 // Tests that Int32FromEnvOrDie() parses the value of the var or
1405 // Tests that Int32FromEnvOrDie() aborts with an error message
1413 // Tests that Int32FromEnvOrDie() aborts with an error message
1424 // Tests that ShouldRunTestOnShard() selects all tests
1450 // Tests that sharding is disabled if neither of the environment variables
1460 // Tests that sharding is not enabled if total_shards == 1.
1468 // Tests that sharding is enabled if total_shards > 1 and
1489 // Tests that we exit in error if the sharding values are not valid.
1514 // Tests that ShouldRunTestOnShard is a partition when 5
1517 // Choose an arbitrary number of tests and shards.
1549 // Test class, there are no separate tests for the following classes
1554 // Similarly, there are no separate tests for the following macros:
1563 // This group of tests is for predicate assertions (ASSERT_PRED*, etc)
1565 // view them as smoke tests that can be easily reviewed and verified.
1566 // A more complete set of tests for predicate assertions can be found
1569 // First, some predicates and predicate-formatters needed by the tests.
1652 // Tests unary predicate assertions.
1654 // Tests unary predicate assertions that don't use a custom formatter.
1668 // Tests unary predicate assertions that use a custom formatter.
1684 // Tests that unary predicate assertions evaluates their arguments
1701 // Tests predicate assertions whose arity is >= 2.
1703 // Tests predicate assertions that don't use a custom formatter.
1720 // Tests predicate assertions that use a custom formatter.
1741 // Tests that predicate assertions evaluates their arguments
1808 // Tests that overloaded functions can be used in *_PRED* as long as
1815 // Tests that template functions can be used in *_PRED* as long as
1851 // Tests that overloaded functions can be used in *_PRED_FORMAT*
1858 // Tests that template functions can be used in *_PRED_FORMAT* without
1866 // Tests string assertions.
1868 // Tests ASSERT_STREQ with non-NULL arguments.
1881 // Tests ASSERT_STREQ with NULL arguments.
1888 // Tests ASSERT_STREQ with NULL arguments.
1894 // Tests ASSERT_STRNE.
1907 // Tests ASSERT_STRCASEEQ.
1917 // Tests ASSERT_STRCASENE.
1931 // Tests *_STREQ on wide strings.
1956 // Tests *_STRNE on wide strings.
1982 // Tests for ::testing::IsSubstring().
1984 // Tests that IsSubstring() returns the correct result when the input
1996 // Tests that IsSubstring() returns the correct result when the input
2008 // Tests that IsSubstring() generates the correct message when the input
2021 // Tests that IsSubstring returns the correct result when the input
2032 // Tests that IsSubstring returns the correct result when the input
2039 // Tests that IsSubstring() generates the correct message when the input
2053 // Tests for ::testing::IsNotSubstring().
2055 // Tests that IsNotSubstring() returns the correct result when the input
2063 // Tests that IsNotSubstring() returns the correct result when the input
2070 // Tests that IsNotSubstring() generates the correct message when the input
2085 // Tests that IsNotSubstring returns the correct result when the input
2092 // Tests that IsNotSubstring() generates the correct message when the input
2108 // Tests that IsNotSubstring returns the correct result when the input
2118 // Tests floating-point assertions.
2166 // Pre-calculated numbers to be used by the tests.
2216 // Tests that the size of Float::Bits matches the size of float.
2221 // Tests comparing with +0 and -0.
2230 // Tests comparing numbers close to 0.
2245 // Tests comparing numbers close to each other.
2252 // Tests comparing numbers far apart.
2258 // Tests comparing with infinity.
2277 // Tests that comparing with NAN always returns false.
2293 // Tests that *_FLOAT_EQ are reflexive.
2300 // Tests that *_FLOAT_EQ are commutative.
2311 // Tests EXPECT_NEAR.
2323 // Tests ASSERT_NEAR.
2334 // Tests the cases where FloatLE() should succeed.
2343 // Tests the cases where FloatLE() should fail.
2373 // Tests that the size of Double::Bits matches the size of double.
2378 // Tests comparing with +0 and -0.
2387 // Tests comparing numbers close to 0.
2402 // Tests comparing numbers close to each other.
2409 // Tests comparing numbers far apart.
2415 // Tests comparing with infinity.
2434 // Tests that comparing with NAN always returns false.
2446 // Tests
2456 // Tests that *_DOUBLE_EQ are commutative.
2466 // Tests EXPECT_NEAR.
2478 // Tests ASSERT_NEAR.
2489 // Tests the cases where DoubleLE() should succeed.
2498 // Tests the cases where DoubleLE() should fail.
2552 // Check that when all tests in a test case are disabled, SetupTestCase() and
2557 FAIL() << "Unexpected failure: All tests disabled in test case. "
2562 FAIL() << "Unexpected failure: All tests disabled in test case. "
2575 // Tests that disabled typed tests aren't run.
2602 // Tests that disabled type-parameterized tests aren't run.
2638 // Tests that assertion macros evaluate their arguments exactly once.
2676 // Tests that when ASSERT_STREQ fails, it evaluates its arguments
2685 // Tests that string assertion arguments are evaluated exactly once.
2699 // Tests that when ASSERT_NE fails, it evaluates its arguments exactly
2707 // Tests that assertion arguments are evaluated exactly once.
2743 // Tests that assertion arguments are evaluated exactly once.
2788 // Tests {ASSERT|EXPECT}_NO_FATAL_FAILURE.
2879 // Tests non-string assertions.
2881 // Tests EqFailure(), used for implementing *EQ* assertions.
2931 // Tests AppendUserMessage(), used for implementing the *EQ* macros.
2944 // Tests ASSERT_TRUE.
2951 // Tests ASSERT_FALSE.
2960 // Tests using ASSERT_EQ on double values. The purpose is to make
2972 // Tests ASSERT_EQ.
2981 // Tests ASSERT_EQ(NULL, pointer).
2998 // Tests ASSERT_EQ(0, non_pointer). Since the literal 0 can be
3013 // Tests ASSERT_NE.
3021 // Tests ASSERT_LE.
3029 // Tests ASSERT_LT.
3036 // Tests ASSERT_GE.
3044 // Tests ASSERT_GT.
3056 // Tests ASSERT_THROW.
3069 // Tests ASSERT_NO_THROW.
3077 // Tests ASSERT_ANY_THROW.
3100 // Tests calling a test subroutine that's not part of a fixture.
3144 // Tests that uncopyable objects can be used in assertions.
3155 // Tests that uncopyable objects can be used in expects.
3173 // Tests using assertions with anonymous enums.
3232 // HRESULT assertion tests test both zero and non-zero
3276 // Tests that streaming to the HRESULT macros works.
3302 // Tests that the assertion macros behave like single statements.
3323 // Tests that the compiler will not complain about unreachable code in the
3387 // Tests that the assertion macros work well with switch statements.
3439 // Tests that Google Test tracks SUCCEED*.
3446 // Tests that Google Test doesn't track successful EXPECT_*.
3452 // Tests that Google Test doesn't track successful EXPECT_STR*.
3458 // Tests that Google Test doesn't track successful ASSERT_*.
3464 // Tests that Google Test doesn't track successful ASSERT_STR*.
3474 // Tests EXPECT_TRUE.
3485 // Tests EXPECT_FALSE.
3496 // Tests EXPECT_EQ.
3507 // Tests using EXPECT_EQ on double values. The purpose is to make
3520 // Tests EXPECT_EQ(NULL, pointer).
3533 // Tests EXPECT_EQ(0, non_pointer). Since the literal 0 can be
3548 // Tests EXPECT_NE.
3570 // Tests EXPECT_LE.
3580 // Tests EXPECT_LT.
3589 // Tests EXPECT_GE.
3599 // Tests EXPECT_GT.
3610 // Tests EXPECT_THROW.
3622 // Tests EXPECT_NO_THROW.
3630 // Tests EXPECT_ANY_THROW.
3649 // Tests the StreamableToString() function.
3651 // Tests using StreamableToString() on a scalar.
3656 // Tests using StreamableToString() on a non-char pointer.
3663 // Tests using StreamableToString() on a NULL non-char pointer.
3669 // Tests using StreamableToString() on a C string.
3674 // Tests using StreamableToString() on a NULL C string.
3680 // Tests using streamable values as assertion messages.
3683 // Tests using std::string as an assertion message.
3691 // Tests that we can output strings containing embedded NULs.
3705 // Tests that we can output a NUL char.
3712 // Tests using int as an assertion message.
3718 // Tests using NULL char pointer as an assertion message.
3722 // tests whether the workaround works.
3728 // Tests that basic IO manipulators (endl, ends, and flush) can be
3737 // Tests the macros that haven't been covered so far.
3745 // Tests ADD_FAILURE.
3753 // Tests FAIL.
3761 // Tests SUCCEED
3768 // Tests for EXPECT_EQ() and ASSERT_EQ().
3770 // These tests fail *intentionally*, s.t. the failure messages can be
3773 // We have different tests for different argument types.
3775 // Tests using bool values in {EXPECT|ASSERT}_EQ.
3782 // Tests using int values in {EXPECT|ASSERT}_EQ.
3789 // Tests using time_t values in {EXPECT|ASSERT}_EQ.
3798 // Tests using char values in {EXPECT|ASSERT}_EQ.
3809 // Tests using wchar_t values in {EXPECT|ASSERT}_EQ.
3830 // Tests using ::std::string values in {EXPECT|ASSERT}_EQ.
3864 // Tests using ::std::wstring values in {EXPECT|ASSERT}_EQ.
3898 // Tests using ::string values in {EXPECT|ASSERT}_EQ.
3929 // Tests using ::wstring values in {EXPECT|ASSERT}_EQ.
3961 // Tests using char pointers in {EXPECT|ASSERT}_EQ.
3983 // Tests using wchar_t pointers in {EXPECT|ASSERT}_EQ.
4008 // Tests using other types of pointers in {EXPECT|ASSERT}_EQ.
4017 // Tests the FRIEND_TEST macro.
4028 // Declares the friend tests that can access the private member
4034 // Tests that the FRIEND_TEST declaration allows a TEST to access a
4046 // Tests that the FRIEND_TEST declaration allows a TEST_F to access a
4052 // Tests the life cycle of Test objects.
4077 // Tests the life cycle of test objects.
4084 // Tests the life cycle of test objects.
4094 // Tests streaming a user type whose definition and operator << are
4120 // Tests streaming a user type whose definition and operator<< are
4145 // Tests streaming a user type whose definition and operator<< are
4170 // Tests streaming a user type whose definition is in a user namespace
4195 // Tests streaming NULL pointers to testing::Message.
4211 // Tests streaming wide strings to testing::Message.
4235 // This line tests that we can define tests in the testing namespace.
4238 // Tests the TestInfo class.
4254 // Tests TestInfo::test_case_name() and TestInfo::name().
4262 // Tests TestInfo::result().
4273 // Tests setting up and tearing down a test case.
4319 // Some resource to be shared by all tests in this test case.
4336 // The InitGoogleTestTest test case tests testing::InitGoogleTest().
4515 // Tests parsing an empty command line.
4528 // Tests parsing a command line that has no flag.
4543 // Tests parsing a bad --gtest_filter flag.
4560 // Tests parsing an empty --gtest_filter flag.
4576 // Tests parsing a non-empty --gtest_filter flag.
4592 // Tests parsing --gtest_break_on_failure.
4608 // Tests parsing --gtest_break_on_failure=0.
4624 // Tests parsing --gtest_break_on_failure=f.
4640 // Tests parsing --gtest_break_on_failure=F.
4656 // Tests parsing a --gtest_break_on_failure flag that has a "true"
4673 // Tests parsing --gtest_catch_exceptions.
4689 // Tests parsing --gtest_death_test_use_fork.
4705 // Tests having the same flag twice with different values. The
4723 // Tests having an unrecognized flag on the command line.
4745 // Tests having a --gtest_list_tests flag
4761 // Tests having a --gtest_list_tests flag with a "true" value
4777 // Tests having a --gtest_list_tests flag with a "false" value
4793 // Tests parsing --gtest_list_tests=f.
4809 // Tests parsing --gtest_break_on_failure=F.
4825 // Tests parsing --gtest_output (invalid).
4842 // Tests parsing --gtest_output=xml
4858 // Tests parsing --gtest_output=xml:file
4874 // Tests parsing --gtest_output=xml:directory/path/
4890 // Tests having a --gtest_print_time flag
4906 // Tests having a --gtest_print_time flag with a "true" value
4922 // Tests having a --gtest_print_time flag with a "false" value
4938 // Tests parsing --gtest_print_time=f.
4954 // Tests parsing --gtest_print_time=F.
4970 // Tests parsing --gtest_repeat=number
4986 // Tests having a --gtest_also_run_disabled_tests flag
5002 // Tests having a --gtest_also_run_disabled_tests flag with a "true" value
5018 // Tests having a --gtest_also_run_disabled_tests flag with a "false" value
5035 // Tests parsing --gtest_throw_on_failure.
5051 // Tests parsing --gtest_throw_on_failure=0.
5067 // Tests parsing a --gtest_throw_on_failure flag that has a "true"
5085 // Tests parsing wide strings.
5111 // Tests current_test_info() in UnitTest.
5114 // Tests that current_test_info() returns NULL before the first test in
5117 // There should be no tests running at this point.
5121 << "There should be no tests running at this point.";
5124 // Tests that current_test_info() returns NULL after the last test in
5130 << "There should be no tests running at this point.";
5134 // Tests that current_test_info() returns TestInfo for currently running
5147 // Tests that current_test_info() returns TestInfo for currently running
5164 // These two lines test that we can define tests in a namespace that
5182 // Tests that an assertion that should succeed works as expected.
5187 // Tests that an assertion that should fail works as expected.
5196 // Tests that one can call superclass SetUp and TearDown methods--
5198 // No tests are based on this fixture; the test "passes" if it compiles
5210 // StreamingAssertionsTest tests the streaming versions of a representative
5332 // Tests that Google Test correctly decides whether to use colors in the output.