Helper function to create a file ``source.c`` in `dirname` that contains the string in `source`. Returns the file name
(source, dirname)
| 117 | |
| 118 | |
| 119 | def _convert_str_to_file(source, dirname): |
| 120 | """Helper function to create a file ``source.c`` in `dirname` that contains |
| 121 | the string in `source`. Returns the file name |
| 122 | """ |
| 123 | filename = dirname / 'source.c' |
| 124 | with filename.open('w') as f: |
| 125 | f.write(str(source)) |
| 126 | return filename |
| 127 | |
| 128 | |
| 129 | def _make_methods(functions, modname): |
no test coverage detected
searching dependent graphs…