def setUp(self): self.payload = [0x1, 0x2, 0x3] self.inexisting_service_id = 0xFF self.handle = multiprocessing.Queue() self.server = server.Server(self.handle, self.project_root_directory, self.target, cxxd_mocks.ServicePluginMock(), cxxd_mocks.ServicePluginMock(), cxxd_mocks.ServicePluginMock(), cxxd_mocks.ServicePluginMock())
def setUp(self): import cxxd_mocks from services.source_code_model_service import SourceCodeModel self.service = SourceCodeModel(self.project_root_directory, cxxd_mocks.CxxdConfigParserMock(), cxxd_mocks.ServicePluginMock()) self.unknown_subservice_id = 0xABABABA
def setUp(self): import cxxd_mocks from services.clang_tidy_service import ClangTidy self.service = ClangTidy(self.project_root_directory, CxxdConfigParser(self.cxxd_config.name), cxxd_mocks.ServicePluginMock()) self.unsupported_compilation_database = 'compiler_flags.yaml'
def setUp(self): import cxxd_mocks from services.project_builder_service import ProjectBuilder self.service = ProjectBuilder(self.project_root_directory, CxxdConfigParser(self.cxxd_config.name), cxxd_mocks.ServicePluginMock()) self.build_cmd = 'gcc -o {0}.o -c {1}'.format( self.file_to_be_built.name, self.file_to_be_built.name)
def setUp(self): import cxxd_mocks from services.clang_tidy_service import ClangTidy self.service = ClangTidy( self.project_root_directory, CxxdConfigParser(self.cxxd_config_with_json_comp_db.name, self.project_root_directory), self.target, cxxd_mocks.ServicePluginMock())
def setUp(self): import cxxd_mocks from services.clang_tidy_service import ClangTidy self.service = ClangTidy( self.project_root_directory, CxxdConfigParser('inexisting_config_file', self.project_root_directory), self.target, cxxd_mocks.ServicePluginMock())
def setUp(self): import cxxd_mocks from services.clang_format_service import ClangFormat self.service = ClangFormat( self.project_root_directory, CxxdConfigParser(self.cxxd_config.name, self.project_root_directory), cxxd_mocks.ServicePluginMock())
def setUp(self): import cxxd_mocks, service self.unsupported_request = 0xFF self.payload = [0x1, 0x2, 0x3] self.service = service.Service(cxxd_mocks.ServicePluginMock())