refactor: add support for dotnet test output file links

This commit is contained in:
CJ van den Berg 2026-02-25 14:57:48 +01:00
parent 582d3d1066
commit 316b65a0f7
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -43,6 +43,11 @@ pub fn parse(link: []const u8) error{InvalidFileLink}!Dest {
file.path = link;
break :blk null;
};
} else if (line_.len > 5 and std.mem.eql(u8, "line ", line_[0..5])) {
file.line = std.fmt.parseInt(usize, line_[5..], 10) catch blk: {
file.path = link;
break :blk null;
};
} else {
file.line = std.fmt.parseInt(usize, line_, 10) catch blk: {
file.path = link;