| 154 | } |
| 155 | |
| 156 | static char* write_statistics_and_get_coverage_data(GjsCoverage* coverage, |
| 157 | GFile* lcov_output) { |
| 158 | gjs_coverage_write_statistics(coverage); |
| 159 | |
| 160 | char* coverage_data_contents; |
| 161 | |
| 162 | g_file_load_contents(lcov_output, /* cancellable = */ nullptr, |
| 163 | &coverage_data_contents, /* length out = */ nullptr, |
| 164 | /* etag_out = */ nullptr, /* error = */ nullptr); |
| 165 | |
| 166 | return coverage_data_contents; |
| 167 | } |
| 168 | |
| 169 | static char* get_script_identifier(GFile* script) { |
| 170 | char* filename = g_file_get_path(script); |
no test coverage detected