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 std::string &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 ()
 
 TestSuite (const TestSuite &)=delete
 
TestSuiteoperator= (const TestSuite &)=delete
 

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 672 of file gtest.h.

Constructor & Destructor Documentation

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

Definition at line 2967 of file gtest.cc.

testing::TestSuite::~TestSuite ( )
virtual

Definition at line 2979 of file gtest.cc.

testing::TestSuite::TestSuite ( const TestSuite )
privatedelete

Member Function Documentation

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

Definition at line 694 of file gtest.h.

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

Definition at line 698 of file gtest.h.

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

Definition at line 704 of file gtest.h.

int testing::TestSuite::successful_test_count ( ) const

Definition at line 2919 of file gtest.cc.

int testing::TestSuite::skipped_test_count ( ) const

Definition at line 2924 of file gtest.cc.

int testing::TestSuite::failed_test_count ( ) const

Definition at line 2929 of file gtest.cc.

int testing::TestSuite::reportable_disabled_test_count ( ) const

Definition at line 2934 of file gtest.cc.

int testing::TestSuite::disabled_test_count ( ) const

Definition at line 2939 of file gtest.cc.

int testing::TestSuite::reportable_test_count ( ) const

Definition at line 2944 of file gtest.cc.

int testing::TestSuite::test_to_run_count ( ) const

Definition at line 2949 of file gtest.cc.

int testing::TestSuite::total_test_count ( ) const

Definition at line 2954 of file gtest.cc.

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

Definition at line 731 of file gtest.h.

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

Definition at line 734 of file gtest.h.

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

Definition at line 739 of file gtest.h.

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

Definition at line 743 of file gtest.h.

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

Definition at line 2986 of file gtest.cc.

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

Definition at line 751 of file gtest.h.

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

Definition at line 758 of file gtest.h.

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

Definition at line 761 of file gtest.h.

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

Definition at line 2993 of file gtest.cc.

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

Definition at line 770 of file gtest.h.

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

Definition at line 3000 of file gtest.cc.

void testing::TestSuite::ClearResult ( )
private

Definition at line 3108 of file gtest.cc.

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

Definition at line 780 of file gtest.h.

void testing::TestSuite::Run ( )
private

Definition at line 3006 of file gtest.cc.

void testing::TestSuite::Skip ( )
private

Definition at line 3079 of file gtest.cc.

void testing::TestSuite::RunSetUpTestSuite ( )
inlineprivate

Definition at line 792 of file gtest.h.

void testing::TestSuite::RunTearDownTestSuite ( )
inlineprivate

Definition at line 800 of file gtest.h.

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

Definition at line 807 of file gtest.h.

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

Definition at line 812 of file gtest.h.

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

Definition at line 817 of file gtest.h.

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

Definition at line 823 of file gtest.h.

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

Definition at line 828 of file gtest.h.

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

Definition at line 833 of file gtest.h.

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

Definition at line 838 of file gtest.h.

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

Definition at line 3114 of file gtest.cc.

void testing::TestSuite::UnshuffleTests ( )
private

Definition at line 3119 of file gtest.cc.

TestSuite& testing::TestSuite::operator= ( const TestSuite )
privatedelete

Friends And Related Function Documentation

friend class Test
friend

Definition at line 754 of file gtest.h.

friend class internal::UnitTestImpl
friend

Definition at line 755 of file gtest.h.

Member Data Documentation

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

Definition at line 849 of file gtest.h.

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

Definition at line 852 of file gtest.h.

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

Definition at line 855 of file gtest.h.

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

Definition at line 859 of file gtest.h.

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

Definition at line 861 of file gtest.h.

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

Definition at line 863 of file gtest.h.

bool testing::TestSuite::should_run_
private

Definition at line 865 of file gtest.h.

TimeInMillis testing::TestSuite::start_timestamp_
private

Definition at line 867 of file gtest.h.

TimeInMillis testing::TestSuite::elapsed_time_
private

Definition at line 869 of file gtest.h.

TestResult testing::TestSuite::ad_hoc_test_result_
private

Definition at line 872 of file gtest.h.


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