INNER CODE UNIT · Python

local_name

dotnet/sdk · .github/ci-quality-monitor/parse-test-results.py:6

def local_name(element):
    return element.tag.rsplit("}", 1)[-1]


def child_text(element, name):
    if element is None:
        return ""
    for child in element.iter():
        if local_name(child) == name:
            return child.text or ""
    return ""


def test_definitions(root):
    definitions = {}
    for unit_test in root.iter():
        if local_name(unit_test) != "UnitTest":
            continue

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…