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

Classes

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

Functions

static std::string RemoveRedundantZeros (std::string text)
 
static std::string RemoveRedundantZeros (std::string text)
 
 TEST (TextFormatFloatingPointTest, PreservesNegative0)
 
 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, ParseAnyFieldWithAdditionalWhiteSpaces)
 
 TEST_F (TextFormatParserTest, ParseDeprecatedField)
 
 TEST_F (TextFormatParserTest, ParseDuplicateOptional)
 
 TEST_F (TextFormatParserTest, ParseDuplicateRequired)
 
 TEST_F (TextFormatParserTest, ParseExtensionFieldWithAdditionalWhiteSpaces)
 
 TEST_F (TextFormatParserTest, ParseFieldValueFromString)
 
 TEST_F (TextFormatParserTest, ParseInfoTreeBuilding)
 
 TEST_F (TextFormatParserTest, ParseNormalFieldWithAdditionalWhiteSpaces)
 
 TEST_F (TextFormatParserTest, ParseSkippedFieldWithAdditionalWhiteSpaces)
 
 TEST_F (TextFormatParserTest, PrintErrorsToStderr)
 
 TEST_F (TextFormatParserTest, SetRecursionLimit)
 
 TEST_F (TextFormatParserTest, SetRecursionLimitUnknownFieldMessage)
 
 TEST_F (TextFormatParserTest, SetRecursionLimitUnknownFieldValue)
 
 TEST_F (TextFormatParserTest, UnknownExtension)
 
 TEST_F (TextFormatSilentMarkerTest, AnyFieldAsFirstField)
 
 TEST_F (TextFormatSilentMarkerTest, ExtensionFieldAsFirstField)
 
 TEST_F (TextFormatSilentMarkerTest, MapFieldAsFirstField)
 
 TEST_F (TextFormatSilentMarkerTest, MessageFieldAsFirstField)
 
 TEST_F (TextFormatSilentMarkerTest, NonMessageFieldAsFirstField)
 
 TEST_F (TextFormatSilentMarkerTest, UnknownFieldAsFirstField)
 
 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, CustomPrinterForMessageContent)
 
 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, PrintDeeplyNestedUnknownMessage)
 
 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() [1/2]

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

◆ RemoveRedundantZeros() [2/2]

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

◆ TEST() [1/4]

google::protobuf::text_format_unittest::TEST ( TextFormatFloatingPointTest  ,
PreservesNegative0   
)

◆ TEST() [2/4]

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

◆ TEST() [3/4]

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

◆ TEST() [4/4]

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

◆ TEST_F() [1/76]

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

◆ TEST_F() [2/76]

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

◆ TEST_F() [3/76]

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

◆ TEST_F() [4/76]

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

◆ TEST_F() [5/76]

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

◆ TEST_F() [6/76]

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

◆ TEST_F() [7/76]

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

◆ TEST_F() [8/76]

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

◆ TEST_F() [9/76]

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

◆ TEST_F() [10/76]

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

◆ TEST_F() [11/76]

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

◆ TEST_F() [12/76]

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

◆ TEST_F() [13/76]

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

◆ TEST_F() [14/76]

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

◆ TEST_F() [15/76]

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

◆ TEST_F() [16/76]

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

◆ TEST_F() [17/76]

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

◆ TEST_F() [18/76]

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

◆ TEST_F() [19/76]

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

◆ TEST_F() [20/76]

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

◆ TEST_F() [21/76]

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

◆ TEST_F() [22/76]

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

◆ TEST_F() [23/76]

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

◆ TEST_F() [24/76]

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

◆ TEST_F() [25/76]

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

◆ TEST_F() [26/76]

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

◆ TEST_F() [27/76]

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

◆ TEST_F() [28/76]

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

◆ TEST_F() [29/76]

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

◆ TEST_F() [30/76]

google::protobuf::text_format_unittest::TEST_F ( TextFormatSilentMarkerTest  ,
AnyFieldAsFirstField   
)

◆ TEST_F() [31/76]

google::protobuf::text_format_unittest::TEST_F ( TextFormatSilentMarkerTest  ,
ExtensionFieldAsFirstField   
)

◆ TEST_F() [32/76]

google::protobuf::text_format_unittest::TEST_F ( TextFormatSilentMarkerTest  ,
MapFieldAsFirstField   
)

◆ TEST_F() [33/76]

google::protobuf::text_format_unittest::TEST_F ( TextFormatSilentMarkerTest  ,
MessageFieldAsFirstField   
)

◆ TEST_F() [34/76]

google::protobuf::text_format_unittest::TEST_F ( TextFormatSilentMarkerTest  ,
NonMessageFieldAsFirstField   
)

◆ TEST_F() [35/76]

google::protobuf::text_format_unittest::TEST_F ( TextFormatSilentMarkerTest  ,
UnknownFieldAsFirstField   
)

◆ TEST_F() [36/76]

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

◆ TEST_F() [37/76]

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

◆ TEST_F() [38/76]

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

◆ TEST_F() [39/76]

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

◆ TEST_F() [40/76]

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

◆ TEST_F() [41/76]

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

◆ TEST_F() [42/76]

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

◆ TEST_F() [43/76]

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

◆ TEST_F() [44/76]

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

◆ TEST_F() [45/76]

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

◆ TEST_F() [46/76]

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

◆ TEST_F() [47/76]

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

◆ TEST_F() [48/76]

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

◆ TEST_F() [49/76]

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

◆ TEST_F() [50/76]

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

◆ TEST_F() [51/76]

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

◆ TEST_F() [52/76]

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

◆ TEST_F() [53/76]

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

◆ TEST_F() [54/76]

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

◆ TEST_F() [55/76]

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

◆ TEST_F() [56/76]

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

◆ TEST_F() [57/76]

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

◆ TEST_F() [58/76]

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

◆ TEST_F() [59/76]

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

◆ TEST_F() [60/76]

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

◆ TEST_F() [61/76]

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

◆ TEST_F() [62/76]

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

◆ TEST_F() [63/76]

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

◆ TEST_F() [64/76]

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

◆ TEST_F() [65/76]

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

◆ TEST_F() [66/76]

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

◆ TEST_F() [67/76]

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

◆ TEST_F() [68/76]

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

◆ TEST_F() [69/76]

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

◆ TEST_F() [70/76]

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

◆ TEST_F() [71/76]

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

◆ TEST_F() [72/76]

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

◆ TEST_F() [73/76]

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

◆ TEST_F() [74/76]

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

◆ TEST_F() [75/76]

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

◆ TEST_F() [76/76]

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

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 73 of file bloaty/third_party/protobuf/src/google/protobuf/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 78 of file bloaty/third_party/protobuf/src/google/protobuf/text_format_unittest.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:29