Monero
Loading...
Searching...
No Matches
TestCase Class Reference

#include <gtest.h>

Collaboration diagram for TestCase:

Public Member Functions

 TestCase (const char *name, const char *a_type_param, Test::SetUpTestCaseFunc set_up_tc, Test::TearDownTestCaseFunc tear_down_tc)
 TestCase (const char *name, const char *a_type_param, Test::SetUpTestCaseFunc set_up_tc, Test::TearDownTestCaseFunc tear_down_tc)
virtual ~TestCase ()
virtual ~TestCase ()
const char * name () const
const char * name () const
const char * type_param () const
const char * type_param () const
bool should_run () const
bool should_run () const
int successful_test_count () const
int successful_test_count () const
int failed_test_count () const
int failed_test_count () const
int reportable_disabled_test_count () const
int reportable_disabled_test_count () const
int disabled_test_count () const
int disabled_test_count () const
int reportable_test_count () const
int reportable_test_count () const
int test_to_run_count () const
int test_to_run_count () const
int total_test_count () const
int total_test_count () const
bool Passed () const
bool Passed () const
bool Failed () const
bool Failed () const
TimeInMillis elapsed_time () const
TimeInMillis elapsed_time () const
const TestInfoGetTestInfo (int i) const
const TestInfoGetTestInfo (int i) const
const TestResultad_hoc_test_result () const
const TestResultad_hoc_test_result () const

Private Member Functions

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

Static Private Member Functions

static void ClearTestCaseResult (TestCase *test_case)
static void ClearTestCaseResult (TestCase *test_case)
static bool TestPassed (const TestInfo *test_info)
static bool TestPassed (const TestInfo *test_info)
static bool TestFailed (const TestInfo *test_info)
static bool TestFailed (const TestInfo *test_info)
static bool TestReportableDisabled (const TestInfo *test_info)
static bool TestReportableDisabled (const TestInfo *test_info)
static bool TestDisabled (const TestInfo *test_info)
static bool TestDisabled (const TestInfo *test_info)
static bool TestReportable (const TestInfo *test_info)
static bool TestReportable (const TestInfo *test_info)
static bool ShouldRunTest (const TestInfo *test_info)
static bool ShouldRunTest (const TestInfo *test_info)

Private Attributes

std::string name_
const internal::scoped_ptr< const ::std::string > type_param_
std::vector< TestInfo * > test_info_list_
std::vector< int > test_indices_
Test::SetUpTestCaseFunc set_up_tc_
Test::TearDownTestCaseFunc tear_down_tc_
bool should_run_
TimeInMillis elapsed_time_
TestResult ad_hoc_test_result_

Friends

class Test
class internal::UnitTestImpl

Constructor & Destructor Documentation

◆ TestCase() [1/2]

testing::TestCase::TestCase ( const char * name,
const char * a_type_param,
Test::SetUpTestCaseFunc set_up_tc,
Test::TearDownTestCaseFunc tear_down_tc )

◆ TestCase() [2/2]

testing::TestCase::TestCase ( const char * name,
const char * a_type_param,
Test::SetUpTestCaseFunc set_up_tc,
Test::TearDownTestCaseFunc tear_down_tc )

◆ ~TestCase() [1/2]

◆ ~TestCase() [2/2]

virtual testing::TestCase::~TestCase ( )
virtual

Member Function Documentation

◆ ad_hoc_test_result() [1/2]

◆ ad_hoc_test_result() [2/2]

◆ AddTestInfo() [1/2]

void testing::TestCase::AddTestInfo ( TestInfo * test_info)
private

◆ AddTestInfo() [2/2]

void testing::TestCase::AddTestInfo ( TestInfo * test_info)
private

◆ ClearResult() [1/2]

◆ ClearResult() [2/2]

◆ ClearTestCaseResult() [1/2]

void testing::TestCase::ClearTestCaseResult ( TestCase * test_case)
inlinestaticprivate

◆ ClearTestCaseResult() [2/2]

void testing::TestCase::ClearTestCaseResult ( TestCase * test_case)
inlinestaticprivate

◆ disabled_test_count() [1/2]

◆ disabled_test_count() [2/2]

◆ elapsed_time() [1/2]

◆ elapsed_time() [2/2]

◆ Failed() [1/2]

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

◆ Failed() [2/2]

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

