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

#include <gtest.h>

Public Member Functions

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

Friends

class Test
class TestCase
class internal::UnitTestImpl
class internal::StreamingListenerTest
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)
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)

Detailed Description

Definition at line 644 of file gtest.h.

Constructor & Destructor Documentation

◆ ~TestInfo() [1/2]

testing::TestInfo::~TestInfo ( )

◆ ~TestInfo() [2/2]

testing::TestInfo::~TestInfo ( )

Member Function Documentation

◆ file() [1/2]

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

Definition at line 673 of file gtest.h.

673{ return location_.file.c_str(); }

◆ file() [2/2]

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

Definition at line 673 of file gtest.h.

673{ return location_.file.c_str(); }

◆ is_reportable() [1/2]

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

Definition at line 697 of file gtest.h.

697 {
698 // For now, the XML report includes all tests matching the filter.
699 // In the future, we may trim tests that are excluded because of
700 // sharding.
701 return matches_filter_;
702 }

◆ is_reportable() [2/2]

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

Definition at line 697 of file gtest.h.

697 {
698 // For now, the XML report includes all tests matching the filter.
699 // In the future, we may trim tests that are excluded because of
700 // sharding.
701 return matches_filter_;
702 }

◆ line() [1/2]

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

Definition at line 676 of file gtest.h.

676{ return location_.line; }

◆ line() [2/2]

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

Definition at line 676 of file gtest.h.

676{ return location_.line; }

◆ name() [1/2]

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

Definition at line 654 of file gtest.h.

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

◆ name() [2/2]

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

Definition at line 654 of file gtest.h.

654{ return name_.c_str(); }

◆ result() [1/2]

const TestResult * testing::TestInfo::result ( ) const
inline

Definition at line 705 of file gtest.h.

705{ return &result_; }

◆ result() [2/2]

const TestResult * testing::TestInfo::result ( ) const
inline

Definition at line 705 of file gtest.h.

705{ return &result_; }

◆ should_run() [1/2]

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

Definition at line 694 of file gtest.h.

694{ return should_run_; }

◆ should_run() [2/2]

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

Definition at line 694 of file gtest.h.

694{ return should_run_; }

◆ test_case_name() [1/2]

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

Definition at line 651 of file gtest.h.

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

◆ test_case_name() [2/2]

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

Definition at line 651 of file gtest.h.

651{ return test_case_name_.c_str(); }

◆ type_param() [1/2]

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

Definition at line 658 of file gtest.h.

658 {
659 if (type_param_.get() != NULL)
660 return type_param_->c_str();
661 return NULL;
662 }
Here is the caller graph for this function:

◆ type_param() [2/2]

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

Definition at line 658 of file gtest.h.

658 {
659 if (type_param_.get() != NULL)
660 return type_param_->c_str();
661 return NULL;
662 }

◆ value_param() [1/2]

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

Definition at line 666 of file gtest.h.

666 {
667 if (value_param_.get() != NULL)
668 return value_param_->c_str();
669 return NULL;
670 }
Here is the caller graph for this function:

◆ value_param() [2/2]

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

Definition at line 666 of file gtest.h.

666 {
667 if (value_param_.get() != NULL)
668 return value_param_->c_str();
669 return NULL;
670 }

◆ 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

Definition at line 714 of file gtest.h.

◆ internal::UnitTestImpl

Definition at line 713 of file gtest.h.

◆ Test

Test
friend

Definition at line 711 of file gtest.h.

◆ TestCase

TestCase
friend

Definition at line 712 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