Lines Matching defs:test

148 // A test whose test case name or test name matches this filter is
152 // A test case whose name matches this filter is considered a death
153 // test case and will be run before test cases whose name doesn't
157 // A test filter that matches everything.
163 // The environment variable name for the test shard index.
165 // The environment variable name for the total number of test shards.
167 // The environment variable name for the test shard status file.
196 " should catch exceptions and treat them as test failures.");
212 "exclude). A test is run if it matches one of the positive "
226 "within that directory, with file-names based on the test "
239 "Random number seed to use when shuffling test orders. Must be in range "
245 "How many times to repeat each test. Specify a negative number "
251 "printing test failure stack traces.");
269 "test results. Example: \"localhost:555\". The flag is effective only on "
323 // Returns true iff the test case passed.
328 // Returns true iff the test case failed.
333 // Returns true iff test_case contains at least one test that should
432 // works well enough for matching test names, which are short.
472 // Returns true iff the user-specified filter matches the test case
473 // name and the test name.
499 // test if any pattern in it matches the test.
534 // The c'tor sets this object as the test part result reporter used by
544 // The c'tor sets this object as the test part result reporter used by
565 // The d'tor restores the test part result reporter used by Google Test
576 // Increments the test part result count and remembers the result.
591 // from user test code. GetTestTypeId() is guaranteed to always
602 // This predicate-formatter checks that 'results' contains a test part
642 // test part results, what type of failure we expect, and what
677 // Returns the global test part result reporter.
684 // Sets the global test part result reporter.
691 // Returns the test part result reporter for the current thread.
697 // Sets the test part result reporter for the current thread.
703 // Gets the number of successful test cases.
708 // Gets the number of failed test cases.
713 // Gets the number of all test cases.
718 // Gets the number of all test cases that contain at least one test
1783 // Returns the i-th test part result among all the results. i can
1792 // Returns the i-th test property. i can range from 0 to
1801 // Clears the test part results.
1806 // Adds a test part result to the list.
1811 // Adds a test property to the list. If a property with the same key as the
1852 // Returns true iff the test failed.
1861 // Returns true iff the test part fatally failed.
1866 // Returns true iff the test fatally failed.
1871 // Returns true iff the test part non-fatally failed.
1876 // Returns true iff the test has a non-fatal failure.
1881 // Gets the number of all test parts. This is the sum of the number
1882 // of successful test parts and the number of failed test parts.
1887 // Returns the number of the test properties.
1906 // Sets up the test fixture.
1912 // Tears down the test fixture.
1946 // Google Test requires all tests in the same test case to use the same test
1947 // fixture class. This function checks if the current test has the
1948 // same fixture class as the first test in the current test case. If
1955 // Info about the first test in the current test case.
1960 // Info about the current test.
1966 // Is the first test defined using TEST?
1968 // Is this test defined using TEST?
1972 // The user mixed TEST and TEST_F in this test case - we'll tell
1984 << "All tests in the same test case must use the same test fixture\n"
1985 << "class, so mixing TEST_F and TEST in the same test case is\n"
1986 << "illegal. In test case " << this_test_info->test_case_name()
1988 << "test " << TEST_F_name << " is defined using TEST_F but\n"
1989 << "test " << TEST_name << " is defined using TEST. You probably\n"
1990 << "want to change the TEST to TEST_F or move it to another test\n"
1996 << "All tests in the same test case must use the same test fixture\n"
1997 << "class. However, in test case "
1999 << "you defined test " << first_test_name
2000 << " and test " << this_test_name << "\n"
2001 << "using two different test fixture classes. This can happen if\n"
2004 << "of the classes to put the tests into different test cases.";
2014 // Adds an "exception thrown" fatal failure to the current test. This
2031 // Adds an "exception thrown" fatal failure to the current test.
2107 // // Perform the test method.
2120 // throw statement in the code under test. For this reason, we perform
2128 // This exception doesn't originate in code under test. It makes no
2129 // sense to report it as a test failure.
2151 // Runs the test and updates the test result.
2158 // We will run the test only if SetUp() was successful.
2162 this, &Test::TestBody, "the test body");
2166 // always call TearDown(), even if SetUp() or the test body has
2173 // Returns true iff the current test has a fatal failure.
2178 // Returns true iff the current test has a non-fatal failure.
2186 // Constructs a TestInfo object. It assumes ownership of the test factory
2217 // test_case_name: name of the test case
2218 // name: name of the test
2219 // type_param: the name of the test's type parameter, or NULL if
2220 // this is not a typed or a type-parameterized test.
2221 // value_param: text representation of the test's value parameter,
2222 // or NULL if this is not a value-parameterized test.
2223 // fixture_class_id: ID of the test fixture class
2224 // set_up_tc: pointer to the function that sets up the test case
2225 // tear_down_tc: pointer to the function that tears down the test case
2226 // factory: pointer to the factory that creates a test object.
2249 << "Attempted redefinition of test case " << test_case_name << ".\n"
2250 << "All tests in the same test case must use the same test fixture\n"
2251 << "class. However, in test case " << test_case_name << ", you tried\n"
2252 << "to define a test using a fixture class different from the one\n"
2256 << "test cases.";
2281 // Creates the test object, runs it, records its result, and then
2286 // Tells UnitTest where to store test result.
2292 // Notifies the unit test event listeners that a test is about to start.
2299 // Creates the test object.
2300 Test* const test = internal::HandleExceptionsInMethodIfSupported(
2302 "the test fixture's constructor");
2304 // Runs the test only if the test object was created and its
2306 if ((test != NULL) && !Test::HasFatalFailure()) {
2309 test->Run();
2312 // Deletes the test object.
2315 test, &Test::DeleteSelf_, "the test fixture's destructor");
2319 // Notifies the unit test event listener that a test has just finished.
2323 // test.
2329 // Gets the number of successful tests in this test case.
2334 // Gets the number of failed tests in this test case.
2343 // Get the number of tests in this test case that should run.
2357 // name: name of the test case
2358 // a_type_param: the name of the test case's type parameter, or NULL if
2359 // this is not a typed or a type-parameterized test case.
2360 // set_up_tc: pointer to the function that sets up the test case
2361 // tear_down_tc: pointer to the function that tears down the test case
2379 // Returns the i-th test among all the tests. i can range from 0 to
2386 // Returns the i-th test among all the tests. i can range from 0 to
2393 // Adds a test to this test case. Will delete the test upon
2400 // Runs every test in this TestCase.
2428 // Clears the results of all tests in this test case.
2433 // Shuffles the tests in this test case.
2438 // Restores the test order to before the first shuffle.
2459 return FormatCountableNoun(test_count, "test", "tests");
2462 // Formats the count of test cases.
2464 return FormatCountableNoun(test_case_count, "test case", "test cases");
2470 // between the two when viewing the test result.
2505 // If the test program runs in Visual Studio or a debugger, the
2506 // following statements add the test part result message to the Output
2661 static void PrintTestName(const char * test_case, const char * test) {
2662 printf("%s.%s", test_case, test);
2704 "Note: This is test shard %d of %s.\n",
2725 printf("Global test environment set-up.\n");
2732 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
2753 // If the test part succeeded, we don't need to do anything.
2786 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
2797 printf("Global test environment tear-down\n");
2877 // in death test child processes.
2897 // in death test child processes.
3031 // Produces a string representing the test properties in a result as space
3053 // Called after the unit test ends.
3158 // <testcase name="test-name"> <-- corresponds to a TestInfo object
3284 // Produces a string representing the test properties in a result as space
3301 // Streams test results to the given port on the given host machine.
3324 // test iteration, not for the entire test program.
3411 // arbitrarily long test failure message and stack trace.
3626 // Gets the number of successful test cases.
3631 // Gets the number of failed test cases.
3636 // Gets the number of all test cases.
3641 // Gets the number of all test cases that contain at least one test
3671 // Returns true iff the unit test passed (i.e. all test cases passed).
3674 // Returns true iff the unit test failed (i.e. some test case failed
3678 // Gets the i-th test case among all the test cases. i can range from 0 to
3684 // Gets the i-th test case among all the test cases. i can range from 0 to
3696 // Registers and returns a global test environment. When a test
3697 // program is run, all global test environments will be set-up in the
3699 // finished, all global test environments will be torn-down in the
3800 // tests or this is executing in the context of death test child
3812 // Death test children can be terminated with _abort(). On Windows,
3842 "auxiliary test code (environments or event listeners)") ? 0 : 1;
3851 // Returns the TestCase object for the test that's currently running,
3852 // or NULL if no test is running.
3859 // Returns the TestInfo object for the test that's currently running,
3860 // or NULL if no test is running.
3867 // Returns the random seed used at the start of the current test run.
3957 // Disables event forwarding if the control is currently in a death test
3980 // Initializes event listeners for streaming test results in String form.
4023 // Configures listeners for streaming test results to the specified server.
4059 // test_case_name: name of the test case
4060 // type_param: the name of the test case's type parameter, or NULL if
4061 // this is not a typed or a type-parameterized test case.
4062 // set_up_tc: pointer to the function that sets up the test case
4063 // tear_down_tc: pointer to the function that tears down the test case
4080 // Is this a death test case?
4083 // Yes. Inserts the test case after the last death test case
4084 // defined so far. This only works when the test cases haven't
4085 // been shuffled. Otherwise we may end up running a death test
4086 // after a non-death test.
4106 // thrown during a test, the test is considered to be failed, but the
4117 "\nThis test program did NOT call ::testing::InitGoogleTest "
4122 // Do not run any test if the --help flag was specified.
4130 // Even if sharding is not on, test runners may want to use the
4131 // GTEST_SHARD_STATUS_FILE to query whether the test supports the sharding
4136 // death test.
4146 // Compares the full test names with the filter to decide which
4162 // True iff at least one test has failed.
4170 // when we are inside the subprocess of a death test.
4175 // We want to preserve failures generated by ad-hoc test
4181 // Shuffles test cases and tests if requested.
4185 // such that a test event listener can see the actual test order
4190 // Tells the unit test event listeners that the tests are about to start.
4193 // Runs each test case if there is at least one test to run.
4218 // Tells the unit test event listener that the tests have just finished.
4226 // Restores the original test order after the iteration. This
4255 "Could not write to the test shard status file \"%s\" "
4269 // disabled because it must only be applied to the original test
4330 // Given the total number of shards, the shard index, and the test id,
4331 // returns true iff the test should be run on this shard. The test id is
4332 // some arbitrary but unique non-negative integer assigned to each test
4338 // Compares the name of each test with the user-specified filter to
4339 // decide whether the test should be run, then records the result in
4365 // A test is disabled if test case name or test name matches
4443 // Returns the TestResult for the test that's currently running, or
4444 // the TestResult for the ad hoc test if no test is running.
4450 // Shuffles all test cases, and the tests within each test case,
4453 // Shuffles the death test cases.
4456 // Shuffles the non-death test cases.
4460 // Shuffles the tests inside each test case.
4466 // Restores the test cases and tests to their order before the first shuffle.
4469 // Unshuffles the tests in each test case.
4471 // Resets the index of each test case.
4694 " Random number seed to use for shuffling test orders (between 1 and\n"
4701 " Don't print the elapsed time of each test.\n"
4708 " Stream test results to the given server.\n"
4714 " Set the default death test style.\n"
4721 " Do not report exceptions as test failures. Instead, allow them\n"