Electroneum
testing::internal2::TypeWithoutFormatter< T, kProtobuf > Class Template Reference

#include <gtest-printers.h>

Static Public Member Functions

static void PrintValue (const T &value, ::std::ostream *os)
 
static void PrintValue (const T &value, ::std::ostream *os)
 

Detailed Description

template<typename T>
class testing::internal2::TypeWithoutFormatter< T, kProtobuf >

Definition at line 151 of file gtest-printers.h.

Member Function Documentation

◆ PrintValue() [1/2]

template<typename T >
static void testing::internal2::TypeWithoutFormatter< T, kProtobuf >::PrintValue ( const T value,
::std::ostream *  os 
)
inlinestatic

Definition at line 153 of file gtest-printers.h.

153  {
154  const ::testing::internal::string short_str = value.ShortDebugString();
156  short_str.length() <= kProtobufOneLinerMaxLength ?
157  short_str : ("\n" + value.DebugString());
158  *os << ("<" + pretty_str + ">");
159  }
::std::string string
Definition: gtest-port.h:1097
const size_t kProtobufOneLinerMaxLength
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1225

◆ PrintValue() [2/2]

template<typename T >
static void testing::internal2::TypeWithoutFormatter< T, kProtobuf >::PrintValue ( const T value,
::std::ostream *  os 
)
inlinestatic

Definition at line 153 of file gtest-printers.h.

153  {
154  const ::testing::internal::string short_str = value.ShortDebugString();
156  short_str.length() <= kProtobufOneLinerMaxLength ?
157  short_str : ("\n" + value.DebugString());
158  *os << ("<" + pretty_str + ">");
159  }
::std::string string
Definition: gtest-port.h:1097
const size_t kProtobufOneLinerMaxLength
const GenericPointer< typename T::ValueType > T2 value
Definition: pointer.h:1225

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