MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / test_archive_root_stat

Function test_archive_root_stat

tests/languages/ruby_test.py:42–46  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

40 ('rbenv.tar.gz', 'ruby-build.tar.gz', 'ruby-download.tar.gz'),
41)
42def test_archive_root_stat(filename):
43 with _resource_bytesio(filename) as f:
44 with tarfile.open(fileobj=f) as tarf:
45 root, _, _ = filename.partition('.')
46 assert oct(tarf.getmember(root).mode) == '0o755'
47
48
49def _setup_hello_world(tmp_path):

Callers

nothing calls this directly

Calls 1

_resource_bytesioFunction · 0.90

Tested by

no test coverage detected