Electroneum
Loading...
Searching...
No Matches
testing::TestCase Class Reference

#include <gtest.h>

Public Member Functions

 TestCase (const char *name, const char *a_type_param, Test::SetUpTestCaseFunc set_up_tc, Test::TearDownTestCaseFunc tear_down_tc)
virtual ~TestCase ()
const char * name () const
const char * type_param () const
bool should_run () const
int successful_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
const TestInfoGetTestInfo (int i) const
const TestResultad_hoc_test_result () const
 TestCase (const char *name, const char *a_type_param, Test::SetUpTestCaseFunc set_up_tc, Test::TearDownTestCaseFunc tear_down_tc)
virtual ~TestCase ()
const char * name () const
const char * type_param () const
bool should_run () const
int successful_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
const TestInfoGetTestInfo (int i) const
const TestResultad_hoc_test_result () const

Friends

class Test
class internal::UnitTestImpl

Detailed Description

Definition at line 778 of file gtest.h.

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 )
Here is the call graph for this function:

◆ ~TestCase() [1/2]

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

◆ TestCase() [2/2]

testing::TestCase::TestCase ( const char * name,
const char * a_type_param,
Test::SetUpTestCaseFunc set_up_tc,
Test::TearDownTestCaseFunc tear_down_tc )
Here is the call graph for this function:

◆ ~TestCase() [2/2]

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

Member Function Documentation

◆ ad_hoc_test_result() [1/2]

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

Definition at line 849 of file gtest.h.

849{ return ad_hoc_test_result_; }

◆ ad_hoc_test_result() [2/2]

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

Definition at line 849 of file gtest.h.

849{ return ad_hoc_test_result_; }

◆ disabled_test_count() [1/2]

int testing::TestCase::disabled_test_count ( ) const

◆ disabled_test_count() [2/2]

int testing::TestCase::disabled_test_count ( ) const

◆ elapsed_time() [1/2]

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

Definition at line 841 of file gtest.h.

841{ return elapsed_time_; }

◆ elapsed_time() [2/2]

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

Definition at line 841 of file gtest.h.

841{ return elapsed_time_; }

◆ Failed() [1/2]

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

Definition at line 838 of file gtest.h.

838{ return failed_test_count() > 0; }
int failed_test_count() const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Failed() [2/2]

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

Definition at line 838 of file gtest.h.

838{ return failed_test_count() > 0; }
Here is the call graph for this function:

◆ failed_test_count() [1/2]

int testing::TestCase::failed_test_count ( ) const
Here is the caller graph for this function:

◆ failed_test_count() [2/2]

int testing::TestCase::failed_test_count ( ) const

◆ GetTestInfo() [1/2]

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

◆ GetTestInfo() [2/2]

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

◆ name() [1/2]

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

Definition at line 800 of file gtest.h.

800{ return name_.c_str(); }
Here is the caller graph for this function:

◆ name() [2/2]

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

Definition at line 800 of file gtest.h.

800{ return name_.c_str(); }

◆ Passed() [1/2]

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

Definition at line 835 of file gtest.h.

835{ return !Failed(); }
bool Failed() const
Definition gtest.h:838
Here is the call graph for this function:

◆ Passed() [2/2]

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

Definition at line 835 of file gtest.h.

835{ return !Failed(); }
Here is the call graph for this function:

◆ reportable_disabled_test_count() [1/2]

int testing::TestCase::reportable_disabled_test_count ( ) const

◆ reportable_disabled_test_count() [2/2]

int testing::TestCase::reportable_disabled_test_count ( ) const

◆ reportable_test_count() [1/2]

int testing::TestCase::reportable_test_count ( ) const

◆ reportable_test_count() [2/2]

int testing::TestCase::reportable_test_count ( ) const

◆ should_run() [1/2]

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

Definition at line 811 of file gtest.h.

811{ return should_run_; }

◆ should_run() [2/2]

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

Definition at line 811 of file gtest.h.

811{ return should_run_; }

◆ successful_test_count() [1/2]

int testing::TestCase::successful_test_count ( ) const

◆ successful_test_count() [2/2]

int testing::TestCase::successful_test_count ( ) const

◆ test_to_run_count() [1/2]

int testing::TestCase::test_to_run_count ( ) const

◆ test_to_run_count() [2/2]

int testing::TestCase::test_to_run_count ( ) const

◆ total_test_count() [1/2]

int testing::TestCase::total_test_count ( ) const

◆ total_test_count() [2/2]

int testing::TestCase::total_test_count ( ) const

◆ type_param() [1/2]

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

Definition at line 804 of file gtest.h.

804 {
805 if (type_param_.get() != NULL)
806 return type_param_->c_str();
807 return NULL;
808 }

◆ type_param() [2/2]

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

Definition at line 804 of file gtest.h.

804 {
805 if (type_param_.get() != NULL)
806 return type_param_->c_str();
807 return NULL;
808 }

◆ internal::UnitTestImpl

Definition at line 853 of file gtest.h.

◆ Test

Test
friend

Definition at line 852 of file gtest.h.


The documentation for this class was generated from the following files:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/external/rapidjson/thirdparty/gtest/googletest/include/gtest/gtest.h
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/tests/gtest/include/gtest/gtest.h