Classes | Functions | Variables
google::protobuf::text_format_unittest Namespace Reference

Classes

class  CompactRepeatedFieldPrinter
 
class  CustomInt32FieldValuePrinter
 
class  CustomMessageFieldValuePrinter
 
class  CustomMultilineCommentPrinter
 
class  CustomNestedMessagePrinter
 
class  CustomUInt32FieldValuePrinter
 
class  MultilineStringPrinter
 
class  TextFormatExtensionsTest
 
class  TextFormatMessageSetTest
 
class  TextFormatParserTest
 
class  TextFormatTest
 

Functions

static std::string RemoveRedundantZeros (std::string text)
 
 TEST (TextFormatUnknownFieldTest, TestAnyInUnknownField)
 
 TEST (TextFormatUnknownFieldTest, TestUnknownExtension)
 
 TEST (TextFormatUnknownFieldTest, TestUnknownField)
 
 TEST_F (TextFormatExtensionsTest, Extensions)
 
 TEST_F (TextFormatExtensionsTest, ParseExtensions)
 
 TEST_F (TextFormatMessageSetTest, Deserialize)
 
 TEST_F (TextFormatMessageSetTest, Serialize)
 
 TEST_F (TextFormatParserTest, AllowIgnoreCapitalizationError)
 
 TEST_F (TextFormatParserTest, ExplicitDelimiters)
 
 TEST_F (TextFormatParserTest, FailsOnTokenizationError)
 
 TEST_F (TextFormatParserTest, InvalidCapitalization)
 
 TEST_F (TextFormatParserTest, InvalidFieldName)
 
 TEST_F (TextFormatParserTest, InvalidFieldValues)
 
 TEST_F (TextFormatParserTest, InvalidToken)
 
 TEST_F (TextFormatParserTest, MergeDuplicateOptional)
 
 TEST_F (TextFormatParserTest, MergeDuplicateRequired)
 
 TEST_F (TextFormatParserTest, MessageDelimiters)
 
 TEST_F (TextFormatParserTest, MissingRequired)
 
 TEST_F (TextFormatParserTest, ParseDeprecatedField)
 
 TEST_F (TextFormatParserTest, ParseDuplicateOptional)
 
 TEST_F (TextFormatParserTest, ParseDuplicateRequired)
 
 TEST_F (TextFormatParserTest, ParseFieldValueFromString)
 
 TEST_F (TextFormatParserTest, ParseInfoTreeBuilding)
 
 TEST_F (TextFormatParserTest, PrintErrorsToStderr)
 
 TEST_F (TextFormatParserTest, SetRecursionLimit)
 
 TEST_F (TextFormatParserTest, UnknownExtension)
 
 TEST_F (TextFormatTest, AllowPartial)
 
 TEST_F (TextFormatTest, Basic)
 
 TEST_F (TextFormatTest, Comments)
 
 TEST_F (TextFormatTest, CompactRepeatedFieldPrinter)
 
 TEST_F (TextFormatTest, CustomMessagePrinter)
 
 TEST_F (TextFormatTest, CustomPrinterForComments)
 
 TEST_F (TextFormatTest, CustomPrinterForMultilineComments)
 
 TEST_F (TextFormatTest, DefaultCustomFieldPrinter)
 
 TEST_F (TextFormatTest, ErrorCasesRegisteringFieldValuePrinterShouldFail)
 
 TEST_F (TextFormatTest, FieldSpecificCustomPrinter)
 
 TEST_F (TextFormatTest, FieldSpecificCustomPrinterRegisterSameFieldTwice)
 
 TEST_F (TextFormatTest, MultilineStringPrinter)
 
 TEST_F (TextFormatTest, OptionalColon)
 
 TEST_F (TextFormatTest, ParseBasic)
 
 TEST_F (TextFormatTest, ParseConcatenatedString)
 
 TEST_F (TextFormatTest, ParseEnumFieldFromNegativeNumber)
 
 TEST_F (TextFormatTest, ParseEnumFieldFromNumber)
 
 TEST_F (TextFormatTest, ParseExotic)
 
 TEST_F (TextFormatTest, ParseFloatWithSuffix)
 
 TEST_F (TextFormatTest, ParseShortRepeatedConcatenatedWithEmpty)
 
 TEST_F (TextFormatTest, ParseShortRepeatedEmpty)
 
 TEST_F (TextFormatTest, ParseShortRepeatedForm)
 
 TEST_F (TextFormatTest, ParseShortRepeatedWithTrailingComma)
 
 TEST_F (TextFormatTest, ParseStringEscape)
 
 TEST_F (TextFormatTest, ParseUnknownEnumFieldProto3)
 
 TEST_F (TextFormatTest, PrintBufferTooSmall)
 
 TEST_F (TextFormatTest, PrintExotic)
 
 TEST_F (TextFormatTest, PrintFieldsInIndexOrder)
 
 TEST_F (TextFormatTest, PrintFloatPrecision)
 
 TEST_F (TextFormatTest, PrintMessageSingleLine)
 
 TEST_F (TextFormatTest, PrintMessageWithIndent)
 
 TEST_F (TextFormatTest, PrintUnknownEnumFieldProto3)
 
 TEST_F (TextFormatTest, PrintUnknownFields)
 
 TEST_F (TextFormatTest, PrintUnknownFieldsHidden)
 
 TEST_F (TextFormatTest, PrintUnknownMessage)
 
 TEST_F (TextFormatTest, ShortDebugString)
 
 TEST_F (TextFormatTest, ShortPrimitiveRepeateds)
 
 TEST_F (TextFormatTest, StringEscape)
 
 TEST_F (TextFormatTest, Utf8DebugString)
 

