MCPcopy Index your code
hub / github.com/RustPython/RustPython / check_files_present

Method check_files_present

Lib/test/test_tarfile.py:3363–3371  ·  view source on GitHub ↗
(self, directory)

Source from the content-addressed store, hash-verified

3361 shutil.rmtree(cls.control_dir)
3362
3363 def check_files_present(self, directory):
3364 got_paths = set(
3365 p.relative_to(directory)
3366 for p in pathlib.Path(directory).glob('**/*'))
3367 if self.extraction_filter in (None, 'data'):
3368 # The 'data' filter is expected to reject special files
3369 for path in 'ustar/fifotype', 'ustar/blktype', 'ustar/chrtype':
3370 got_paths.discard(pathlib.Path(path))
3371 self.assertEqual(self.control_paths, got_paths)
3372
3373 @contextmanager
3374 def extract_with_none(self, *attr_names):

Callers 1

extract_with_noneMethod · 0.95

Calls 5

setFunction · 0.85
relative_toMethod · 0.45
globMethod · 0.45
discardMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected