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

#include <gtest-test-part.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 47 of file gtest-test-part.h.

Member Enumeration Documentation

◆ Type

Enumerator
kSuccess 
kNonFatalFailure 
kFatalFailure 

Definition at line 51 of file gtest-test-part.h.

Constructor & Destructor Documentation

◆ TestPartResult()

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

Definition at line 60 of file gtest-test-part.h.

Member Function Documentation

◆ ExtractSummary()

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

Definition at line 51 of file gtest-test-part.cc.

◆ failed()

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

Definition at line 94 of file gtest-test-part.h.

◆ fatally_failed()

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

Definition at line 100 of file gtest-test-part.h.

◆ file_name()

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

Definition at line 76 of file gtest-test-part.h.

◆ line_number()

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

Definition at line 82 of file gtest-test-part.h.

◆ message()

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

Definition at line 88 of file gtest-test-part.h.

◆ nonfatally_failed()

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

Definition at line 97 of file gtest-test-part.h.

◆ passed()

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

Definition at line 91 of file gtest-test-part.h.

◆ summary()

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

Definition at line 85 of file gtest-test-part.h.

◆ type()

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

Definition at line 72 of file gtest-test-part.h.

Member Data Documentation

◆ file_name_

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

Definition at line 111 of file gtest-test-part.h.

◆ line_number_

int testing::TestPartResult::line_number_
private

Definition at line 114 of file gtest-test-part.h.

◆ message_

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

Definition at line 116 of file gtest-test-part.h.

◆ summary_

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

Definition at line 115 of file gtest-test-part.h.

◆ type_

Type testing::TestPartResult::type_
private

Definition at line 103 of file gtest-test-part.h.


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


fcl
Author(s):
autogenerated on Fri Apr 2 2021 02:38:03