class TestInfo
Defined at line 533 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
A TestInfo object stores the following information about a test:
Test suite name
Test name
Whether the test should be run
A function pointer that creates the test object when invoked
Test result
The constructor of TestInfo registers itself with the UnitTest
singleton such that the RUN_ALL_TESTS() macro knows which tests to
run.
Public Methods
const char * test_suite_name ()
Returns the test suite name.
Defined at line 540 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
const char * test_case_name ()
Defined at line 544 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
const char * name ()
Returns the test name.
Defined at line 548 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
const char * type_param ()
Returns the name of the parameter type, or NULL if this is not a typed
or a type-parameterized test.
Defined at line 552 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
const char * value_param ()
Returns the text representation of the value parameter, or NULL if this
is not a value-parameterized test.
Defined at line 559 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
const char * file ()
Returns the file name where this test is defined.
Defined at line 565 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
int line ()
Returns the line where this test is defined.
Defined at line 568 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
bool is_in_another_shard ()
Return true if this test should not be run because it's in another shard.
Defined at line 571 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
bool should_run ()
Returns true if this test should run, that is if the test is not
disabled (or it is disabled but the also_run_disabled_tests flag has
been specified) and its full name matches the user-specified filter.
Google Test allows the user to filter the tests by their full names.
The full name of a test Bar in test suite Foo is defined as
"Foo.Bar". Only the tests that match the filter will run.
A filter is a colon-separated list of glob (not regex) patterns,
optionally followed by a '-' and a colon-separated list of
negative patterns (tests to exclude). A test is run if it
matches one of the positive patterns and does not match any of
the negative patterns.
For example, *A*:Foo.* is a filter that matches any string that
contains the character 'A' or starts with "Foo.".
Defined at line 589 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
bool is_reportable ()
Returns true if and only if this test will appear in the XML report.
Defined at line 592 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
const TestResult * result ()
Returns the result of the test.
Defined at line 599 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h
void ~TestInfo ()
Destructs a TestInfo object. This function is not virtual, so
don't inherit from TestInfo.
Friends
TestInfo * TestInfo (std::string test_suite_name, const char * name, const char * type_param, const char * value_param, internal::CodeLocation code_location, internal::TypeId fixture_class_id, internal::SetUpTestSuiteFunc set_up_tc, internal::TearDownTestSuiteFunc tear_down_tc, internal::TestFactoryBase * factory)
class StreamingListenerTest
class UnitTestImpl
class TestSuite
class Test
class DefaultDeathTestFactory