# Path: rebasehelper/plugins/plugin_manager.py
# class PluginManager:
#     COLLECTIONS: List[Type[PluginCollection]] = [
#         BuildLogHookCollection,
#         BuildToolCollection,
#         SRPMBuildToolCollection,
#         CheckerCollection,
#         OutputToolCollection,
#         SpecHookCollection,
#         VersioneerCollection,
#     ]
#     def __init__(self):
#         def convert_class_name(class_name):
#     def get_options(self) -> Options:
#     def __getattr__(self, name):
# 
# Path: rebasehelper/tests/conftest.py
# TEST_FILES_DIR: str = os.path.join(TESTS_DIR, 'testing_files')


from typing import List
from rebasehelper.plugins.plugin_manager import plugin_manager
from rebasehelper.tests.conftest import TEST_FILES_DIR




class TestPkgDiff:
    FILE_XML: str = "files.xml"
    TEST_FILES: List[str] = [
        FILE_XML,
    ]

    def get_data(self):
        data = {'moved': ['/usr/src/debug/iproute2-3.12.0/test/mytest.c',
                          '/usr/src/debug/iproute2-3.12.0/test/mytest2.c'],
                'changed': ['/usr/include/test.h']}
        return data

    def test_fill_dictionary(self):
        expected_dict = {'added': ['/usr/sbin/test',
                                   '/usr/sbin/pkg-*/binary_test',
                                   '/usr/lib64/libtest.so',
                                   '/usr/lib64/libtest.so.1'],
                         'removed': ['/usr/sbin/my_test',
                                     '/usr/sbin/pkg-*/binary_test',
                                     '/usr/lib64/libtest2.so',
                                     '/usr/lib64/libtest2.so.1'],
                         'changed': ['/usr/share/test.man'],
                         'moved': ['/usr/local/test.sh',
                                   '/usr/sbin/pkg-*/binary_test;/usr/sbin/pkg-*/binary_test (1%)'],
                         'renamed': ['/usr/lib/libtest3.so.3',
                                     '/usr/lib/libtest3.so']}

# Path: rebasehelper/plugins/plugin_manager.py
# class PluginManager:
#     COLLECTIONS: List[Type[PluginCollection]] = [
#         BuildLogHookCollection,
#         BuildToolCollection,
#         SRPMBuildToolCollection,
#         CheckerCollection,
#         OutputToolCollection,
#         SpecHookCollection,
#         VersioneerCollection,
#     ]
#     def __init__(self):
#         def convert_class_name(class_name):
#     def get_options(self) -> Options:
#     def __getattr__(self, name):
# 
# Path: rebasehelper/tests/conftest.py
# TEST_FILES_DIR: str = os.path.join(TESTS_DIR, 'testing_files')


# Path: rebasehelper/tests/plugins/test_checkers.py
from typing import List
from rebasehelper.plugins.plugin_manager import plugin_manager
from rebasehelper.tests.conftest import TEST_FILES_DIR





class TestPkgDiff:
    FILE_XML: str = "files.xml"
    TEST_FILES: List[str] = [
        FILE_XML,
    ]

    def get_data(self):
        data = {'moved': ['/usr/src/debug/iproute2-3.12.0/test/mytest.c',
                          '/usr/src/debug/iproute2-3.12.0/test/mytest2.c'],
                'changed': ['/usr/include/test.h']}
        return data

    def test_fill_dictionary(self):
        expected_dict = {'added': ['/usr/sbin/test',
                                   '/usr/sbin/pkg-*/binary_test',
                                   '/usr/lib64/libtest.so',
                                   '/usr/lib64/libtest.so.1'],
                         'removed': ['/usr/sbin/my_test',
                                     '/usr/sbin/pkg-*/binary_test',
                                     '/usr/lib64/libtest2.so',
                                     '/usr/lib64/libtest2.so.1'],
                         'changed': ['/usr/share/test.man'],
                         'moved': ['/usr/local/test.sh',
                                   '/usr/sbin/pkg-*/binary_test;/usr/sbin/pkg-*/binary_test (1%)'],
                         'renamed': ['/usr/lib/libtest3.so.3',
                                     '/usr/lib/libtest3.so']}

        plugin_manager.checkers.plugins['pkgdiff'].results_dir = TEST_FILES_DIR