MCPcopy Create free account
hub / github.com/amazon-ion/ion-java / testByteSize

Method testByteSize

src/test/java/com/amazon/ion/BlobTest.java:180–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

178 }
179
180 @Test
181 public void testByteSize()
182 {
183 for (int i = 0; i < TEST_DATA.length; i++)
184 {
185 IonBlob value = system().newNullBlob();
186 byte[] testBytes = TEST_DATA[i].bytes;
187 value.setBytes(testBytes);
188 assertEquals("unexpected byte size", testBytes.length,
189 value.byteSize());
190 }
191 }
192
193
194 public static final class TestData

Callers

nothing calls this directly

Calls 5

newNullBlobMethod · 0.65
setBytesMethod · 0.65
byteSizeMethod · 0.65
systemMethod · 0.45
assertEqualsMethod · 0.45

Tested by

no test coverage detected