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

Public Member Functions

void setUp () throws Exception
 
void setUp () throws Exception
 
void testAddField ()
 
void testAddField_negative ()
 
void testAddField_withReplacement ()
 
void testAddField_zero ()
 
void testAsMap () throws Exception
 
void testClear () throws Exception
 
void testClear () throws Exception
 
void testClearField () throws Exception
 
void testClearField () throws Exception
 
void testClearField_negative ()
 
void testClearMessage () throws Exception
 
void testClearMessage () throws Exception
 
void testClone ()
 
void testClone_lengthDelimited ()
 
void testCopyFrom () throws Exception
 
void testCopyFrom () throws Exception
 
void testEqualsAndHashCode ()
 
void testEqualsAndHashCode ()
 
void testFieldBuildersAreReusable ()
 
void testFixed32 () throws Exception
 
void testFixed32 () throws Exception
 
void testFixed64 () throws Exception
 
void testFixed64 () throws Exception
 
void testGroup () throws Exception
 
void testGroup () throws Exception
 
void testHasField_negative ()
 
void testLargeVarint () throws Exception
 
void testLargeVarint () throws Exception
 
void testLengthDelimited () throws Exception
 
void testLengthDelimited () throws Exception
 
void testMergeField_negative ()
 
void testMergeFrom () throws Exception
 
void testMergeFrom () throws Exception
 
void testMergeLengthDelimitedField_negative ()
 
void testMergeVarintField_negative ()
 
void testParseKnownAndUnknown () throws Exception
 
void testParseKnownAndUnknown () throws Exception
 
void testParseUnknownEnumValue () throws Exception
 
void testParseUnknownEnumValue () throws Exception
 
void testProto3RoundTrip () throws Exception
 
void testReuse ()
 
void testSerialize () throws Exception
 
void testSerialize () throws Exception
 
void testUnknownExtensions () throws Exception
 
void testUnknownExtensions () throws Exception
 
void testVarint () throws Exception
 
void testVarint () throws Exception
 
void testWrongExtensionTypeTreatedAsUnknown () throws Exception
 
void testWrongExtensionTypeTreatedAsUnknown () throws Exception
 
void testWrongTypeTreatedAsUnknown () throws Exception
 
void testWrongTypeTreatedAsUnknown () throws Exception
 

Private Member Functions

void checkEqualsIsConsistent (UnknownFieldSet set)
 
void checkEqualsIsConsistent (UnknownFieldSet set)
 
void checkNotEqual (UnknownFieldSet s1, UnknownFieldSet s2)
 
void checkNotEqual (UnknownFieldSet s1, UnknownFieldSet s2)
 
UnknownFieldSet.Field getField (String name)
 

Detailed Description

Tests related to unknown field handling.

Author
kento.nosp@m.n@go.nosp@m.ogle..nosp@m.com (Kenton Varda)

Tests related to unknown field handling.

Definition at line 50 of file bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/UnknownFieldSetTest.java.

Member Function Documentation

◆ checkEqualsIsConsistent() [1/2]

void com.google.protobuf.UnknownFieldSetTest.checkEqualsIsConsistent ( UnknownFieldSet  set)
inlineprivate

Asserts that the given field sets are equal and have identical hash codes.

Definition at line 370 of file bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/UnknownFieldSetTest.java.

◆ checkEqualsIsConsistent() [2/2]

void com.google.protobuf.UnknownFieldSetTest.checkEqualsIsConsistent ( UnknownFieldSet  set)
inlineprivate

Asserts that the given field sets are equal and have identical hash codes.

Definition at line 570 of file protobuf/java/core/src/test/java/com/google/protobuf/UnknownFieldSetTest.java.

◆ checkNotEqual() [1/2]

void com.google.protobuf.UnknownFieldSetTest.checkNotEqual ( UnknownFieldSet  s1,
UnknownFieldSet  s2 
)
inlineprivate

Asserts that the given field sets are not equal and have different hash codes.

Note: It's valid for non-equal objects to have the same hash code, so this test is stricter than it needs to be. However, this should happen relatively rarely.

Definition at line 359 of file bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/UnknownFieldSetTest.java.

◆ checkNotEqual() [2/2]

