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 Namespaces and TestCases. Namespaces must be provided as IonLists while TestCases 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.