Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
testing::TestSuite Class Reference

#include <gtest.h>

Public Member Functions

 TestSuite (const char *name, const char *a_type_param, internal::SetUpTestSuiteFunc set_up_tc, internal::TearDownTestSuiteFunc tear_down_tc)
 
virtual ~TestSuite ()
 
const char * name () const
 
const char * type_param () const
 
bool should_run () const
 
int successful_test_count () const
 
int skipped_test_count () const
 
int failed_test_count () const
 
int reportable_disabled_test_count () const
 
int disabled_test_count () const
 
int reportable_test_count () const
 
int test_to_run_count () const
 
int total_test_count () const
 
bool Passed () const
 
bool Failed () const
 
TimeInMillis elapsed_time () const
 
TimeInMillis start_timestamp () const
 
const TestInfoGetTestInfo (int i) const
 
const TestResultad_hoc_test_result () const
 

Private Member Functions

std::vector< TestInfo * > & test_info_list ()
 
const std::vector< TestInfo * > & test_info_list () const
 
TestInfoGetMutableTestInfo (int i)
 
void set_should_run (bool should)
 
void AddTestInfo (TestInfo *test_info)
 
void ClearResult ()
 
void Run ()
 
void Skip ()
 
void RunSetUpTestSuite ()
 
void RunTearDownTestSuite ()
 
void ShuffleTests (internal::Random *random)
 
void UnshuffleTests ()
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (TestSuite)
 

Static Private Member Functions

static void ClearTestSuiteResult (TestSuite *test_suite)
 
static bool TestPassed (const TestInfo *test_info)
 
static bool TestSkipped (const TestInfo *test_info)
 
static bool TestFailed (const TestInfo *test_info)
 
static bool TestReportableDisabled (const TestInfo *test_info)
 
static bool TestDisabled (const TestInfo *test_info)
 
static bool TestReportable (const TestInfo *test_info)
 
static bool ShouldRunTest (const TestInfo *test_info)
 

Private Attributes

std::string name_
 
const std::unique_ptr< const
::std::string > 
type_param_
 
std::vector< TestInfo * > test_info_list_
 
std::vector< int > test_indices_
 
internal::SetUpTestSuiteFunc set_up_tc_
 
internal::TearDownTestSuiteFunc tear_down_tc_
 
bool should_run_
 
TimeInMillis start_timestamp_
 
TimeInMillis elapsed_time_
 
TestResult ad_hoc_test_result_
 

Friends

class Test
 
class internal::UnitTestImpl
 

Detailed Description

Definition at line 841 of file gtest.h.

Constructor & Destructor Documentation

testing::TestSuite::TestSuite ( const char *  name,
const char *  a_type_param,
internal::SetUpTestSuiteFunc  set_up_tc,
internal::TearDownTestSuiteFunc  tear_down_tc 
)

Definition at line 2960 of file gtest.cc.

testing::TestSuite::~TestSuite ( )
virtual

Definition at line 2972 of file gtest.cc.

Member Function Documentation

const char* testing::TestSuite::name ( ) const
inline

Definition at line 863 of file gtest.h.

const char* testing::TestSuite::type_param ( ) const
inline

Definition at line 867 of file gtest.h.

bool testing::TestSuite::should_run ( ) const
inline

Definition at line 873 of file gtest.h.

int testing::TestSuite::successful_test_count ( ) const

Definition at line 2912 of file gtest.cc.

int testing::TestSuite::skipped_test_count ( ) const

Definition at line 2917 of file gtest.cc.

int testing::TestSuite::failed_test_count ( ) const

Definition at line 2922 of file gtest.cc.

int testing::TestSuite::reportable_disabled_test_count ( ) const

Definition at line 2927 of file gtest.cc.

int testing::TestSuite::disabled_test_count ( ) const

Definition at line 2932 of file gtest.cc.

int testing::TestSuite::reportable_test_count ( ) const

Definition at line 2937 of file gtest.cc.

int testing::TestSuite::test_to_run_count ( ) const

Definition at line 2942 of file gtest.cc.

int testing::TestSuite::total_test_count ( ) const

Definition at line 2947 of file gtest.cc.

bool testing::TestSuite::Passed ( ) const
inline

Definition at line 900 of file gtest.h.

bool testing::TestSuite::Failed ( ) const
inline

Definition at line 903 of file gtest.h.

TimeInMillis testing::TestSuite::elapsed_time ( ) const
inline

Definition at line 908 of file gtest.h.

