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

Public Member Functions

void testAsReadOnlyByteBuffer ()
 
void testAsReadOnlyByteBuffer ()
 
void testAsReadOnlyByteBufferList ()
 
void testAsReadOnlyByteBufferList ()
 
void testByteAt ()
 
void testByteAt ()
 
void testByteIterable ()
 
void testByteIterable ()
 
void testByteIterator ()
 
void testByteIterator ()
 
void testCharsetToString ()
 
void testCharsetToString ()
 
void testConcat_empty ()
 
void testConcat_empty ()
 
void testCopyTo_ByteArrayOffsetLength ()
 
void testCopyTo_ByteArrayOffsetLength ()
 
void testCopyTo_ByteArrayOffsetLengthErrors ()
 
void testCopyTo_ByteArrayOffsetLengthErrors ()
 
void testCopyTo_ByteBuffer ()
 
void testCopyTo_ByteBuffer ()
 
void testEquals ()
 
void testEquals ()
 
void testEqualsLiteralByteString ()
 
void testEqualsLiteralByteString ()
 
void testEqualsRopeByteString ()
 
void testEqualsRopeByteString ()
 
void testExpectedType ()
 
void testExpectedType ()
 
void testGetTreeDepth ()
 
void testGetTreeDepth ()
 
void testHashCode ()
 
void testHashCode ()
 
void testIsBalanced ()
 
void testIsBalanced ()
 
void testJavaSerialization () throws Exception
 
void testJavaSerialization () throws Exception
 
void testMarkAndReset () throws IOException
 
void testMarkAndReset () throws IOException
 
void testMarkSupported ()
 
void testMarkSupported ()
 
void testNewCodedInput () throws IOException
 
void testNewCodedInput () throws IOException
 
void testNewInput () throws IOException
 
void testNewInput () throws IOException
 
void testNewInput_skip () throws IOException
 
void testNewInput_skip () throws IOException
 
void testNewOutput () throws IOException
 
void testNewOutput () throws IOException
 
void testPartialHash ()
 
void testPartialHash ()
 
void testPeekCachedHashCode ()
 
void testPeekCachedHashCode ()
 
void testSize ()
 
void testSize ()
 
void testToByteArray ()
 
void testToByteArray ()
 
void testToString ()
 
void testToString ()
 
void testToString_raisesException ()
 
void testToString_raisesException ()
 
void testToString_returnsCanonicalEmptyString ()
 
void testToString_returnsCanonicalEmptyString ()
 
void testWriteTo () throws IOException
 
void testWriteTo () throws IOException
 
void testWriteToInternalShouldExposeInternalBufferToOutputStream () throws IOException
 
void testWriteToInternalShouldExposeInternalBufferToOutputStream () throws IOException
 
void testWriteToShouldExposeInternalBufferToByteOutput () throws IOException
 
void testWriteToShouldExposeInternalBufferToByteOutput () throws IOException
 
void testWriteToShouldNotExposeInternalBufferToOutputStream () throws IOException
 
void testWriteToShouldNotExposeInternalBufferToOutputStream () throws IOException
 

Protected Member Functions

String getActualClassName (Object object)
 
String getActualClassName (Object object)
 

Private Member Functions

byte[] mungedBytes ()
 
byte[] mungedBytes ()
 

Static Private Member Functions

static ByteString forString (String str)
 
static ByteString forString (String str)
 

Private Attributes

final ByteBuffer backingBuffer = ByteBuffer.wrap(BYTES.clone())
 
final ByteString testString = new NioByteString(backingBuffer)
 

Static Private Attributes

static final byte[] BYTES = ByteStringTest.getTestBytes(1234, 11337766L)
 
static final String CLASSNAME = NioByteString.class.getSimpleName()
 
static final ByteString EMPTY = new NioByteString(ByteBuffer.wrap(new byte[0]))
 
static final int EXPECTED_HASH = ByteString.wrap(BYTES).hashCode()
 

Detailed Description

Tests for NioByteString.

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

Member Function Documentation

◆ forString() [1/2]

