MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / testall

Function testall

tools/python-3.11.9-amd64/Lib/sndhdr.py:249–268  ·  view source on GitHub ↗
(list, recursive, toplevel)

Source from the content-addressed store, hash-verified

247 sys.exit(1)
248
249def testall(list, recursive, toplevel):
250 import sys
251 import os
252 for filename in list:
253 if os.path.isdir(filename):
254 print(filename + '/:', end=' ')
255 if recursive or toplevel:
256 print('recursing down:')
257 import glob
258 names = glob.glob(os.path.join(glob.escape(filename), '*'))
259 testall(names, recursive, 0)
260 else:
261 print('*** directory (use -r) ***')
262 else:
263 print(filename + ':', end=' ')
264 sys.stdout.flush()
265 try:
266 print(what(filename))
267 except OSError:
268 print('*** not found ***')
269
270if __name__ == '__main__':
271 test()

Callers 1

testFunction · 0.70

Calls 7

whatFunction · 0.70
printFunction · 0.50
isdirMethod · 0.45
globMethod · 0.45
joinMethod · 0.45
escapeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected