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

Function create_file

Lib/test/test_genericpath.py:17–19  ·  view source on GitHub ↗
(filename, data=b'foo')

Source from the content-addressed store, hash-verified

15
16
17def create_file(filename, data=b'foo'):
18 with open(filename, 'xb', 0) as fp:
19 fp.write(data)
20
21
22class GenericTest:

Callers 11

test_getsizeMethod · 0.70
test_filetimeMethod · 0.70
test_existsMethod · 0.70
test_isdirMethod · 0.70
test_isfileMethod · 0.70
test_samefileMethod · 0.70
test_samestatMethod · 0.70
test_sameopenfileMethod · 0.70
setUpMethod · 0.70

Calls 2

openFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected