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

Public Member Functions

void setUp () throws Exception
 
void testClear () throws Exception
 
void testClearMessage () throws Exception
 
void testCopyFrom () throws Exception
 
void testEqualsAndHashCode ()
 
void testFixed32 () throws Exception
 
void testFixed64 () throws Exception
 
void testGroup () throws Exception
 
void testLargeVarint () throws Exception
 
void testLengthDelimited () throws Exception
 
void testMergeFrom () throws Exception
 
void testParseKnownAndUnknown () throws Exception
 
void testParseUnknownEnumValue () throws Exception
 
void testSerialize () throws Exception
 
void testUnknownExtensions () throws Exception
 
void testVarint () throws Exception
 
void testWrongExtensionTypeTreatedAsUnknown () throws Exception
 
void testWrongTypeTreatedAsUnknown () throws Exception
 

Private Member Functions

void checkEqualsIsConsistent (UnknownFieldSet set)
 
void checkNotEqual (UnknownFieldSet s1, UnknownFieldSet s2)
 

Detailed Description

Tests related to unknown field handling.

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

Definition at line 50 of file bloaty/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/UnknownFieldSetTest.java.

Member Function Documentation

◆ checkEqualsIsConsistent()

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

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

Definition at line 428 of file bloaty/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/UnknownFieldSetTest.java.

◆ checkNotEqual()

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

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

Warning
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 415 of file bloaty/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/UnknownFieldSetTest.java.

◆ setUp()

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

◆ testClear()

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

◆ testClearMessage()

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

◆ testCopyFrom()

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

◆ testEqualsAndHashCode()

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

◆ testFixed32()

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

◆ testFixed64()

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

◆ testGroup()

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

◆ testLargeVarint()

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

◆ testLengthDelimited()

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

◆ testMergeFrom()

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

◆ testParseKnownAndUnknown()

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

◆ testParseUnknownEnumValue()

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

◆ testSerialize()

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

◆ testUnknownExtensions()

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

◆ testVarint()

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

◆ testWrongExtensionTypeTreatedAsUnknown()

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

◆ testWrongTypeTreatedAsUnknown()

void com.google.protobuf.test.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:09