class TestPartResult

Defined at line 54 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-test-part.h

A copyable object representing the result of a test part (i.e. an

assertion or an explicit FAIL(), ADD_FAILURE(), or SUCCESS()).

Don't inherit from TestPartResult as its destructor is not virtual.

Public Methods

void TestPartResult (Type a_type, const char * a_file_name, int a_line_number, const char * a_message)

C'tor. TestPartResult does NOT have a default constructor.

Always use this constructor (with parameters) to create a

TestPartResult object.

Defined at line 68 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-test-part.h

Type type ()

Gets the outcome of the test part.

Defined at line 77 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-test-part.h

const char * file_name ()

Gets the name of the source file where the test part took place, or

NULL if it's unknown.

Defined at line 81 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-test-part.h

int line_number ()

Gets the line in the source file where the test part took place,

or -1 if it's unknown.

Defined at line 87 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-test-part.h

const char * summary ()

Gets the summary of the failure message.

Defined at line 90 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-test-part.h

const char * message ()

Gets the message associated with the test part.

Defined at line 93 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-test-part.h

bool skipped ()

Returns true if and only if the test part was skipped.

Defined at line 96 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-test-part.h

bool passed ()

Returns true if and only if the test part passed.

Defined at line 99 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-test-part.h

bool nonfatally_failed ()

Returns true if and only if the test part non-fatally failed.

Defined at line 102 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-test-part.h

bool fatally_failed ()

Returns true if and only if the test part fatally failed.

Defined at line 105 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-test-part.h

bool failed ()

Returns true if and only if the test part failed.

Defined at line 108 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-test-part.h

Enumerations

enum Type
Name Value
kSuccess 0
kNonFatalFailure 1
kFatalFailure 2
kSkip 3

The possible outcomes of a test part (i.e. an assertion or an

explicit SUCCEED(), FAIL(), or ADD_FAILURE()).

Defined at line 58 of file ../../third_party/googletest/src/googletest/include/gtest/gtest-test-part.h