Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
testing::internal::JsonUnitTestResultPrinter Class Reference
Inheritance diagram for testing::internal::JsonUnitTestResultPrinter:
Inheritance graph
[legend]

Public Member Functions

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

Static Public Member Functions

static void PrintJsonTestList (::std::ostream *stream, const std::vector< TestSuite * > &test_suites)
 

Private Member Functions

 GTEST_DISALLOW_COPY_AND_ASSIGN_ (JsonUnitTestResultPrinter)
 

Static Private Member Functions

static std::string EscapeJson (const std::string &str)
 
static void OutputJsonKey (std::ostream *stream, const std::string &element_name, const std::string &name, const std::string &value, const std::string &indent, bool comma=true)
 
static void OutputJsonKey (std::ostream *stream, const std::string &element_name, const std::string &name, int value, const std::string &indent, bool comma=true)
 
static void OutputJsonTestInfo (::std::ostream *stream, const char *test_suite_name, const TestInfo &test_info)
 
static void PrintJsonTestSuite (::std::ostream *stream, const TestSuite &test_suite)
 
static void PrintJsonUnitTest (::std::ostream *stream, const UnitTest &unit_test)
 
static std::string TestPropertiesAsJson (const TestResult &result, const std::string &indent)
 

Private Attributes

const std::string output_file_
 

Detailed Description

Definition at line 4367 of file gtest.cc.

Constructor & Destructor Documentation

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

Definition at line 4421 of file gtest.cc.

Member Function Documentation

void testing::internal::JsonUnitTestResultPrinter::OnTestIterationEnd ( const UnitTest unit_test,
int  iteration 
)
overridevirtual

Reimplemented from testing::EmptyTestEventListener.

Definition at line 4428 of file gtest.cc.

void testing::internal::JsonUnitTestResultPrinter::PrintJsonTestList ( ::std::ostream *  stream,
const std::vector< TestSuite * > &  test_suites 
)
static

Definition at line 4701 of file gtest.cc.

std::string testing::internal::JsonUnitTestResultPrinter::EscapeJson ( const std::string &  str)
staticprivate

Definition at line 4438 of file gtest.cc.

void testing::internal::JsonUnitTestResultPrinter::OutputJsonKey ( std::ostream *  stream,
const std::string &  element_name,
const std::string &  name,
const std::string &  value,
const std::string &  indent,
bool  comma = true 
)
staticprivate

Definition at line 4506 of file gtest.cc.

void testing::internal::JsonUnitTestResultPrinter::OutputJsonKey ( std::ostream *  stream,
const std::string &  element_name,
const std::string &  name,
int  value,
const std::string &  indent,
bool  comma = true 
)
staticprivate

Definition at line 4526 of file gtest.cc.

void testing::internal::JsonUnitTestResultPrinter::OutputJsonTestInfo ( ::std::ostream *  stream,
const char *  test_suite_name,
const TestInfo test_info 
)
staticprivate

Definition at line 4547 of file gtest.cc.

void testing::internal::JsonUnitTestResultPrinter::PrintJsonTestSuite ( ::std::ostream *  stream,
const TestSuite test_suite 
)
staticprivate

Definition at line 4613 of file gtest.cc.

void testing::internal::JsonUnitTestResultPrinter::PrintJsonUnitTest ( ::std::ostream *  stream,
const UnitTest unit_test 
)
staticprivate

Definition at line 4656 of file gtest.cc.

std::string testing::internal::JsonUnitTestResultPrinter::TestPropertiesAsJson ( const TestResult result,
const std::string &  indent 
)
staticprivate

Definition at line 4728 of file gtest.cc.

testing::internal::JsonUnitTestResultPrinter::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( JsonUnitTestResultPrinter  )
private

Member Data Documentation

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

Definition at line 4415 of file gtest.cc.


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