static ByteString com.google.protobuf.NioByteStringTest.forString ( String  str)
inlinestaticprivate

◆ forString() [2/2]

static ByteString com.google.protobuf.NioByteStringTest.forString ( String  str)
inlinestaticprivate

◆ getActualClassName() [1/2]

String com.google.protobuf.NioByteStringTest.getActualClassName ( Object  object)
inlineprotected

◆ getActualClassName() [2/2]

String com.google.protobuf.NioByteStringTest.getActualClassName ( Object  object)
inlineprotected

◆ mungedBytes() [1/2]

byte [] com.google.protobuf.NioByteStringTest.mungedBytes ( )
inlineprivate

◆ mungedBytes() [2/2]

byte [] com.google.protobuf.NioByteStringTest.mungedBytes ( )
inlineprivate

◆ testAsReadOnlyByteBuffer() [1/2]

void com.google.protobuf.NioByteStringTest.testAsReadOnlyByteBuffer ( )
inline

◆ testAsReadOnlyByteBuffer() [2/2]

void com.google.protobuf.NioByteStringTest.testAsReadOnlyByteBuffer ( )
inline

◆ testAsReadOnlyByteBufferList() [1/2]

void com.google.protobuf.NioByteStringTest.testAsReadOnlyByteBufferList ( )
inline

◆ testAsReadOnlyByteBufferList() [2/2]

void com.google.protobuf.NioByteStringTest.testAsReadOnlyByteBufferList ( )
inline

◆ testByteAt() [1/2]

void com.google.protobuf.NioByteStringTest.testByteAt ( )
inline

◆ testByteAt() [2/2]

void com.google.protobuf.NioByteStringTest.testByteAt ( )
inline

◆ testByteIterable() [1/2]

void com.google.protobuf.NioByteStringTest.testByteIterable ( )
inline

◆ testByteIterable() [2/2]

void com.google.protobuf.NioByteStringTest.testByteIterable ( )
inline

◆ testByteIterator() [1/2]

void com.google.protobuf.NioByteStringTest.testByteIterator ( )
inline

◆ testByteIterator() [2/2]

void com.google.protobuf.NioByteStringTest.testByteIterator ( )
inline

◆ testCharsetToString() [1/2]

void com.google.protobuf.NioByteStringTest.testCharsetToString ( )
inline

◆ testCharsetToString() [2/2]

void com.google.protobuf.NioByteStringTest.testCharsetToString ( )
inline

◆ testConcat_empty() [1/2]

void com.google.protobuf.NioByteStringTest.testConcat_empty ( )
inline

Make sure we keep things simple when concatenating with empty. See also {}.

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

◆ testConcat_empty() [2/2]

void com.google.protobuf.NioByteStringTest.testConcat_empty ( )
inline

Make sure we keep things simple when concatenating with empty. See also {}.

Definition at line 720 of file protobuf/java/core/src/test/java/com/google/protobuf/NioByteStringTest.java.

◆ testCopyTo_ByteArrayOffsetLength() [1/2]

void com.google.protobuf.NioByteStringTest.testCopyTo_ByteArrayOffsetLength ( )
inline

◆ testCopyTo_ByteArrayOffsetLength() [2/2]

void com.google.protobuf.NioByteStringTest.testCopyTo_ByteArrayOffsetLength ( )
inline

◆ testCopyTo_ByteArrayOffsetLengthErrors() [1/2]

void com.google.protobuf.NioByteStringTest.testCopyTo_ByteArrayOffsetLengthErrors ( )
inline

◆ testCopyTo_ByteArrayOffsetLengthErrors() [2/2]

void com.google.protobuf.NioByteStringTest.testCopyTo_ByteArrayOffsetLengthErrors ( )
inline

◆ testCopyTo_ByteBuffer() [1/2]

void com.google.protobuf.NioByteStringTest.testCopyTo_ByteBuffer ( )
inline

◆ testCopyTo_ByteBuffer() [2/2]

void com.google.protobuf.NioByteStringTest.testCopyTo_ByteBuffer ( )
inline

◆ testEquals() [1/2]

void com.google.protobuf.NioByteStringTest.testEquals ( )
inline

