def get_coverage_of_namespace(assembly, covered_lines, name_space, total_lines):
    """Get the coverage of a namespace."""

    assembly_name = assembly["@Name"]
    assembly_covered_lines = assembly["@CoveredStatements"]
    assembly_total_lines = assembly["@TotalStatements"]
    if assembly_name.startswith(name_space):
        total_lines = total_lines + int(assembly_total_lines)
        covered_lines = covered_lines + int(assembly_covered_lines)
    return covered_lines, total_lines