pub fn ion_data_to_test_document(
all_ion_data: Vec<OwnedElement>
) -> TestDocument
Expand description
Converts a vector of Ion data into a TestDocument
, which can be composed of Namespace
s
and TestCase
s. Namespace
s must be provided as IonLists while TestCase
s must be provided
as IonStructs. Other Ion types will result in a panic.
When encountering a duplicate namespace/test case, a namespace/test case will be added with ‘_0’ suffixed to the end of the name.