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

Method testPutOfClone

src/test/java/com/amazon/ion/StructTest.java:762–777  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

760 }
761
762 @Test
763 public void testPutOfClone()
764 {
765 IonStruct s = system().newEmptyStruct();
766
767 IonList v1 = system().newEmptyList();
768 IonList v2 = system().clone(v1);
769 s.put("f", v2);
770
771 v1 = system().newList(system().newInt(12));
772 v1.addTypeAnnotation("hi");
773 v2 = system().clone(v1);
774 s.put("g", v2);
775
776 testMultithreadedAccess(s);
777 }
778
779
780 @Test

Callers

nothing calls this directly

Calls 9

putMethod · 0.95
newEmptyStructMethod · 0.65
newEmptyListMethod · 0.65
cloneMethod · 0.65
newListMethod · 0.65
newIntMethod · 0.65
addTypeAnnotationMethod · 0.65
systemMethod · 0.45

Tested by

no test coverage detected