void com.google.protobuf.UnknownFieldSetTest.checkNotEqual ( UnknownFieldSet  s1,
UnknownFieldSet  s2 
)
inlineprivate

Asserts that the given field sets are not equal and have different hash codes.

Note: It's valid for non-equal objects to have the same hash code, so this test is stricter than it needs to be. However, this should happen relatively rarely.

Definition at line 559 of file protobuf/java/core/src/test/java/com/google/protobuf/UnknownFieldSetTest.java.

◆ getField()

UnknownFieldSet.Field com.google.protobuf.UnknownFieldSetTest.getField ( String  name)
inlineprivate

◆ setUp() [1/2]

void com.google.protobuf.UnknownFieldSetTest.setUp ( ) throws Exception
inline

◆ setUp() [2/2]

void com.google.protobuf.UnknownFieldSetTest.setUp ( ) throws Exception
inline

◆ testAddField()

void com.google.protobuf.UnknownFieldSetTest.testAddField ( )
inline

◆ testAddField_negative()

void com.google.protobuf.UnknownFieldSetTest.testAddField_negative ( )
inline

◆ testAddField_withReplacement()

void com.google.protobuf.UnknownFieldSetTest.testAddField_withReplacement ( )
inline

◆ testAddField_zero()

void com.google.protobuf.UnknownFieldSetTest.testAddField_zero ( )
inline

◆ testAsMap()

void com.google.protobuf.UnknownFieldSetTest.testAsMap ( ) throws Exception
inline

◆ testClear() [1/2]

void com.google.protobuf.UnknownFieldSetTest.testClear ( ) throws Exception
inline

◆ testClear() [2/2]

void com.google.protobuf.UnknownFieldSetTest.testClear ( ) throws Exception
inline

◆ testClearField() [1/2]

void com.google.protobuf.UnknownFieldSetTest.testClearField ( ) throws Exception
inline

◆ testClearField() [2/2]

void com.google.protobuf.UnknownFieldSetTest.testClearField ( ) throws Exception
inline

◆ testClearField_negative()

void com.google.protobuf.UnknownFieldSetTest.testClearField_negative ( )
inline

◆ testClearMessage() [1/2]

void com.google.protobuf.UnknownFieldSetTest.testClearMessage ( ) throws Exception
inline

◆ testClearMessage() [2/2]

void com.google.protobuf.UnknownFieldSetTest.testClearMessage ( ) throws Exception
inline

◆ testClone()

void com.google.protobuf.UnknownFieldSetTest.testClone ( )
inline

◆ testClone_lengthDelimited()

void com.google.protobuf.UnknownFieldSetTest.testClone_lengthDelimited ( )
inline

◆ testCopyFrom() [1/2]

void com.google.protobuf.UnknownFieldSetTest.testCopyFrom ( ) throws Exception
inline

◆ testCopyFrom() [2/2]

void com.google.protobuf.UnknownFieldSetTest.testCopyFrom ( ) throws Exception
inline

◆ testEqualsAndHashCode() [1/2]

void com.google.protobuf.UnknownFieldSetTest.testEqualsAndHashCode ( )
inline

◆ testEqualsAndHashCode() [2/2]

void com.google.protobuf.UnknownFieldSetTest.testEqualsAndHashCode ( )
inline

◆ testFieldBuildersAreReusable()

void com.google.protobuf.UnknownFieldSetTest.testFieldBuildersAreReusable ( )
inline

◆ testFixed32() [1/2]

void com.google.protobuf.UnknownFieldSetTest.testFixed32 ( ) throws Exception
inline

◆ testFixed32() [2/2]

void com.google.protobuf.UnknownFieldSetTest.testFixed32 ( ) throws Exception
inline

◆ testFixed64() [1/2]

void com.google.protobuf.UnknownFieldSetTest.testFixed64 ( ) throws Exception
inline

◆ testFixed64() [2/2]

void com.google.protobuf.UnknownFieldSetTest.testFixed64 ( ) throws Exception
inline

◆ testGroup() [1/2]

void com.google.protobuf.UnknownFieldSetTest.testGroup ( ) throws Exception
inline

◆ testGroup() [2/2]