Variables

const std::string kEscapeTestString
 
const std::string kEscapeTestStringEscaped
 

Function Documentation

◆ RemoveRedundantZeros()

static std::string google::protobuf::text_format_unittest::RemoveRedundantZeros ( std::string  text)
static

Definition at line 984 of file text_format_unittest.cc.

◆ TEST() [1/3]

google::protobuf::text_format_unittest::TEST ( TextFormatUnknownFieldTest  ,
TestAnyInUnknownField   
)

Definition at line 1989 of file text_format_unittest.cc.

◆ TEST() [2/3]

google::protobuf::text_format_unittest::TEST ( TextFormatUnknownFieldTest  ,
TestUnknownExtension   
)

Definition at line 2001 of file text_format_unittest.cc.

◆ TEST() [3/3]

google::protobuf::text_format_unittest::TEST ( TextFormatUnknownFieldTest  ,
TestUnknownField   
)

Definition at line 1885 of file text_format_unittest.cc.

◆ TEST_F() [1/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatExtensionsTest  ,
Extensions   
)

Definition at line 134 of file text_format_unittest.cc.

◆ TEST_F() [2/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatExtensionsTest  ,
ParseExtensions   
)

Definition at line 722 of file text_format_unittest.cc.

◆ TEST_F() [3/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatMessageSetTest  ,
Deserialize   
)

Definition at line 1862 of file text_format_unittest.cc.

◆ TEST_F() [4/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatMessageSetTest  ,
Serialize   
)

Definition at line 1849 of file text_format_unittest.cc.

◆ TEST_F() [5/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatParserTest  ,
AllowIgnoreCapitalizationError   
)

Definition at line 1607 of file text_format_unittest.cc.

◆ TEST_F() [6/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatParserTest  ,
ExplicitDelimiters   
)

Definition at line 1768 of file text_format_unittest.cc.

◆ TEST_F() [7/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatParserTest  ,
FailsOnTokenizationError   
)

Definition at line 1794 of file text_format_unittest.cc.

◆ TEST_F() [8/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatParserTest  ,
InvalidCapitalization   
)

Definition at line 1588 of file text_format_unittest.cc.

◆ TEST_F() [9/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatParserTest  ,
InvalidFieldName   
)

