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

#include <gtest.h>

Collaboration diagram for TestInfo:

Public Member Functions

 ~TestInfo ()
 ~TestInfo ()
const char * test_case_name () const
const char * test_case_name () const
const char * name () const
const char * name () const
const char * type_param () const
const char * type_param () const
const char * value_param () const
const char * value_param () const
const char * file () const
const char * file () const
int line () const
int line () const
bool should_run () const
bool should_run () const
bool is_reportable () const
bool is_reportable () const
const TestResultresult () const
const TestResultresult () const

Private Member Functions

 TestInfo (const std::string &test_case_name, const std::string &name, const char *a_type_param, const char *a_value_param, internal::CodeLocation a_code_location, internal::TypeId fixture_class_id, internal::TestFactoryBase *factory)
 TestInfo (const std::string &test_case_name, const std::string &name, const char *a_type_param, const char *a_value_param, internal::CodeLocation a_code_location, internal::TypeId fixture_class_id, internal::TestFactoryBase *factory)
int increment_death_test_count ()
int increment_death_test_count ()
void Run ()
void Run ()
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (TestInfo)
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (TestInfo)

Static Private Member Functions

static void ClearTestResult (TestInfo *test_info)
static void ClearTestResult (TestInfo *test_info)

Private Attributes

const std::string test_case_name_
const std::string name_
const internal::scoped_ptr< const ::std::string > type_param_
const internal::scoped_ptr< const ::std::string > value_param_
internal::CodeLocation location_
const internal::TypeId fixture_class_id_
bool should_run_
bool is_disabled_
bool matches_filter_
internal::TestFactoryBase *const factory_
TestResult result_

Friends

class Test
class TestCase
class internal::UnitTestImpl
class internal::StreamingListenerTest
TestInfointernal::MakeAndRegisterTestInfo (const char *test_case_name, const char *name, const char *type_param, const char *value_param, internal::CodeLocation code_location, internal::TypeId fixture_class_id, Test::SetUpTestCaseFunc set_up_tc, Test::TearDownTestCaseFunc tear_down_tc, internal::TestFactoryBase *factory)
TestInfointernal::MakeAndRegisterTestInfo (const char *test_case_name, const char *name, const char *type_param, const char *value_param, internal::CodeLocation code_location, internal::TypeId fixture_class_id, Test::SetUpTestCaseFunc set_up_tc, Test::TearDownTestCaseFunc tear_down_tc, internal::TestFactoryBase *factory)

Constructor & Destructor Documentation

◆ ~TestInfo() [1/2]

◆ ~TestInfo() [2/2]

◆ TestInfo() [1/2]

testing::TestInfo::TestInfo ( const std::string & test_case_name,
const std::string & name,
const char * a_type_param,
const char * a_value_param,
internal::CodeLocation a_code_location,
internal::TypeId fixture_class_id,
internal::TestFactoryBase * factory )
private

◆ TestInfo() [2/2]

testing::TestInfo::TestInfo ( const std::string & test_case_name,
const std::string & name,
const char * a_type_param,
const char * a_value_param,
internal::CodeLocation a_code_location,
internal::TypeId fixture_class_id,
internal::TestFactoryBase * factory )
private

Member Function Documentation

◆ ClearTestResult() [1/2]

void testing::TestInfo::ClearTestResult ( TestInfo * test_info)
inlinestaticprivate

◆ ClearTestResult() [2/2]

void testing::TestInfo::ClearTestResult ( TestInfo * test_info)
inlinestaticprivate

◆ file() [1/2]

const char * testing::TestInfo::file ( ) const
inline

◆ file() [2/2]

const char * testing::TestInfo::file ( ) const
inline

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_() [1/2]

◆ GTEST_DISALLOW_COPY_AND_ASSIGN_() [2/2]

◆ increment_death_test_count() [1/2]

◆ increment_death_test_count() [2/2]

◆ is_reportable() [1/2]

bool testing::TestInfo::is_reportable ( ) const
inline

◆ is_reportable() [2/2]

bool testing::TestInfo::is_reportable ( ) const
inline

◆ line() [1/2]

int testing::TestInfo::line ( ) const
inline

◆ line() [2/2]

int testing::TestInfo::line ( ) const
inline

◆ name() [1/2]

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

◆ name() [2/2]

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

◆ result() [1/2]

◆ result() [2/2]

◆ Run() [1/2]

void testing::TestInfo::Run ( )
private

◆ Run() [2/2]

void testing::TestInfo::Run ( )
private

◆ should_run() [1/2]

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

◆ should_run() [2/2]

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

◆ test_case_name() [1/2]

const char * testing::TestInfo::test_case_name ( ) const
inline

◆ test_case_name() [2/2]

const char * testing::TestInfo::test_case_name ( ) const
inline

◆ type_param() [1/2]

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

◆ type_param() [2/2]

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

◆ value_param() [1/2]

const char * testing::TestInfo::value_param ( ) const
inline

◆ value_param() [2/2]

const char * testing::TestInfo::value_param ( ) const
inline

◆ internal::MakeAndRegisterTestInfo [1/2]

TestInfo * internal::MakeAndRegisterTestInfo ( const char * test_case_name,
const char * name,
const char * type_param,
const char * value_param,
internal::CodeLocation code_location,
internal::TypeId fixture_class_id,
Test::SetUpTestCaseFunc set_up_tc,
Test::TearDownTestCaseFunc tear_down_tc,
internal::TestFactoryBase * factory )
friend

◆ internal::MakeAndRegisterTestInfo [2/2]

TestInfo * internal::MakeAndRegisterTestInfo ( const char * test_case_name,
const char * name,
const char * type_param,
const char * value_param,
internal::CodeLocation code_location,
internal::TypeId fixture_class_id,
Test::SetUpTestCaseFunc set_up_tc,
Test::TearDownTestCaseFunc tear_down_tc,
internal::TestFactoryBase * factory )
friend

◆ internal::StreamingListenerTest

internal::StreamingListenerTest
friend

◆ internal::UnitTestImpl

internal::UnitTestImpl
friend

◆ Test

Test
friend

◆ TestCase

TestCase
friend

Member Data Documentation

◆ factory_

internal::TestFactoryBase *const testing::TestInfo::factory_
private

◆ fixture_class_id_

const internal::TypeId testing::TestInfo::fixture_class_id_
private

◆ is_disabled_

◆ location_

internal::CodeLocation testing::TestInfo::location_
private

◆ matches_filter_

◆ name_

const std::string testing::TestInfo::name_
private

◆ result_

◆ should_run_

◆ test_case_name_

◆ type_param_

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

◆ value_param_

const internal::scoped_ptr< const::std::string > testing::TestInfo::value_param_
private

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