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

Function test

tools/python-3.11.9-amd64/Lib/sndhdr.py:234–247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

232#--------------------#
233
234def test():
235 import sys
236 recursive = 0
237 if sys.argv[1:] and sys.argv[1] == '-r':
238 del sys.argv[1:2]
239 recursive = 1
240 try:
241 if sys.argv[1:]:
242 testall(sys.argv[1:], recursive, 1)
243 else:
244 testall(['.'], recursive, 1)
245 except KeyboardInterrupt:
246 sys.stderr.write('\n[Interrupted]\n')
247 sys.exit(1)
248
249def testall(list, recursive, toplevel):
250 import sys

Callers 1

sndhdr.pyFile · 0.70

Calls 3

testallFunction · 0.70
writeMethod · 0.45
exitMethod · 0.45

Tested by

no test coverage detected