◆ failed_test_count() [1/2]

◆ failed_test_count() [2/2]

◆ GetMutableTestInfo() [1/2]

◆ GetMutableTestInfo() [2/2]

◆ GetTestInfo() [1/2]

◆ GetTestInfo() [2/2]

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_() [1/2]

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_() [2/2]

◆ name() [1/2]

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

◆ name() [2/2]

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

◆ Passed() [1/2]

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

◆ Passed() [2/2]

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

◆ reportable_disabled_test_count() [1/2]

◆ reportable_disabled_test_count() [2/2]

◆ reportable_test_count() [1/2]

◆ reportable_test_count() [2/2]

◆ Run() [1/2]

void testing::TestCase::Run ( )
private

◆ Run() [2/2]

void testing::TestCase::Run ( )
private

◆ RunSetUpTestCase() [1/2]

void testing::TestCase::RunSetUpTestCase ( )
inlineprivate

◆ RunSetUpTestCase() [2/2]

void testing::TestCase::RunSetUpTestCase ( )
inlineprivate

◆ RunTearDownTestCase() [1/2]

◆ RunTearDownTestCase() [2/2]

◆ set_should_run() [1/2]

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

◆ set_should_run() [2/2]

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

◆ should_run() [1/2]

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

◆ should_run() [2/2]

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

◆ ShouldRunTest() [1/2]

bool testing::TestCase::ShouldRunTest ( const TestInfo * test_info)
inlinestaticprivate

◆ ShouldRunTest() [2/2]

bool testing::TestCase::ShouldRunTest ( const TestInfo * test_info)
inlinestaticprivate

◆ ShuffleTests() [1/2]

void testing::TestCase::ShuffleTests ( internal::Random * random)
private

◆ ShuffleTests() [2/2]

void testing::TestCase::ShuffleTests ( internal::Random * random)
private

◆ successful_test_count() [1/2]

◆ successful_test_count() [2/2]

◆ test_info_list() [1/4]

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

◆ test_info_list() [2/4]

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

◆ test_info_list() [3/4]

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

◆ test_info_list() [4/4]

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

◆ test_to_run_count() [1/2]

◆ test_to_run_count() [2/2]

◆ TestDisabled() [1/2]

bool testing::TestCase::TestDisabled ( const TestInfo * test_info)
inlinestaticprivate

◆ TestDisabled() [2/2]

bool testing::TestCase::TestDisabled ( const TestInfo * test_info)
inlinestaticprivate

◆ TestFailed() [1/2]

bool testing::TestCase::TestFailed ( const TestInfo * test_info)
inlinestaticprivate

◆ TestFailed() [2/2]

bool testing::TestCase::TestFailed ( const TestInfo * test_info)
inlinestaticprivate

◆ TestPassed() [1/2]

bool testing::TestCase::TestPassed ( const TestInfo * test_info)
inlinestaticprivate

◆ TestPassed() [2/2]

bool testing::TestCase::TestPassed ( const TestInfo * test_info)
inlinestaticprivate

◆ TestReportable() [1/2]

bool testing::TestCase::TestReportable ( const TestInfo * test_info)
inlinestaticprivate

◆ TestReportable() [2/2]

bool testing::TestCase::TestReportable ( const TestInfo * test_info)
inlinestaticprivate

◆ TestReportableDisabled() [1/2]

bool testing::TestCase::TestReportableDisabled ( const TestInfo * test_info)
inlinestaticprivate

◆ TestReportableDisabled() [2/2]

bool testing::TestCase::TestReportableDisabled ( const TestInfo * test_info)
inlinestaticprivate

◆ total_test_count() [1/2]

◆ total_test_count() [2/2]

◆ type_param() [1/2]

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

◆ type_param() [2/2]

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

◆ UnshuffleTests() [1/2]

◆ UnshuffleTests() [2/2]

◆ internal::UnitTestImpl

internal::UnitTestImpl
friend

◆ Test

Test
friend

Member Data Documentation

◆ ad_hoc_test_result_

◆ elapsed_time_

◆ name_

std::string testing::TestCase::name_
private

◆ set_up_tc_

◆ should_run_

◆ tear_down_tc_

◆ test_indices_

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

◆ test_info_list_

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

◆ type_param_

const internal::scoped_ptr< const::std::string > testing::TestCase::type_param_
private

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