Xmipp  v3.23.11-Nereus
Static Public Member Functions | Static Public Attributes | List of all members
testing::internal::ProtobufPrinter Struct Reference

#include <gtest-printers.h>

Static Public Member Functions

template<typename T , typename = typename std::enable_if< internal::HasDebugStringAndShortDebugString<T>::value>::type>
static void PrintValue (const T &value, ::std::ostream *os)
 

Static Public Attributes

static const size_t kProtobufOneLinerMaxLength = 50
 

Detailed Description

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

Member Function Documentation

◆ PrintValue()

template<typename T , typename = typename std::enable_if< internal::HasDebugStringAndShortDebugString<T>::value>::type>
static void testing::internal::ProtobufPrinter::PrintValue ( const T &  value,
::std::ostream *  os 
)
inlinestatic

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

232  {
233  std::string pretty_str = value.ShortDebugString();
234  if (pretty_str.length() > kProtobufOneLinerMaxLength) {
235  pretty_str = "\n" + value.DebugString();
236  }
237  *os << ("<" + pretty_str + ">");
238  }
static const size_t kProtobufOneLinerMaxLength

Member Data Documentation

◆ kProtobufOneLinerMaxLength

const size_t testing::internal::ProtobufPrinter::kProtobufOneLinerMaxLength = 50
static

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


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