pub fn test_namespace(element: &OwnedElement) -> Namespace
Expand description

Parses the given OwnedElement to a Namespace. Requires an annotation to provided that will be used to create the name. ‘_namespace’ will be suffixed to the first annotation provided. The namespace can contain sub-namespaces and test cases represented by IonLists and IonStructs respectively. When provided with something other than an IonList or IonStruct, this function will panic.