def test_damlast_parse_type_con_name(): name = parse_type_con_name("*") assert package_ref(name) == "*" assert package_local_name(name) == "*"
def test_damlast_parse_type_con_name_fully_qualified(): name = parse_type_con_name( "abc123def456abc123def456:SomeModule:SomeEntity") assert package_ref(name) == "abc123def456abc123def456" assert package_local_name(name) == "SomeModule:SomeEntity"
def test_damlast_parse_type_con_name_package_only(): name = parse_type_con_name("abc123def456abc123def456:*") assert package_ref(name) == "abc123def456abc123def456" assert package_local_name(name) == "*"
def test_damlast_parse_type_con_name_unknown_package(): name = parse_type_con_name("SomeModule:SomeEntity") assert package_ref(name) == "*" assert package_local_name(name) == "SomeModule:SomeEntity"