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

Public Member Functions

void testEncode ()
 
void testEncode ()
 
void testEncode_insufficientSpace ()
 
void testEncode_insufficientSpace ()
 
void testInvalidSurrogateCodepoint ()
 
void testInvalidSurrogateCodepoint ()
 
void testMaxCodepointExceeded ()
 
void testMaxCodepointExceeded ()
 
void testOverlongIsInvalid ()
 
void testOverlongIsInvalid ()
 
void testValid ()
 
void testValid ()
 

Private Member Functions

void assertEncoding_insufficientSpace (String message)
 
void assertEncoding_insufficientSpace (String message)
 
void assertExceptionMessage (Throwable t, int index)
 

Static Private Member Functions

static void assertEncoding (String message)
 
static void assertEncoding (String message)
 
static void assertIsValid (byte[] data, boolean valid)
 
static void assertIsValid (byte[] data, boolean valid)
 
static byte[] encodeToByteArray (String message, int length, Utf8.Processor processor)
 
static byte[] encodeToByteArray (String message, int length, Utf8.Processor processor)
 
static byte[] encodeToByteBuffer (String message, int length, boolean direct, Utf8.Processor processor)
 
static byte[] encodeToByteBuffer (String message, int length, boolean direct, Utf8.Processor processor)
 
static String randomString (int maxCodePoint)
 
static String randomString (int maxCodePoint)
 

Static Private Attributes

static final int NUM_CHARS = 16384
 
static final Utf8.Processor safeProcessor = new Utf8.SafeProcessor()
 
static final Utf8.Processor unsafeProcessor = new Utf8.UnsafeProcessor()
 

Detailed Description

Unit tests for Utf8.

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

Member Function Documentation

◆ assertEncoding() [1/2]

static void com.google.protobuf.Utf8Test.assertEncoding ( String  message)
inlinestaticprivate

◆ assertEncoding() [2/2]

static void com.google.protobuf.Utf8Test.assertEncoding ( String  message)
inlinestaticprivate

◆ assertEncoding_insufficientSpace() [1/2]

void com.google.protobuf.Utf8Test.assertEncoding_insufficientSpace ( String  message)
inlineprivate

◆ assertEncoding_insufficientSpace() [2/2]

void com.google.protobuf.Utf8Test.assertEncoding_insufficientSpace ( String  message)
inlineprivate

◆ assertExceptionMessage()

void com.google.protobuf.Utf8Test.assertExceptionMessage ( Throwable  t,
int  index 
)
inlineprivate

◆ assertIsValid() [1/2]

static void com.google.protobuf.Utf8Test.assertIsValid ( byte[]  data,
boolean  valid 
)
inlinestaticprivate

◆ assertIsValid() [2/2]

static void com.google.protobuf.Utf8Test.assertIsValid ( byte[]  data,
boolean  valid 
)
inlinestaticprivate

◆ encodeToByteArray() [1/2]

static byte [] com.google.protobuf.Utf8Test.encodeToByteArray ( String  message,
int  length,
Utf8.Processor  processor 
)
inlinestaticprivate

◆ encodeToByteArray() [2/2]

static byte [] com.google.protobuf.Utf8Test.encodeToByteArray ( String  message,
int  length,
Utf8.Processor  processor 
)
inlinestaticprivate

◆ encodeToByteBuffer() [1/2]

static byte [] com.google.protobuf.Utf8Test.encodeToByteBuffer ( String  message,
int  length,
boolean  direct,
Utf8.Processor  processor 
)
inlinestaticprivate

◆ encodeToByteBuffer() [2/2]

static byte [] com.google.protobuf.Utf8Test.encodeToByteBuffer ( String  message,
int  length,
boolean  direct,
Utf8.Processor  processor 
)
inlinestaticprivate

◆ randomString() [1/2]

static String com.google.protobuf.Utf8Test.randomString ( int  maxCodePoint)
inlinestaticprivate

◆ randomString() [2/2]

static String com.google.protobuf.Utf8Test.randomString ( int  maxCodePoint)
inlinestaticprivate

◆ testEncode() [1/2]

void com.google.protobuf.Utf8Test.testEncode ( )
inline

◆ testEncode() [2/2]

void com.google.protobuf.Utf8Test.testEncode ( )
inline

◆ testEncode_insufficientSpace() [1/2]

void com.google.protobuf.Utf8Test.testEncode_insufficientSpace ( )
inline

◆ testEncode_insufficientSpace() [2/2]

void com.google.protobuf.Utf8Test.testEncode_insufficientSpace ( )
inline

◆ testInvalidSurrogateCodepoint() [1/2]

void com.google.protobuf.Utf8Test.testInvalidSurrogateCodepoint ( )
inline

◆ testInvalidSurrogateCodepoint() [2/2]

void com.google.protobuf.Utf8Test.testInvalidSurrogateCodepoint ( )
inline

◆ testMaxCodepointExceeded() [1/2]

void com.google.protobuf.Utf8Test.testMaxCodepointExceeded ( )
inline

◆ testMaxCodepointExceeded() [2/2]

void com.google.protobuf.Utf8Test.testMaxCodepointExceeded ( )
inline

◆ testOverlongIsInvalid() [1/2]

void com.google.protobuf.Utf8Test.testOverlongIsInvalid ( )
inline

◆ testOverlongIsInvalid() [2/2]

void com.google.protobuf.Utf8Test.testOverlongIsInvalid ( )
inline

◆ testValid() [1/2]

void com.google.protobuf.Utf8Test.testValid ( )
inline

◆ testValid() [2/2]

void com.google.protobuf.Utf8Test.testValid ( )
inline

Member Data Documentation

◆ NUM_CHARS

static final int com.google.protobuf.Utf8Test.NUM_CHARS = 16384
staticprivate

◆ safeProcessor

static final Utf8 Processor com.google.protobuf.Utf8Test.safeProcessor = new Utf8.SafeProcessor()
staticprivate

◆ unsafeProcessor

static final Utf8 Processor com.google.protobuf.Utf8Test.unsafeProcessor = new Utf8.UnsafeProcessor()
staticprivate

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


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