| 74 | } |
| 75 | |
| 76 | [[nodiscard]] |
| 77 | static GErrorResult<> write_source_file_header(GOutputStream* stream, |
| 78 | GFile* source_file) { |
| 79 | Gjs::AutoChar path{get_file_identifier(source_file)}; |
| 80 | Gjs::AutoError error; |
| 81 | if (!g_output_stream_printf(stream, nullptr, nullptr, error.out(), |
| 82 | "SF:%s\n", path.get())) |
| 83 | return Err(error.release()); |
| 84 | return Ok{}; |
| 85 | } |
| 86 | |
| 87 | [[nodiscard]] |
| 88 | static GErrorResult<> copy_source_file_to_coverage_output( |
no test coverage detected