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

Method checkReloading

src/test/java/com/amazon/ion/LoaderTest.java:366–376  ·  view source on GitHub ↗
(IonDatagram dg)

Source from the content-addressed store, hash-verified

364 }
365
366 public void checkReloading(IonDatagram dg)
367 {
368 byte[] binary = dg.getBytes();
369
370 IonDatagram dg2 = loader().load(binary);
371 assertEquals(1, dg2.size());
372 IonStruct struct = (IonStruct) dg2.get(0);
373 assertTrue(struct.hasTypeAnnotation("ann"));
374 IonSymbol value = (IonSymbol) struct.get("field");
375 checkSymbol("value", value);
376 }
377
378 @Test
379 public void testSingleValue()

Callers 1

Calls 9

sizeMethod · 0.95
getMethod · 0.95
getMethod · 0.95
loaderMethod · 0.80
getBytesMethod · 0.65
loadMethod · 0.65
hasTypeAnnotationMethod · 0.65
assertEqualsMethod · 0.45
checkSymbolMethod · 0.45

Tested by

no test coverage detected