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 testClear () throws Exception
 
void testClearField () 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 core/src/test/java/com/google/protobuf/UnknownFieldSetTest.java.

Member Function Documentation

◆ checkEqualsIsConsistent()

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 core/src/test/java/com/google/protobuf/UnknownFieldSetTest.java.

◆ checkNotEqual()

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 core/src/test/java/com/google/protobuf/UnknownFieldSetTest.java.

◆ setUp()

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

◆ testClear()

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

◆ testClearField()

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

◆ testClearMessage()

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

◆ testCopyFrom()

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

◆ testEqualsAndHashCode()

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

◆ testFixed32()

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

◆ testFixed64()

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

◆ testGroup()

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

◆ testLargeVarint()

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

◆ testLengthDelimited()

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

◆ testMergeFrom()

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

◆ testParseKnownAndUnknown()

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

◆ testParseUnknownEnumValue()

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

◆ testSerialize()

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

◆ testUnknownExtensions()

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

◆ testVarint()

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

◆ testWrongExtensionTypeTreatedAsUnknown()

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

◆ testWrongTypeTreatedAsUnknown()

void com.google.protobuf.UnknownFieldSetTest.testWrongTypeTreatedAsUnknown ( ) 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:08