Public Types | Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
testing::TestPartResult Class Reference

#include <gtest.h>

Public Types

enum  Type { kSuccess, kNonFatalFailure, kFatalFailure }
 

Public Member Functions

bool failed () const
 
bool fatally_failed () const
 
const char * file_name () const
 
int line_number () const
 
const char * message () const
 
bool nonfatally_failed () const
 
bool passed () const
 
const char * summary () const
 
 TestPartResult (Type a_type, const char *a_file_name, int a_line_number, const char *a_message)
 
Type type () const
 

Static Private Member Functions

static std::string ExtractSummary (const char *message)
 

Private Attributes

std::string file_name_
 
int line_number_
 
std::string message_
 
std::string summary_
 
Type type_
 

Detailed Description

Definition at line 17090 of file gtest.h.

Member Enumeration Documentation

Enumerator
kSuccess 
kNonFatalFailure 
kFatalFailure 

Definition at line 17094 of file gtest.h.

Constructor & Destructor Documentation

testing::TestPartResult::TestPartResult ( Type  a_type,
const char *  a_file_name,
int  a_line_number,
const char *  a_message 
)
inline

Definition at line 17103 of file gtest.h.

Member Function Documentation

std::string testing::TestPartResult::ExtractSummary ( const char *  message)
staticprivate

Definition at line 9425 of file gtest-all.cc.

bool testing::TestPartResult::failed ( ) const
inline

Definition at line 17137 of file gtest.h.

bool testing::TestPartResult::fatally_failed ( ) const
inline

Definition at line 17143 of file gtest.h.

const char* testing::TestPartResult::file_name ( ) const
inline

Definition at line 17119 of file gtest.h.

int testing::TestPartResult::line_number ( ) const
inline

Definition at line 17125 of file gtest.h.

const char* testing::TestPartResult::message ( ) const
inline

Definition at line 17131 of file gtest.h.

bool testing::TestPartResult::nonfatally_failed ( ) const
inline

Definition at line 17140 of file gtest.h.

bool testing::TestPartResult::passed ( ) const
inline

Definition at line 17134 of file gtest.h.

const char* testing::TestPartResult::summary ( ) const
inline

Definition at line 17128 of file gtest.h.

Type testing::TestPartResult::type ( ) const
inline

Definition at line 17115 of file gtest.h.

Member Data Documentation

std::string testing::TestPartResult::file_name_
private

Definition at line 17154 of file gtest.h.

int testing::TestPartResult::line_number_
private

Definition at line 17157 of file gtest.h.

std::string testing::TestPartResult::message_
private

Definition at line 17159 of file gtest.h.

std::string testing::TestPartResult::summary_
private

Definition at line 17158 of file gtest.h.

Type testing::TestPartResult::type_
private

Definition at line 17146 of file gtest.h.


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


diagnostic_aggregator
Author(s): Kevin Watts, Brice Rebsamen
autogenerated on Thu Oct 8 2020 03:19:28