TimeInMillis testing::TestSuite::start_timestamp ( ) const
inline

Definition at line 912 of file gtest.h.

const TestInfo * testing::TestSuite::GetTestInfo ( int  i) const

Definition at line 2979 of file gtest.cc.

const TestResult& testing::TestSuite::ad_hoc_test_result ( ) const
inline

Definition at line 920 of file gtest.h.

std::vector<TestInfo*>& testing::TestSuite::test_info_list ( )
inlineprivate

Definition at line 927 of file gtest.h.

const std::vector<TestInfo*>& testing::TestSuite::test_info_list ( ) const
inlineprivate

Definition at line 930 of file gtest.h.

TestInfo * testing::TestSuite::GetMutableTestInfo ( int  i)
private

Definition at line 2986 of file gtest.cc.

void testing::TestSuite::set_should_run ( bool  should)
inlineprivate

Definition at line 939 of file gtest.h.

void testing::TestSuite::AddTestInfo ( TestInfo test_info)
private

Definition at line 2993 of file gtest.cc.

void testing::TestSuite::ClearResult ( )
private

Definition at line 3075 of file gtest.cc.

static void testing::TestSuite::ClearTestSuiteResult ( TestSuite test_suite)
inlinestaticprivate

Definition at line 949 of file gtest.h.

void testing::TestSuite::Run ( )
private

Definition at line 2999 of file gtest.cc.

void testing::TestSuite::Skip ( )
private

Definition at line 3045 of file gtest.cc.

void testing::TestSuite::RunSetUpTestSuite ( )
inlineprivate

Definition at line 961 of file gtest.h.

void testing::TestSuite::RunTearDownTestSuite ( )
inlineprivate

Definition at line 969 of file gtest.h.

static bool testing::TestSuite::TestPassed ( const TestInfo test_info)
inlinestaticprivate

Definition at line 976 of file gtest.h.

static bool testing::TestSuite::TestSkipped ( const TestInfo test_info)
inlinestaticprivate

Definition at line 981 of file gtest.h.

static bool testing::TestSuite::TestFailed ( const TestInfo test_info)
inlinestaticprivate

Definition at line 986 of file gtest.h.

static bool testing::TestSuite::TestReportableDisabled ( const TestInfo test_info)
inlinestaticprivate

Definition at line 992 of file gtest.h.

static bool testing::TestSuite::TestDisabled ( const TestInfo test_info)
inlinestaticprivate

Definition at line 997 of file gtest.h.

static bool testing::TestSuite::TestReportable ( const TestInfo test_info)
inlinestaticprivate

Definition at line 1002 of file gtest.h.

static bool testing::TestSuite::ShouldRunTest ( const TestInfo test_info)
inlinestaticprivate

Definition at line 1007 of file gtest.h.

void testing::TestSuite::ShuffleTests ( internal::Random random)
private

Definition at line 3081 of file gtest.cc.

void testing::TestSuite::UnshuffleTests ( )
private

Definition at line 3086 of file gtest.cc.

testing::TestSuite::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( TestSuite  )
private

Friends And Related Function Documentation

friend class Test
friend

Definition at line 923 of file gtest.h.

friend class internal::UnitTestImpl
friend

Definition at line 924 of file gtest.h.

Member Data Documentation

std::string testing::TestSuite::name_
private

Definition at line 1018 of file gtest.h.

const std::unique_ptr<const ::std::string> testing::TestSuite::type_param_
private

Definition at line 1021 of file gtest.h.

std::vector<TestInfo*> testing::TestSuite::test_info_list_
private

Definition at line 1024 of file gtest.h.

std::vector<int> testing::TestSuite::test_indices_
private

Definition at line 1028 of file gtest.h.

internal::SetUpTestSuiteFunc testing::TestSuite::set_up_tc_
private

Definition at line 1030 of file gtest.h.

internal::TearDownTestSuiteFunc testing::TestSuite::tear_down_tc_
private

Definition at line 1032 of file gtest.h.

bool testing::TestSuite::should_run_
private

Definition at line 1034 of file gtest.h.

TimeInMillis testing::TestSuite::start_timestamp_
private

Definition at line 1036 of file gtest.h.

TimeInMillis testing::TestSuite::elapsed_time_
private

Definition at line 1038 of file gtest.h.

TestResult testing::TestSuite::ad_hoc_test_result_
private

Definition at line 1041 of file gtest.h.


The documentation for this class was generated from the following files: