proxygen
testing::TestPartResultArray Class Reference

#include <gtest-test-part.h>

Public Member Functions

 TestPartResultArray ()
 
void Append (const TestPartResult &result)
 
const TestPartResultGetTestPartResult (int index) const
 
int size () const
 
 TestPartResultArray ()
 
void Append (const TestPartResult &result)
 
const TestPartResultGetTestPartResult (int index) const
 
int size () const
 
 TestPartResultArray ()
 
void Append (const TestPartResult &result)
 
const TestPartResultGetTestPartResult (int index) const
 
int size () const
 

Private Member Functions

 GTEST_DISALLOW_COPY_AND_ASSIGN_ (TestPartResultArray)
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (TestPartResultArray)
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (TestPartResultArray)
 

Private Attributes

std::vector< TestPartResultarray_
 

Detailed Description

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

Constructor & Destructor Documentation

testing::TestPartResultArray::TestPartResultArray ( )
inline

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

References folly::size().

128 {}
testing::TestPartResultArray::TestPartResultArray ( )
inline

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

References GTEST_DISALLOW_COPY_AND_ASSIGN_, and folly::size().

128 {}
testing::TestPartResultArray::TestPartResultArray ( )
inline

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

References GTEST_DISALLOW_COPY_AND_ASSIGN_, and folly::size().

128 {}

Member Function Documentation

void testing::TestPartResultArray::Append ( const TestPartResult result)

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

Referenced by testing::ScopedFakeTestPartResultReporter::ReportTestPartResult().

68  {
69  array_.push_back(result);
70 }
std::vector< TestPartResult > array_
void testing::TestPartResultArray::Append ( const TestPartResult result)
void testing::TestPartResultArray::Append ( const TestPartResult result)
const TestPartResult & testing::TestPartResultArray::GetTestPartResult ( int  index) const

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

References testing::internal::posix::Abort(), and folly::size().

Referenced by testing::internal::HasOneFailure(), operator<<(), and testing::internal::ShouldRunTestCase().

73  {
74  if (index < 0 || index >= size()) {
75  printf("\nInvalid index (%d) into TestPartResultArray.\n", index);
77  }
78 
79  return array_[index];
80 }
std::vector< TestPartResult > array_
const TestPartResult& testing::TestPartResultArray::GetTestPartResult ( int  index) const
const TestPartResult& testing::TestPartResultArray::GetTestPartResult ( int  index) const
testing::TestPartResultArray::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( TestPartResultArray  )
private
testing::TestPartResultArray::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( TestPartResultArray  )
private
testing::TestPartResultArray::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( TestPartResultArray  )
private
int testing::TestPartResultArray::size ( ) const
int testing::TestPartResultArray::size ( ) const
int testing::TestPartResultArray::size ( ) const

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

Referenced by testing::internal::HasOneFailure(), operator<<(), and testing::internal::ShouldRunTestCase().

83  {
84  return static_cast<int>(array_.size());
85 }
std::vector< TestPartResult > array_

Member Data Documentation

std::vector< TestPartResult > testing::TestPartResultArray::array_
private

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


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