void com.google.protobuf.UnknownFieldSetTest.testGroup ( ) throws Exception
inline

◆ testHasField_negative()

void com.google.protobuf.UnknownFieldSetTest.testHasField_negative ( )
inline

◆ testLargeVarint() [1/2]

void com.google.protobuf.UnknownFieldSetTest.testLargeVarint ( ) throws Exception
inline

◆ testLargeVarint() [2/2]

void com.google.protobuf.UnknownFieldSetTest.testLargeVarint ( ) throws Exception
inline

◆ testLengthDelimited() [1/2]

void com.google.protobuf.UnknownFieldSetTest.testLengthDelimited ( ) throws Exception
inline

◆ testLengthDelimited() [2/2]

void com.google.protobuf.UnknownFieldSetTest.testLengthDelimited ( ) throws Exception
inline

◆ testMergeField_negative()

void com.google.protobuf.UnknownFieldSetTest.testMergeField_negative ( )
inline

◆ testMergeFrom() [1/2]

void com.google.protobuf.UnknownFieldSetTest.testMergeFrom ( ) throws Exception
inline

◆ testMergeFrom() [2/2]

void com.google.protobuf.UnknownFieldSetTest.testMergeFrom ( ) throws Exception
inline

◆ testMergeLengthDelimitedField_negative()

void com.google.protobuf.UnknownFieldSetTest.testMergeLengthDelimitedField_negative ( )
inline

◆ testMergeVarintField_negative()

void com.google.protobuf.UnknownFieldSetTest.testMergeVarintField_negative ( )
inline

◆ testParseKnownAndUnknown() [1/2]

void com.google.protobuf.UnknownFieldSetTest.testParseKnownAndUnknown ( ) throws Exception
inline

◆ testParseKnownAndUnknown() [2/2]

void com.google.protobuf.UnknownFieldSetTest.testParseKnownAndUnknown ( ) throws Exception
inline

◆ testParseUnknownEnumValue() [1/2]

void com.google.protobuf.UnknownFieldSetTest.testParseUnknownEnumValue ( ) throws Exception
inline

◆ testParseUnknownEnumValue() [2/2]

void com.google.protobuf.UnknownFieldSetTest.testParseUnknownEnumValue ( ) throws Exception
inline

◆ testProto3RoundTrip()

void com.google.protobuf.UnknownFieldSetTest.testProto3RoundTrip ( ) throws Exception
inline

◆ testReuse()

void com.google.protobuf.UnknownFieldSetTest.testReuse ( )
inline

◆ testSerialize() [1/2]

void com.google.protobuf.UnknownFieldSetTest.testSerialize ( ) throws Exception
inline

◆ testSerialize() [2/2]

void com.google.protobuf.UnknownFieldSetTest.testSerialize ( ) throws Exception
inline

◆ testUnknownExtensions() [1/2]

void com.google.protobuf.UnknownFieldSetTest.testUnknownExtensions ( ) throws Exception
inline

◆ testUnknownExtensions() [2/2]

void com.google.protobuf.UnknownFieldSetTest.testUnknownExtensions ( ) throws Exception
inline

◆ testVarint() [1/2]

void com.google.protobuf.UnknownFieldSetTest.testVarint ( ) throws Exception
inline

◆ testVarint() [2/2]

void com.google.protobuf.UnknownFieldSetTest.testVarint ( ) throws Exception
inline

◆ testWrongExtensionTypeTreatedAsUnknown() [1/2]

void com.google.protobuf.UnknownFieldSetTest.testWrongExtensionTypeTreatedAsUnknown ( ) throws Exception
inline

◆ testWrongExtensionTypeTreatedAsUnknown() [2/2]

void com.google.protobuf.UnknownFieldSetTest.testWrongExtensionTypeTreatedAsUnknown ( ) throws Exception
inline

◆ testWrongTypeTreatedAsUnknown() [1/2]

void com.google.protobuf.UnknownFieldSetTest.testWrongTypeTreatedAsUnknown ( ) throws Exception
inline

◆ testWrongTypeTreatedAsUnknown() [2/2]

void com.google.protobuf.UnknownFieldSetTest.testWrongTypeTreatedAsUnknown ( ) throws Exception
inline

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


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