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

Method testEmptyBlob

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

Source from the content-addressed store, hash-verified

160 }
161
162 @Test
163 public void testEmptyBlob()
164 throws IOException
165 {
166 IonBlob value = (IonBlob) oneValue("{{ }}");
167 assertFalse(value.isNullValue());
168
169 InputStream in = value.newInputStream();
170 assertEquals("should be at EOF", -1, in.read());
171
172 byte[] bytes = value.getBytes();
173 assertEquals(0, bytes.length);
174
175 StringBuilder buf = new StringBuilder();
176 value.printBase64(buf);
177 assertEquals(0, buf.length());
178 }
179
180 @Test
181 public void testByteSize()

Callers

nothing calls this directly

Calls 8

printBase64Method · 0.95
lengthMethod · 0.80
isNullValueMethod · 0.65
newInputStreamMethod · 0.65
readMethod · 0.65
getBytesMethod · 0.65
oneValueMethod · 0.45
assertEqualsMethod · 0.45

Tested by

no test coverage detected