Unit tests for Utf8.
Definition at line 40 of file Utf8Test.java.
◆ assertEncoding()
static void com.google.protobuf.Utf8Test.assertEncoding |
( |
String |
message | ) |
|
|
inlinestaticprivate |
◆ assertEncoding_insufficientSpace()
void com.google.protobuf.Utf8Test.assertEncoding_insufficientSpace |
( |
String |
message | ) |
|
|
inlineprivate |
◆ assertExceptionMessage()
void com.google.protobuf.Utf8Test.assertExceptionMessage |
( |
Throwable |
t, |
|
|
int |
index |
|
) |
| |
|
inlineprivate |
◆ assertIsValid()
static void com.google.protobuf.Utf8Test.assertIsValid |
( |
byte[] |
data, |
|
|
boolean |
valid |
|
) |
| |
|
inlinestaticprivate |
◆ encodeToByteArray()
static byte [] com.google.protobuf.Utf8Test.encodeToByteArray |
( |
String |
message, |
|
|
int |
length, |
|
|
Utf8.Processor |
processor |
|
) |
| |
|
inlinestaticprivate |
◆ encodeToByteBuffer()
static byte [] com.google.protobuf.Utf8Test.encodeToByteBuffer |
( |
String |
message, |
|
|
int |
length, |
|
|
boolean |
direct, |
|
|
Utf8.Processor |
processor |
|
) |
| |
|
inlinestaticprivate |
◆ randomString()
static String com.google.protobuf.Utf8Test.randomString |
( |
int |
maxCodePoint | ) |
|
|
inlinestaticprivate |
◆ testEncode()
void com.google.protobuf.Utf8Test.testEncode |
( |
| ) |
|
|
inline |
◆ testEncode_insufficientSpace()
void com.google.protobuf.Utf8Test.testEncode_insufficientSpace |
( |
| ) |
|
|
inline |
◆ testInvalidSurrogateCodepoint()
void com.google.protobuf.Utf8Test.testInvalidSurrogateCodepoint |
( |
| ) |
|
|
inline |
◆ testMaxCodepointExceeded()
void com.google.protobuf.Utf8Test.testMaxCodepointExceeded |
( |
| ) |
|
|
inline |
◆ testOverlongIsInvalid()
void com.google.protobuf.Utf8Test.testOverlongIsInvalid |
( |
| ) |
|
|
inline |
◆ testValid()
void com.google.protobuf.Utf8Test.testValid |
( |
| ) |
|
|
inline |
◆ NUM_CHARS
final int com.google.protobuf.Utf8Test.NUM_CHARS = 16384 |
|
staticprivate |
◆ safeProcessor
final Utf8.Processor com.google.protobuf.Utf8Test.safeProcessor = new Utf8.SafeProcessor() |
|
staticprivate |
◆ unsafeProcessor
final Utf8.Processor com.google.protobuf.Utf8Test.unsafeProcessor = new Utf8.UnsafeProcessor() |
|
staticprivate |
The documentation for this class was generated from the following file: