MCPcopy Create free account
hub / github.com/ElementsProject/elements / is_valid_test_tmpdir

Function is_valid_test_tmpdir

test/functional/combine_logs.py:129–135  ·  view source on GitHub ↗
(basename)

Source from the content-addressed store, hash-verified

127 return os.path.join(tmpdir, basename)
128
129 def is_valid_test_tmpdir(basename):
130 fullpath = join_tmp(basename)
131 return (
132 os.path.isdir(fullpath)
133 and basename.startswith(TMPDIR_PREFIX)
134 and os.access(fullpath, os.R_OK)
135 )
136
137 testdir_paths = [
138 join_tmp(name) for name in os.listdir(tmpdir) if is_valid_test_tmpdir(name)

Callers 1

find_latest_test_dirFunction · 0.70

Calls 1

join_tmpFunction · 0.70

Tested by

no test coverage detected