MCPcopy Create free account
hub / github.com/GNOME/gjs / write_statistics_and_get_coverage_data

Function write_statistics_and_get_coverage_data

test/gjs-test-coverage.cpp:156–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156static 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
169static char* get_script_identifier(GFile* script) {
170 char* filename = g_file_get_path(script);

Calls 1

Tested by

no test coverage detected