Definition at line 1580 of file text_format_unittest.cc.

◆ TEST_F() [10/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatParserTest  ,
InvalidFieldValues   
)

Definition at line 1623 of file text_format_unittest.cc.

◆ TEST_F() [11/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatParserTest  ,
InvalidToken   
)

Definition at line 1571 of file text_format_unittest.cc.

◆ TEST_F() [12/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatParserTest  ,
MergeDuplicateOptional   
)

Definition at line 1761 of file text_format_unittest.cc.

◆ TEST_F() [13/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatParserTest  ,
MergeDuplicateRequired   
)

Definition at line 1754 of file text_format_unittest.cc.

◆ TEST_F() [14/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatParserTest  ,
MessageDelimiters   
)

Definition at line 1712 of file text_format_unittest.cc.

◆ TEST_F() [15/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatParserTest  ,
MissingRequired   
)

Definition at line 1734 of file text_format_unittest.cc.

◆ TEST_F() [16/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatParserTest  ,
ParseDeprecatedField   
)

Definition at line 1811 of file text_format_unittest.cc.

◆ TEST_F() [17/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatParserTest  ,
ParseDuplicateOptional   
)

Definition at line 1747 of file text_format_unittest.cc.

◆ TEST_F() [18/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatParserTest  ,
ParseDuplicateRequired   
)

Definition at line 1740 of file text_format_unittest.cc.

◆ TEST_F() [19/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatParserTest  ,
ParseFieldValueFromString   
)

Definition at line 1439 of file text_format_unittest.cc.

◆ TEST_F() [20/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatParserTest  ,
ParseInfoTreeBuilding   
)

Definition at line 1375 of file text_format_unittest.cc.

◆ TEST_F() [21/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatParserTest  ,
PrintErrorsToStderr   
)

Definition at line 1776 of file text_format_unittest.cc.

◆ TEST_F() [22/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatParserTest  ,
SetRecursionLimit   
)

Definition at line 1819 of file text_format_unittest.cc.

◆ TEST_F() [23/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatParserTest  ,
UnknownExtension   
)

Definition at line 1726 of file text_format_unittest.cc.

◆ TEST_F() [24/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
AllowPartial   
)

Definition at line 1119 of file text_format_unittest.cc.

◆ TEST_F() [25/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
Basic   
)

Definition at line 129 of file text_format_unittest.cc.

◆ TEST_F() [26/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
Comments   
)

Definition at line 951 of file text_format_unittest.cc.

◆ TEST_F() [27/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
CompactRepeatedFieldPrinter   
)

Definition at line 617 of file text_format_unittest.cc.

◆ TEST_F() [28/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
CustomMessagePrinter   
)

Definition at line 699 of file text_format_unittest.cc.

◆ TEST_F() [29/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
CustomPrinterForComments   
)

Definition at line 512 of file text_format_unittest.cc.

◆ TEST_F() [30/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
CustomPrinterForMultilineComments   
)

Definition at line 553 of file text_format_unittest.cc.

◆ TEST_F() [31/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
DefaultCustomFieldPrinter   
)

Definition at line 426 of file text_format_unittest.cc.

◆ TEST_F() [32/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
ErrorCasesRegisteringFieldValuePrinterShouldFail   
)

Definition at line 478 of file text_format_unittest.cc.

◆ TEST_F() [33/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
FieldSpecificCustomPrinter   
)

Definition at line 450 of file text_format_unittest.cc.

◆ TEST_F() [34/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
FieldSpecificCustomPrinterRegisterSameFieldTwice   
)

Definition at line 465 of file text_format_unittest.cc.

◆ TEST_F() [35/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
MultilineStringPrinter   
)

Definition at line 667 of file text_format_unittest.cc.

◆ TEST_F() [36/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
OptionalColon   
)

Definition at line 967 of file text_format_unittest.cc.

◆ TEST_F() [37/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
ParseBasic   
)

Definition at line 715 of file text_format_unittest.cc.

◆ TEST_F() [38/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
ParseConcatenatedString   
)

