Public Member Functions | Private Member Functions | List of all members
com.google.protobuf.ParserTest Class Reference
Inheritance diagram for com.google.protobuf.ParserTest:
Inheritance graph
[legend]

Public Member Functions

void testGeneratedMessageParserSingleton () throws Exception
 
void testNormalMessage () throws Exception
 
void testOptimizeForSize () throws Exception
 
void testParseDelimitedFrom_firstByteInterrupted_preservesCause ()
 
void testParseDelimitedFrom_secondByteInterrupted_preservesCause ()
 
void testParseDelimitedTo () throws Exception
 
void testParseExtensions () throws Exception
 
void testParsePacked () throws Exception
 
void testParsePartial () throws Exception
 
void testParseUnknownFields () throws Exception
 
void testParsingMerge () throws Exception
 

Private Member Functions

void assertMessageEquals (MessageLite expected, MessageLite actual) throws Exception
 
void assertMessageMerged (TestAllTypes allTypes) throws Exception
 
void assertRoundTripEquals (MessageLite message) throws Exception
 
void assertRoundTripEquals (MessageLite message, ExtensionRegistryLite registry) throws Exception
 
byte[] generatePaddingArray (byte[] data, int offset, int padding)
 

Detailed Description

Unit test for Parser.

Author
liuji.nosp@m.si@g.nosp@m.oogle.nosp@m..com (Pherl Liu)

Definition at line 54 of file core/src/test/java/com/google/protobuf/ParserTest.java.

Member Function Documentation

◆ assertMessageEquals()

void com.google.protobuf.ParserTest.assertMessageEquals ( MessageLite  expected,
MessageLite  actual 
) throws Exception
inlineprivate

◆ assertMessageMerged()

void com.google.protobuf.ParserTest.assertMessageMerged ( TestAllTypes  allTypes) throws Exception
inlineprivate

Helper method for testParsingMerge().

Definition at line 208 of file core/src/test/java/com/google/protobuf/ParserTest.java.

◆ assertRoundTripEquals() [1/2]

void com.google.protobuf.ParserTest.assertRoundTripEquals ( MessageLite  message) throws Exception
inlineprivate

◆ assertRoundTripEquals() [2/2]

void com.google.protobuf.ParserTest.assertRoundTripEquals ( MessageLite  message,
ExtensionRegistryLite  registry 
) throws Exception
inlineprivate

◆ generatePaddingArray()

byte [] com.google.protobuf.ParserTest.generatePaddingArray ( byte[]  data,
int  offset,
int  padding 
)
inlineprivate

◆ testGeneratedMessageParserSingleton()

void com.google.protobuf.ParserTest.testGeneratedMessageParserSingleton ( ) throws Exception
inline

◆ testNormalMessage()

void com.google.protobuf.ParserTest.testNormalMessage ( ) throws Exception
inline

◆ testOptimizeForSize()

void com.google.protobuf.ParserTest.testOptimizeForSize ( ) throws Exception
inline

◆ testParseDelimitedFrom_firstByteInterrupted_preservesCause()

void com.google.protobuf.ParserTest.testParseDelimitedFrom_firstByteInterrupted_preservesCause ( )
inline

◆ testParseDelimitedFrom_secondByteInterrupted_preservesCause()

void com.google.protobuf.ParserTest.testParseDelimitedFrom_secondByteInterrupted_preservesCause ( )
inline

◆ testParseDelimitedTo()

void com.google.protobuf.ParserTest.testParseDelimitedTo ( ) throws Exception
inline

◆ testParseExtensions()

void com.google.protobuf.ParserTest.testParseExtensions ( ) throws Exception
inline

◆ testParsePacked()

void com.google.protobuf.ParserTest.testParsePacked ( ) throws Exception
inline

◆ testParsePartial()

void com.google.protobuf.ParserTest.testParsePartial ( ) throws Exception
inline

◆ testParseUnknownFields()

void com.google.protobuf.ParserTest.testParseUnknownFields ( ) throws Exception
inline

◆ testParsingMerge()

void com.google.protobuf.ParserTest.testParsingMerge ( ) throws Exception
inline

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


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