Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
testing::internal::XmlUnitTestResultPrinter Class Reference
+ Inheritance diagram for testing::internal::XmlUnitTestResultPrinter:
+ Collaboration diagram for testing::internal::XmlUnitTestResultPrinter:

Public Member Functions

 XmlUnitTestResultPrinter (const char *output_file)
 
virtual void OnTestIterationEnd (const UnitTest &unit_test, int iteration)
 
- Public Member Functions inherited from testing::EmptyTestEventListener
virtual void OnTestProgramStart (const UnitTest &)
 
virtual void OnTestIterationStart (const UnitTest &, int)
 
virtual void OnEnvironmentsSetUpStart (const UnitTest &)
 
virtual void OnEnvironmentsSetUpEnd (const UnitTest &)
 
virtual void OnTestCaseStart (const TestCase &)
 
virtual void OnTestStart (const TestInfo &)
 
virtual void OnTestPartResult (const TestPartResult &)
 
virtual void OnTestEnd (const TestInfo &)
 
virtual void OnTestCaseEnd (const TestCase &)
 
virtual void OnEnvironmentsTearDownStart (const UnitTest &)
 
virtual void OnEnvironmentsTearDownEnd (const UnitTest &)
 
virtual void OnTestProgramEnd (const UnitTest &)
 
- Public Member Functions inherited from testing::TestEventListener
virtual ~TestEventListener ()
 

Private Member Functions

 GTEST_DISALLOW_COPY_AND_ASSIGN_ (XmlUnitTestResultPrinter)
 

Static Private Member Functions

static bool IsNormalizableWhitespace (char c)
 
static bool IsValidXmlCharacter (char c)
 
static std::string EscapeXml (const std::string &str, bool is_attribute)
 
static std::string RemoveInvalidXmlCharacters (const std::string &str)
 
static std::string EscapeXmlAttribute (const std::string &str)
 
static std::string EscapeXmlText (const char *str)
 
static void OutputXmlAttribute (std::ostream *stream, const std::string &element_name, const std::string &name, const std::string &value)
 
static void OutputXmlCDataSection (::std::ostream *stream, const char *data)
 
static void OutputXmlTestInfo (::std::ostream *stream, const char *test_case_name, const TestInfo &test_info)
 
static void PrintXmlTestCase (::std::ostream *stream, const TestCase &test_case)
 
static void PrintXmlUnitTest (::std::ostream *stream, const UnitTest &unit_test)
 
static std::string TestPropertiesAsXmlAttributes (const TestResult &result)
 

Private Attributes

const std::string output_file_
 

Detailed Description

Definition at line 3349 of file gtest.cc.

View newest version in sPHENIX GitHub at line 3349 of file gtest.cc

Constructor & Destructor Documentation

testing::internal::XmlUnitTestResultPrinter::XmlUnitTestResultPrinter ( const char *  output_file)
explicit

Definition at line 3422 of file gtest.cc.

View newest version in sPHENIX GitHub at line 3422 of file gtest.cc

References fprintf(), and output_file_.

+ Here is the call graph for this function:

Member Function Documentation

std::string testing::internal::XmlUnitTestResultPrinter::EscapeXml ( const std::string &  str,
bool  is_attribute 
)
staticprivate

Definition at line 3476 of file gtest.cc.

View newest version in sPHENIX GitHub at line 3476 of file gtest.cc

References testing::internal::String::FormatByte(), testing::Message::GetString(), i, IsNormalizableWhitespace(), IsValidXmlCharacter(), and Acts::UnitConstants::m.

Referenced by EscapeXmlAttribute(), and EscapeXmlText().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static std::string testing::internal::XmlUnitTestResultPrinter::EscapeXmlAttribute ( const std::string &  str)
inlinestaticprivate

Definition at line 3377 of file gtest.cc.

View newest version in sPHENIX GitHub at line 3377 of file gtest.cc

References EscapeXml().

Referenced by OutputXmlAttribute(), OutputXmlTestInfo(), and TestPropertiesAsXmlAttributes().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static std::string testing::internal::XmlUnitTestResultPrinter::EscapeXmlText ( const char *  str)
inlinestaticprivate

Definition at line 3382 of file gtest.cc.

View newest version in sPHENIX GitHub at line 3382 of file gtest.cc

References EscapeXml().

+ Here is the call graph for this function:

testing::internal::XmlUnitTestResultPrinter::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( XmlUnitTestResultPrinter  )
private
static bool testing::internal::XmlUnitTestResultPrinter::IsNormalizableWhitespace ( char  c)
inlinestaticprivate

Definition at line 3358 of file gtest.cc.

View newest version in sPHENIX GitHub at line 3358 of file gtest.cc

Referenced by EscapeXml(), and IsValidXmlCharacter().

+ Here is the caller graph for this function:

static bool testing::internal::XmlUnitTestResultPrinter::IsValidXmlCharacter ( char  c)
inlinestaticprivate

Definition at line 3363 of file gtest.cc.

View newest version in sPHENIX GitHub at line 3363 of file gtest.cc

References IsNormalizableWhitespace().