Definition at line 792 of file text_format_unittest.cc.

◆ TEST_F() [39/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
ParseEnumFieldFromNegativeNumber   
)

Definition at line 738 of file text_format_unittest.cc.

◆ TEST_F() [40/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
ParseEnumFieldFromNumber   
)

Definition at line 729 of file text_format_unittest.cc.

◆ TEST_F() [41/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
ParseExotic   
)

Definition at line 1129 of file text_format_unittest.cc.

◆ TEST_F() [42/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
ParseFloatWithSuffix   
)

Definition at line 814 of file text_format_unittest.cc.

◆ TEST_F() [43/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
ParseShortRepeatedConcatenatedWithEmpty   
)

Definition at line 898 of file text_format_unittest.cc.

◆ TEST_F() [44/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
ParseShortRepeatedEmpty   
)

Definition at line 881 of file text_format_unittest.cc.

◆ TEST_F() [45/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
ParseShortRepeatedForm   
)

Definition at line 829 of file text_format_unittest.cc.

◆ TEST_F() [46/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
ParseShortRepeatedWithTrailingComma   
)

Definition at line 869 of file text_format_unittest.cc.

◆ TEST_F() [47/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
ParseStringEscape   
)

Definition at line 780 of file text_format_unittest.cc.

◆ TEST_F() [48/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
ParseUnknownEnumFieldProto3   
)

Definition at line 768 of file text_format_unittest.cc.

◆ TEST_F() [49/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
PrintBufferTooSmall   
)

Definition at line 403 of file text_format_unittest.cc.

◆ TEST_F() [50/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
PrintExotic   
)

Definition at line 990 of file text_format_unittest.cc.

◆ TEST_F() [51/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
PrintFieldsInIndexOrder   
)

Definition at line 1223 of file text_format_unittest.cc.

◆ TEST_F() [52/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
PrintFloatPrecision   
)

Definition at line 1033 of file text_format_unittest.cc.

◆ TEST_F() [53/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
PrintMessageSingleLine   
)

Definition at line 383 of file text_format_unittest.cc.

◆ TEST_F() [54/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
PrintMessageWithIndent   
)

Definition at line 361 of file text_format_unittest.cc.

◆ TEST_F() [55/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
PrintUnknownEnumFieldProto3   
)

Definition at line 748 of file text_format_unittest.cc.

◆ TEST_F() [56/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
PrintUnknownFields   
)

Definition at line 262 of file text_format_unittest.cc.

◆ TEST_F() [57/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
PrintUnknownFieldsHidden   
)

Definition at line 292 of file text_format_unittest.cc.

◆ TEST_F() [58/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
PrintUnknownMessage   
)

Definition at line 317 of file text_format_unittest.cc.

◆ TEST_F() [59/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
ShortDebugString   
)

Definition at line 139 of file text_format_unittest.cc.

◆ TEST_F() [60/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
ShortPrimitiveRepeateds   
)

Definition at line 152 of file text_format_unittest.cc.

◆ TEST_F() [61/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
StringEscape   
)

Definition at line 209 of file text_format_unittest.cc.

◆ TEST_F() [62/62]

google::protobuf::text_format_unittest::TEST_F ( TextFormatTest  ,
Utf8DebugString   
)

Definition at line 232 of file text_format_unittest.cc.

Variable Documentation

◆ kEscapeTestString

const std::string google::protobuf::text_format_unittest::kEscapeTestString
Initial value:
=
"\"A string with ' characters \n and \r newlines and \t tabs and \001 "
"slashes \\ and multiple spaces"

Definition at line 74 of file text_format_unittest.cc.

◆ kEscapeTestStringEscaped

const std::string google::protobuf::text_format_unittest::kEscapeTestStringEscaped
Initial value:
=
"\"\\\"A string with \\' characters \\n and \\r newlines "
"and \\t tabs and \\001 slashes \\\\ and multiple spaces\""

Definition at line 79 of file text_format_unittest.cc.



libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:10