Path 1: 11 calls (0.37)

'/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/config/functional/toml/toml_with_unknown_option.toml' (1) '/Users/andrehora/Document...

dict (11)

dict (11)

1def get_expected_configuration(
2    configuration_path: str, default_configuration: PylintConfiguration
3) -> PylintConfiguration:
4    """Get the expected parsed configuration of a configuration functional test."""
5    result = copy.deepcopy(default_configuration)
6    config_as_json = get_expected_or_default(
7        configuration_path, suffix="result.json", default="{}"
8    )
9    to_override = json.loads(config_as_json)
10    for key, value in to_override.items():
11        if key == EXPECTED_CONF_APPEND_KEY:
12            for fkey, fvalue in value.items():
13                result[fkey] += fvalue
14        elif key == EXPECTED_CONF_REMOVE_KEY:
15            for fkey, fvalue in value.items():
16                new_value = []
17                for old_value in result[fkey]:
18                    if old_value not in fvalue:
19                        new_value.append(old_value)
20                result[fkey] = new_value
21        else:
22            result[key] = value
23    return result
            

Path 2: 10 calls (0.33)

'/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/config/functional/toml/rich_types.toml' (1) '/Users/andrehora/Documents/git/projects...

dict (10)

dict (10)

1def get_expected_configuration(
2    configuration_path: str, default_configuration: PylintConfiguration
3) -> PylintConfiguration:
4    """Get the expected parsed configuration of a configuration functional test."""
5    result = copy.deepcopy(default_configuration)
6    config_as_json = get_expected_or_default(
7        configuration_path, suffix="result.json", default="{}"
8    )
9    to_override = json.loads(config_as_json)
10    for key, value in to_override.items():
11        if key == EXPECTED_CONF_APPEND_KEY:
12            for fkey, fvalue in value.items():
13                result[fkey] += fvalue
14        elif key == EXPECTED_CONF_REMOVE_KEY:
15            for fkey, fvalue in value.items():
16                new_value = []
17                for old_value in result[fkey]:
18                    if old_value not in fvalue:
19                        new_value.append(old_value)
20                result[fkey] = new_value
21        else:
22            result[key] = value
23    return result
            

Path 3: 5 calls (0.17)

'/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/config/functional/toml/toml_without_pylint.toml' (1) '/Users/andrehora/Documents/git...

dict (5)

dict (5)

1def get_expected_configuration(
2    configuration_path: str, default_configuration: PylintConfiguration
3) -> PylintConfiguration:
4    """Get the expected parsed configuration of a configuration functional test."""
5    result = copy.deepcopy(default_configuration)
6    config_as_json = get_expected_or_default(
7        configuration_path, suffix="result.json", default="{}"
8    )
9    to_override = json.loads(config_as_json)
10    for key, value in to_override.items():
11        if key == EXPECTED_CONF_APPEND_KEY:
12            for fkey, fvalue in value.items():
13                result[fkey] += fvalue
14        elif key == EXPECTED_CONF_REMOVE_KEY:
15            for fkey, fvalue in value.items():
16                new_value = []
17                for old_value in result[fkey]:
18                    if old_value not in fvalue:
19                        new_value.append(old_value)
20                result[fkey] = new_value
21        else:
22            result[key] = value
23    return result
            

Path 4: 2 calls (0.07)

'/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/config/functional/toml/toml_with_enable.toml' (1) '/Users/andrehora/Documents/git/pr...

dict (2)

dict (2)

1def get_expected_configuration(
2    configuration_path: str, default_configuration: PylintConfiguration
3) -> PylintConfiguration:
4    """Get the expected parsed configuration of a configuration functional test."""
5    result = copy.deepcopy(default_configuration)
6    config_as_json = get_expected_or_default(
7        configuration_path, suffix="result.json", default="{}"
8    )
9    to_override = json.loads(config_as_json)
10    for key, value in to_override.items():
11        if key == EXPECTED_CONF_APPEND_KEY:
12            for fkey, fvalue in value.items():
13                result[fkey] += fvalue
14        elif key == EXPECTED_CONF_REMOVE_KEY:
15            for fkey, fvalue in value.items():
16                new_value = []
17                for old_value in result[fkey]:
18                    if old_value not in fvalue:
19                        new_value.append(old_value)
20                result[fkey] = new_value
21        else:
22            result[key] = value
23    return result
            

Path 5: 1 calls (0.03)

'/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/config/functional/toml/issue_4580/top_level_disable.toml' (1)

dict (1)

dict (1)

1def get_expected_configuration(
2    configuration_path: str, default_configuration: PylintConfiguration
3) -> PylintConfiguration:
4    """Get the expected parsed configuration of a configuration functional test."""
5    result = copy.deepcopy(default_configuration)
6    config_as_json = get_expected_or_default(
7        configuration_path, suffix="result.json", default="{}"
8    )
9    to_override = json.loads(config_as_json)
10    for key, value in to_override.items():
11        if key == EXPECTED_CONF_APPEND_KEY:
12            for fkey, fvalue in value.items():
13                result[fkey] += fvalue
14        elif key == EXPECTED_CONF_REMOVE_KEY:
15            for fkey, fvalue in value.items():
16                new_value = []
17                for old_value in result[fkey]:
18                    if old_value not in fvalue:
19                        new_value.append(old_value)
20                result[fkey] = new_value
21        else:
22            result[key] = value
23    return result
            

Path 6: 1 calls (0.03)

'/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/config/functional/ini/pylintrc_with_deleted_message.ini' (1)

dict (1)

dict (1)

1def get_expected_configuration(
2    configuration_path: str, default_configuration: PylintConfiguration
3) -> PylintConfiguration:
4    """Get the expected parsed configuration of a configuration functional test."""
5    result = copy.deepcopy(default_configuration)
6    config_as_json = get_expected_or_default(
7        configuration_path, suffix="result.json", default="{}"
8    )
9    to_override = json.loads(config_as_json)
10    for key, value in to_override.items():
11        if key == EXPECTED_CONF_APPEND_KEY:
12            for fkey, fvalue in value.items():
13                result[fkey] += fvalue
14        elif key == EXPECTED_CONF_REMOVE_KEY:
15            for fkey, fvalue in value.items():
16                new_value = []
17                for old_value in result[fkey]:
18                    if old_value not in fvalue:
19                        new_value.append(old_value)
20                result[fkey] = new_value
21        else:
22            result[key] = value
23    return result