Searched refs:compatible_file (Results 1 – 3 of 3) sorted by relevance
160 self.assertTrue(elf_reader.compatible_file(self._elf_file))161 self.assertTrue(elf_reader.compatible_file(io.BytesIO(b'\x7fELF')))165 self.assertTrue(elf_reader.compatible_file(self._elf_file))169 self.assertFalse(elf_reader.compatible_file(io.BytesIO(b'\x7fELVESF')))197 self.assertTrue(elf_reader.compatible_file(io.BytesIO(b'!<arch>\n')))198 self.assertTrue(elf_reader.compatible_file(self._archive))201 self.assertFalse(elf_reader.compatible_file(io.BytesIO(b'!<arch>')))
188 if elf_reader.compatible_file(fd):195 if elf_reader.compatible_file(db):243 if elf_reader.compatible_file(file):337 if elf_reader.compatible_file(path) or path.endswith('.csv'):351 if not elf_reader.compatible_file(file):
156 def compatible_file(file: Union[BinaryIO, str, Path]) -> bool: function