◆ testEquals() [2/2]

void com.google.protobuf.NioByteStringTest.testEquals ( )
inline

◆ testEqualsLiteralByteString() [1/2]

void com.google.protobuf.NioByteStringTest.testEqualsLiteralByteString ( )
inline

◆ testEqualsLiteralByteString() [2/2]

void com.google.protobuf.NioByteStringTest.testEqualsLiteralByteString ( )
inline

◆ testEqualsRopeByteString() [1/2]

void com.google.protobuf.NioByteStringTest.testEqualsRopeByteString ( )
inline

◆ testEqualsRopeByteString() [2/2]

void com.google.protobuf.NioByteStringTest.testEqualsRopeByteString ( )
inline

◆ testExpectedType() [1/2]

void com.google.protobuf.NioByteStringTest.testExpectedType ( )
inline

◆ testExpectedType() [2/2]

void com.google.protobuf.NioByteStringTest.testExpectedType ( )
inline

◆ testGetTreeDepth() [1/2]

void com.google.protobuf.NioByteStringTest.testGetTreeDepth ( )
inline

◆ testGetTreeDepth() [2/2]

void com.google.protobuf.NioByteStringTest.testGetTreeDepth ( )
inline

◆ testHashCode() [1/2]

void com.google.protobuf.NioByteStringTest.testHashCode ( )
inline

◆ testHashCode() [2/2]

void com.google.protobuf.NioByteStringTest.testHashCode ( )
inline

◆ testIsBalanced() [1/2]

void com.google.protobuf.NioByteStringTest.testIsBalanced ( )
inline

◆ testIsBalanced() [2/2]

void com.google.protobuf.NioByteStringTest.testIsBalanced ( )
inline

◆ testJavaSerialization() [1/2]

void com.google.protobuf.NioByteStringTest.testJavaSerialization ( ) throws Exception
inline

◆ testJavaSerialization() [2/2]

void com.google.protobuf.NioByteStringTest.testJavaSerialization ( ) throws Exception
inline

◆ testMarkAndReset() [1/2]

void com.google.protobuf.NioByteStringTest.testMarkAndReset ( ) throws IOException
inline

◆ testMarkAndReset() [2/2]

void com.google.protobuf.NioByteStringTest.testMarkAndReset ( ) throws IOException
inline

◆ testMarkSupported() [1/2]

void com.google.protobuf.NioByteStringTest.testMarkSupported ( )
inline

◆ testMarkSupported() [2/2]

void com.google.protobuf.NioByteStringTest.testMarkSupported ( )
inline

◆ testNewCodedInput() [1/2]

void com.google.protobuf.NioByteStringTest.testNewCodedInput ( ) throws IOException
inline

◆ testNewCodedInput() [2/2]

void com.google.protobuf.NioByteStringTest.testNewCodedInput ( ) throws IOException
inline

◆ testNewInput() [1/2]

void com.google.protobuf.NioByteStringTest.testNewInput ( ) throws IOException
inline

◆ testNewInput() [2/2]

void com.google.protobuf.NioByteStringTest.testNewInput ( ) throws IOException
inline

◆ testNewInput_skip() [1/2]

void com.google.protobuf.NioByteStringTest.testNewInput_skip ( ) throws IOException
inline

◆ testNewInput_skip() [2/2]

void com.google.protobuf.NioByteStringTest.testNewInput_skip ( ) throws IOException
inline

◆ testNewOutput() [1/2]

void com.google.protobuf.NioByteStringTest.testNewOutput ( ) throws IOException
inline

◆ testNewOutput() [2/2]

void com.google.protobuf.NioByteStringTest.testNewOutput ( ) throws IOException
inline

◆ testPartialHash() [1/2]

void com.google.protobuf.NioByteStringTest.testPartialHash ( )
inline

◆ testPartialHash() [2/2]

void com.google.protobuf.NioByteStringTest.testPartialHash ( )
inline

◆ testPeekCachedHashCode() [1/2]

void com.google.protobuf.NioByteStringTest.testPeekCachedHashCode ( )
inline

