+ \\
+ \\ ← Back to summary + \\

Coverage Report

+ ); + try writer.print("
{s}
\n", .{filename}); try writer.print( \\
\\
@@ -149,7 +244,8 @@ pub fn writeDetailedFile( \\
\\
\\
- \\
+        \\  
+ \\
, .{ if (lines_fraction >= 0.8) "good" else "bad", lines_fraction * 100.0, @@ -160,56 +256,67 @@ pub fn writeDetailedFile( }); // Try to read the source file - const source_contents = bun.sys.File.readFrom(bun.FD.cwd(), source_path, bun.default_allocator).unwrap() catch brk: { - // If we can't read the file, just show a message + const allocator = std.heap.page_allocator; + const source_file = std.fs.cwd().openFile(source_path, .{}) catch { try writer.print("
Could not read source file: {s}
", .{source_path}); - break :brk ""; + try writer.writeAll("
\n
\n