Exemple #1
0
def test_damlast_parse_type_con_name():
    name = parse_type_con_name("*")

    assert package_ref(name) == "*"
    assert package_local_name(name) == "*"
Exemple #2
0
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"
Exemple #3
0
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) == "*"
Exemple #4
0
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"