◆ testPeekCachedHashCode() [2/2]

void com.google.protobuf.NioByteStringTest.testPeekCachedHashCode ( )
inline

◆ testSize() [1/2]

void com.google.protobuf.NioByteStringTest.testSize ( )
inline

◆ testSize() [2/2]

void com.google.protobuf.NioByteStringTest.testSize ( )
inline

◆ testToByteArray() [1/2]

void com.google.protobuf.NioByteStringTest.testToByteArray ( )
inline

◆ testToByteArray() [2/2]

void com.google.protobuf.NioByteStringTest.testToByteArray ( )
inline

◆ testToString() [1/2]

void com.google.protobuf.NioByteStringTest.testToString ( )
inline

◆ testToString() [2/2]

void com.google.protobuf.NioByteStringTest.testToString ( )
inline

◆ testToString_raisesException() [1/2]

void com.google.protobuf.NioByteStringTest.testToString_raisesException ( )
inline

◆ testToString_raisesException() [2/2]

void com.google.protobuf.NioByteStringTest.testToString_raisesException ( )
inline

◆ testToString_returnsCanonicalEmptyString() [1/2]

void com.google.protobuf.NioByteStringTest.testToString_returnsCanonicalEmptyString ( )
inline

◆ testToString_returnsCanonicalEmptyString() [2/2]

void com.google.protobuf.NioByteStringTest.testToString_returnsCanonicalEmptyString ( )
inline

◆ testWriteTo() [1/2]

void com.google.protobuf.NioByteStringTest.testWriteTo ( ) throws IOException
inline

◆ testWriteTo() [2/2]

void com.google.protobuf.NioByteStringTest.testWriteTo ( ) throws IOException
inline

◆ testWriteToInternalShouldExposeInternalBufferToOutputStream() [1/2]

void com.google.protobuf.NioByteStringTest.testWriteToInternalShouldExposeInternalBufferToOutputStream ( ) throws IOException
inline

◆ testWriteToInternalShouldExposeInternalBufferToOutputStream() [2/2]

void com.google.protobuf.NioByteStringTest.testWriteToInternalShouldExposeInternalBufferToOutputStream ( ) throws IOException
inline

◆ testWriteToShouldExposeInternalBufferToByteOutput() [1/2]

void com.google.protobuf.NioByteStringTest.testWriteToShouldExposeInternalBufferToByteOutput ( ) throws IOException
inline

◆ testWriteToShouldExposeInternalBufferToByteOutput() [2/2]

void com.google.protobuf.NioByteStringTest.testWriteToShouldExposeInternalBufferToByteOutput ( ) throws IOException
inline

◆ testWriteToShouldNotExposeInternalBufferToOutputStream() [1/2]

void com.google.protobuf.NioByteStringTest.testWriteToShouldNotExposeInternalBufferToOutputStream ( ) throws IOException
inline

◆ testWriteToShouldNotExposeInternalBufferToOutputStream() [2/2]

void com.google.protobuf.NioByteStringTest.testWriteToShouldNotExposeInternalBufferToOutputStream ( ) throws IOException
inline

Member Data Documentation

◆ backingBuffer

final ByteBuffer com.google.protobuf.NioByteStringTest.backingBuffer = ByteBuffer.wrap(BYTES.clone())
private

◆ BYTES

final byte [] com.google.protobuf.NioByteStringTest.BYTES = ByteStringTest.getTestBytes(1234, 11337766L)
staticprivate

◆ CLASSNAME

static final String com.google.protobuf.NioByteStringTest.CLASSNAME = NioByteString.class.getSimpleName()
staticprivate

◆ EMPTY

static final ByteString com.google.protobuf.NioByteStringTest.EMPTY = new NioByteString(ByteBuffer.wrap(new byte[0]))
staticprivate

◆ EXPECTED_HASH

static final int com.google.protobuf.NioByteStringTest.EXPECTED_HASH = ByteString.wrap(BYTES).hashCode()
staticprivate

◆ testString

final ByteString com.google.protobuf.NioByteStringTest.testString = new NioByteString(backingBuffer)
private

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


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