Referenced by EscapeXml(), and RemoveInvalidXmlCharacters().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void testing::internal::XmlUnitTestResultPrinter::OnTestIterationEnd ( const UnitTest unit_test,
int  iteration 
)
virtual

Reimplemented from testing::EmptyTestEventListener.

Definition at line 3432 of file gtest.cc.

View newest version in sPHENIX GitHub at line 3432 of file gtest.cc

References fclose(), testing::internal::posix::FOpen(), fprintf(), versiongenerate::output_dir, generate_particle_data_table::output_file, output_file_, PrintXmlUnitTest(), testing::internal::FilePath::RemoveFileName(), and testing::internal::StringStreamToString().

+ Here is the call graph for this function:

void testing::internal::XmlUnitTestResultPrinter::OutputXmlAttribute ( std::ostream *  stream,
const std::string &  element_name,
const std::string &  name,
const std::string &  value 
)
staticprivate

Definition at line 3607 of file gtest.cc.

View newest version in sPHENIX GitHub at line 3607 of file gtest.cc

References EscapeXmlAttribute(), testing::GetReservedAttributesForElement(), GTEST_CHECK_, and perf_headwind::name.

Referenced by OutputXmlTestInfo(), PrintXmlTestCase(), and PrintXmlUnitTest().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void testing::internal::XmlUnitTestResultPrinter::OutputXmlCDataSection ( ::std::ostream *  stream,
const char *  data 
)
staticprivate

Definition at line 3588 of file gtest.cc.

View newest version in sPHENIX GitHub at line 3588 of file gtest.cc

References configureMap::data, and Acts::Test::segment().

Referenced by OutputXmlTestInfo().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void testing::internal::XmlUnitTestResultPrinter::OutputXmlTestInfo ( ::std::ostream *  stream,
const char *  test_case_name,
const TestInfo test_info 
)
staticprivate
void testing::internal::XmlUnitTestResultPrinter::PrintXmlTestCase ( ::std::ostream *  stream,
const TestCase test_case 
)
staticprivate

Definition at line 3675 of file gtest.cc.

View newest version in sPHENIX GitHub at line 3675 of file gtest.cc

References testing::TestCase::ad_hoc_test_result(), testing::TestCase::elapsed_time(), testing::TestCase::failed_test_count(), testing::internal::FormatTimeInMillisAsSeconds(), testing::TestCase::GetTestInfo(), i, testing::TestInfo::is_reportable(), testing::TestCase::name(), OutputXmlAttribute(), OutputXmlTestInfo(), testing::TestCase::reportable_disabled_test_count(), testing::TestCase::reportable_test_count(), testing::internal::StreamableToString(), TestPropertiesAsXmlAttributes(), and testing::TestCase::total_test_count().

Referenced by PrintXmlUnitTest().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void testing::internal::XmlUnitTestResultPrinter::PrintXmlUnitTest ( ::std::ostream *  stream,
const UnitTest unit_test 
)
staticprivate

Definition at line 3701 of file gtest.cc.

View newest version in sPHENIX GitHub at line 3701 of file gtest.cc

References testing::UnitTest::ad_hoc_test_result(), testing::UnitTest::elapsed_time(), testing::UnitTest::failed_test_count(), testing::internal::FormatEpochTimeInMillisAsIso8601(), testing::internal::FormatTimeInMillisAsSeconds(), testing::UnitTest::GetTestCase(), GTEST_FLAG, i, OutputXmlAttribute(), PrintXmlTestCase(), testing::UnitTest::random_seed(), testing::UnitTest::reportable_disabled_test_count(), testing::TestCase::reportable_test_count(), testing::UnitTest::reportable_test_count(), testing::UnitTest::start_timestamp(), testing::internal::StreamableToString(), TestPropertiesAsXmlAttributes(), and testing::UnitTest::total_test_case_count().

Referenced by OnTestIterationEnd().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string testing::internal::XmlUnitTestResultPrinter::RemoveInvalidXmlCharacters ( const std::string &  str)
staticprivate

Definition at line 3522 of file gtest.cc.

View newest version in sPHENIX GitHub at line 3522 of file gtest.cc

References IsValidXmlCharacter(), it, and check_smearing_config::output.

Referenced by OutputXmlTestInfo().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

std::string testing::internal::XmlUnitTestResultPrinter::TestPropertiesAsXmlAttributes ( const TestResult result)
staticprivate

Definition at line 3741 of file gtest.cc.

View newest version in sPHENIX GitHub at line 3741 of file gtest.cc

References EscapeXmlAttribute(), testing::Message::GetString(), testing::TestResult::GetTestProperty(), i, and testing::TestResult::test_property_count().

Referenced by OutputXmlTestInfo(), PrintXmlTestCase(), and PrintXmlUnitTest().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

const std::string testing::internal::XmlUnitTestResultPrinter::output_file_
private

Definition at line 3416 of file gtest.cc.

View newest version in sPHENIX GitHub at line 3416 of file gtest.cc

Referenced by OnTestIterationEnd(), and XmlUnitTestResultPrinter().


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