Lines Matching defs:test

158 // A test whose test case name or test name matches this filter is
162 // A test case whose name matches this filter is considered a death
163 // test case and will be run before test cases whose name doesn't
167 // A test filter that matches everything.
173 // The environment variable name for the test shard index.
175 // The environment variable name for the total number of test shards.
177 // The environment variable name for the test shard status file.
216 " should catch exceptions and treat them as test failures.");
232 "exclude). A test is run if it matches one of the positive "
246 "within that directory, with file-names based on the test "
259 "Random number seed to use when shuffling test orders. Must be in range "
265 "How many times to repeat each test. Specify a negative number "
271 "printing test failure stack traces.");
289 "test results. Example: \"localhost:555\". The flag is effective only on "
344 // Returns true iff the test case passed.
349 // Returns true iff the test case failed.
354 // Returns true iff test_case contains at least one test that should
461 // works well enough for matching test names, which are short.
500 // Returns true iff the user-specified filter matches the test case
501 // name and the test name.
525 // test if any pattern in it matches the test.
560 // The c'tor sets this object as the test part result reporter used by
570 // The c'tor sets this object as the test part result reporter used by
591 // The d'tor restores the test part result reporter used by Google Test
602 // Increments the test part result count and remembers the result.
617 // from user test code. GetTestTypeId() is guaranteed to always
628 // This predicate-formatter checks that 'results' contains a test part
668 // test part results, what type of failure we expect, and what
703 // Returns the global test part result reporter.
710 // Sets the global test part result reporter.
717 // Returns the test part result reporter for the current thread.
723 // Sets the test part result reporter for the current thread.
729 // Gets the number of successful test cases.
734 // Gets the number of failed test cases.
739 // Gets the number of all test cases.
744 // Gets the number of all test cases that contain at least one test
2026 // Returns the i-th test part result among all the results. i can
2035 // Returns the i-th test property. i can range from 0 to
2044 // Clears the test part results.
2049 // Adds a test part result to the list.
2054 // Adds a test property to the list. If a property with the same key as the
2169 // Returns true iff the test failed.
2178 // Returns true iff the test part fatally failed.
2183 // Returns true iff the test fatally failed.
2188 // Returns true iff the test part non-fatally failed.
2193 // Returns true iff the test has a non-fatal failure.
2198 // Gets the number of all test parts. This is the sum of the number
2199 // of successful test parts and the number of failed test parts.
2204 // Returns the number of the test properties.
2224 // Sets up the test fixture.
2230 // Tears down the test fixture.
2264 // Google Test requires all tests in the same test case to use the same test
2265 // fixture class. This function checks if the current test has the
2266 // same fixture class as the first test in the current test case. If
2273 // Info about the first test in the current test case.
2278 // Info about the current test.
2284 // Is the first test defined using TEST?
2286 // Is this test defined using TEST?
2290 // Both TEST and TEST_F appear in same test case, which is incorrect.
2302 << "All tests in the same test case must use the same test fixture\n"
2303 << "class, so mixing TEST_F and TEST in the same test case is\n"
2304 << "illegal. In test case " << this_test_info->test_case_name()
2306 << "test " << TEST_F_name << " is defined using TEST_F but\n"
2307 << "test " << TEST_name << " is defined using TEST. You probably\n"
2308 << "want to change the TEST to TEST_F or move it to another test\n"
2314 << "All tests in the same test case must use the same test fixture\n"
2315 << "class. However, in test case "
2317 << "you defined test " << first_test_name
2318 << " and test " << this_test_name << "\n"
2319 << "using two different test fixture classes. This can happen if\n"
2322 << "of the classes to put the tests into different test cases.";
2332 // Adds an "exception thrown" fatal failure to the current test. This
2351 // Adds an "exception thrown" fatal failure to the current test.
2419 // // Perform the test method.
2432 // throw statement in the code under test. For this reason, we perform
2464 // Runs the test and updates the test result.
2471 // We will run the test only if SetUp() was successful.
2475 this, &Test::TestBody, "the test body");
2479 // always call TearDown(), even if SetUp() or the test body has
2486 // Returns true iff the current test has a fatal failure.
2491 // Returns true iff the current test has a non-fatal failure.
2499 // Constructs a TestInfo object. It assumes ownership of the test factory
2530 // test_case_name: name of the test case
2531 // name: name of the test
2532 // type_param: the name of the test's type parameter, or NULL if
2533 // this is not a typed or a type-parameterized test.
2534 // value_param: text representation of the test's value parameter,
2535 // or NULL if this is not a value-parameterized test.
2536 // code_location: code location where the test is defined
2537 // fixture_class_id: ID of the test fixture class
2538 // set_up_tc: pointer to the function that sets up the test case
2539 // tear_down_tc: pointer to the function that tears down the test case
2540 // factory: pointer to the factory that creates a test object.
2565 << "Attempted redefinition of test case " << test_case_name << ".\n"
2566 << "All tests in the same test case must use the same test fixture\n"
2567 << "class. However, in test case " << test_case_name << ", you tried\n"
2568 << "to define a test using a fixture class different from the one\n"
2572 << "test cases.";
2585 // A predicate that checks the test name of a TestInfo against a known
2601 // Returns true iff the test name of test_info matches name_.
2628 // Creates the test object, runs it, records its result, and then
2633 // Tells UnitTest where to store test result.
2639 // Notifies the unit test event listeners that a test is about to start.
2646 // Creates the test object.
2647 Test* const test = internal::HandleExceptionsInMethodIfSupported(
2649 "the test fixture's constructor");
2651 // Runs the test only if the test object was created and its
2653 if ((test != NULL) && !Test::HasFatalFailure()) {
2656 test->Run();
2659 // Deletes the test object.
2662 test, &Test::DeleteSelf_, "the test fixture's destructor");
2666 // Notifies the unit test event listener that a test has just finished.
2670 // test.
2676 // Gets the number of successful tests in this test case.
2681 // Gets the number of failed tests in this test case.
2691 // Gets the number of disabled tests in this test case.
2701 // Get the number of tests in this test case that should run.
2715 // name: name of the test case
2716 // a_type_param: the name of the test case's type parameter, or NULL if
2717 // this is not a typed or a type-parameterized test case.
2718 // set_up_tc: pointer to the function that sets up the test case
2719 // tear_down_tc: pointer to the function that tears down the test case
2737 // Returns the i-th test among all the tests. i can range from 0 to
2744 // Returns the i-th test among all the tests. i can range from 0 to
2751 // Adds a test to this test case. Will delete the test upon
2758 // Runs every test in this TestCase.
2786 // Clears the results of all tests in this test case.
2792 // Shuffles the tests in this test case.
2797 // Restores the test order to before the first shuffle.
2818 return FormatCountableNoun(test_count, "test", "tests");
2821 // Formats the count of test cases.
2823 return FormatCountableNoun(test_case_count, "test case", "test cases");
2829 // between the two when viewing the test result.
2865 // If the test program runs in Visual Studio or a debugger, the
2866 // following statements add the test part result message to the Output
3005 // output to label the type parameter and value parameter for a test.
3032 static void PrintTestName(const char * test_case, const char * test) {
3033 printf("%s.%s", test_case, test);
3073 "Note: This is test shard %d of %s.\n",
3094 printf("Global test environment set-up.\n");
3100 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
3121 // If the test part succeeded, we don't need to do anything.
3153 FormatCountableNoun(test_case.test_to_run_count(), "test", "tests");
3164 printf("Global test environment tear-down\n");
3244 // in death test child processes.
3264 // in death test child processes.
3409 // Produces a string representing the test properties in a result as space
3431 // Called after the unit test ends.
3540 // <testcase name="test-name"> <-- corresponds to a TestInfo object
3739 // Produces a string representing the test properties in a result as space
3760 // arbitrarily long test failure message and stack trace.
3867 // don't want to fail the test because of this.
3993 // Gets the number of successful test cases.
3998 // Gets the number of failed test cases.
4003 // Gets the number of all test cases.
4008 // Gets the number of all test cases that contain at least one test
4043 // Gets the time of the test program start, in ms from the start of the
4054 // Returns true iff the unit test passed (i.e. all test cases passed).
4057 // Returns true iff the unit test failed (i.e. some test case failed
4061 // Gets the i-th test case among all the test cases. i can range from 0 to
4067 // Returns the TestResult containing information on test failures and
4068 // properties logged outside of individual test cases.
4073 // Gets the i-th test case among all the test cases. i can range from 0 to
4085 // Registers and returns a global test environment. When a test
4086 // program is run, all global test environments will be set-up in the
4088 // finished, all global test environments will be torn-down in the
4171 // inside a test, to current TestCase's ad_hoc_test_result_ when invoked
4189 // Google Test implements this protocol for catching that a test
4197 // This allows a test runner to set TEST_PREMATURE_EXIT_FILE before
4198 // running a Google-Test-based test program and check the existence
4199 // of the file at the end of the test execution to see if it has
4202 // If we are in the child process of a death test, don't
4207 // premature-exit file will be left undeleted, causing a test runner
4209 // test as having failed.
4220 // tests or this is executing in the context of death test child
4231 // Death test children can be terminated with _abort(). On Windows,
4260 "auxiliary test code (environments or event listeners)") ? 0 : 1;
4269 // Returns the TestCase object for the test that's currently running,
4270 // or NULL if no test is running.
4277 // Returns the TestInfo object for the test that's currently running,
4278 // or NULL if no test is running.
4285 // Returns the random seed used at the start of the current test run.
4368 // context of a test, to current test case's ad_hoc_test_result when invoke
4390 // Disables event forwarding if the control is currently in a death test
4413 // Initializes event listeners for streaming test results in string form.
4461 // Configures listeners for streaming test results to the specified server.
4497 // test_case_name: name of the test case
4498 // type_param: the name of the test case's type parameter, or NULL if
4499 // this is not a typed or a type-parameterized test case.
4500 // set_up_tc: pointer to the function that sets up the test case
4501 // tear_down_tc: pointer to the function that tears down the test case
4518 // Is this a death test case?
4521 // Yes. Inserts the test case after the last death test case
4522 // defined so far. This only works when the test cases haven't
4523 // been shuffled. Otherwise we may end up running a death test
4524 // after a non-death test.
4544 // thrown during a test, the test is considered to be failed, but the
4555 "\nThis test program did NOT call ::testing::InitGoogleTest "
4560 // Do not run any test if the --help flag was specified.
4568 // Even if sharding is not on, test runners may want to use the
4569 // GTEST_SHARD_STATUS_FILE to query whether the test supports the sharding
4574 // death test.
4589 // Compares the full test names with the filter to decide which
4605 // True iff at least one test has failed.
4614 // when we are inside the subprocess of a death test.
4619 // We want to preserve failures generated by ad-hoc test
4625 // Shuffles test cases and tests if requested.
4629 // such that a test event listener can see the actual test order
4634 // Tells the unit test event listeners that the tests are about to start.
4637 // Runs each test case if there is at least one test to run.
4662 // Tells the unit test event listener that the tests have just finished.
4670 // Restores the original test order after the iteration. This
4699 "Could not write to the test shard status file \"%s\" "
4713 // disabled because it must only be applied to the original test
4774 // Given the total number of shards, the shard index, and the test id,
4775 // returns true iff the test should be run on this shard. The test id is
4776 // some arbitrary but unique non-negative integer assigned to each test
4782 // Compares the name of each test with the user-specified filter to
4783 // decide whether the test should be run, then records the result in
4809 // A test is disabled if test case name or test name matches
4930 // Returns the TestResult for the test that's currently running, or
4931 // the TestResult for the ad hoc test if no test is running.
4937 // Shuffles all test cases, and the tests within each test case,
4940 // Shuffles the death test cases.
4943 // Shuffles the non-death test cases.
4947 // Shuffles the tests inside each test case.
4953 // Restores the test cases and tests to their order before the first shuffle.
4956 // Unshuffles the tests in each test case.
4958 // Resets the index of each test case.
5181 " Random number seed to use for shuffling test orders (between 1 and\n"
5188 " Don't print the elapsed time of each test.\n"
5195 " Stream test results to the given server.\n"
5201 " Set the default death test style.\n"
5208 " Do not report exceptions as test failures. Instead, allow them\n"