refactor: add support for dotnet test output file links
This commit is contained in:
parent
582d3d1066
commit
316b65a0f7
1 changed files with 5 additions and 0 deletions
|
|
@ -43,6 +43,11 @@ pub fn parse(link: []const u8) error{InvalidFileLink}!Dest {
|
||||||
file.path = link;
|
file.path = link;
|
||||||
break :blk null;
|
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 {
|
} else {
|
||||||
file.line = std.fmt.parseInt(usize, line_, 10) catch blk: {
|
file.line = std.fmt.parseInt(usize, line_, 10) catch blk: {
|
||||||
file.path = link;
|
file.path = link;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue