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

Function write_source_file_header

gjs/coverage.cpp:76–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76[[nodiscard]]
77static 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]]
88static GErrorResult<> copy_source_file_to_coverage_output(

Callers 1

coverage.cppFile · 0.85

Calls 5

get_file_identifierFunction · 0.85
ErrFunction · 0.85
outMethod · 0.45
getMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected