class TestSuite

Defined at line 672 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h

A test suite, which consists of a vector of TestInfos.

TestSuite is not copyable.

Public Methods

void TestSuite (const std::string & name, const char * a_type_param, internal::SetUpTestSuiteFunc set_up_tc, internal::TearDownTestSuiteFunc tear_down_tc)

Creates a TestSuite with the given name.

TestSuite does NOT have a default constructor. Always use this

constructor to create a TestSuite object.

Arguments:

name: name of the test suite

a_type_param: the name of the test's type parameter, or NULL if

this is not a type-parameterized test.

set_up_tc: pointer to the function that sets up the test suite

tear_down_tc: pointer to the function that tears down the test suite

const char * name ()

Gets the name of the TestSuite.

Defined at line 694 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

type-parameterized test suite.

Defined at line 698 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h

bool should_run ()

Returns true if any test in this test suite should run.

Defined at line 704 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h

bool Passed ()

Returns true if and only if the test suite passed.

Defined at line 731 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h

bool Failed ()

Returns true if and only if the test suite failed.

Defined at line 734 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h

void ~TestSuite ()

Destructor of TestSuite.

int successful_test_count ()

Gets the number of successful tests in this test suite.

int skipped_test_count ()

Gets the number of skipped tests in this test suite.

int failed_test_count ()

Gets the number of failed tests in this test suite.

int reportable_disabled_test_count ()

Gets the number of disabled tests that will be reported in the XML report.

int disabled_test_count ()

Gets the number of disabled tests in this test suite.

TimeInMillis elapsed_time ()

Returns the elapsed time, in milliseconds.

Defined at line 739 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h

int reportable_test_count ()

Gets the number of tests to be printed in the XML report.

TimeInMillis start_timestamp ()

Gets the time of the test suite start, in ms from the start of the

UNIX epoch.

Defined at line 743 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h

int test_to_run_count ()

Get the number of tests in this test suite that should run.

int total_test_count ()

Gets the number of all tests in this test suite.

const TestInfo * GetTestInfo (int i)

Returns the i-th test among all the tests. i can range from 0 to

total_test_count() - 1. If i is not in that range, returns NULL.

const TestResult & ad_hoc_test_result ()

Returns the TestResult that holds test properties recorded during

execution of SetUpTestSuite and TearDownTestSuite.

Defined at line 751 of file ../../third_party/googletest/src/googletest/include/gtest/gtest.h

Friends

class UnitTestImpl
class Test