-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit allows to properly parse package names, regardless of line endings (`\r\n` or `\n`) used in the `go.mod` file.
- Loading branch information
1 parent
a79d558
commit 02e40ff
Showing
8 changed files
with
60 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* text=auto eol=lf | ||
*.golden text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
internal/gocovshtest/testdata/errors/error_flows_missing_go.mod_file_windows.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
[1;38;2;255;85;85mgo.mod file is not available[0m | ||
|
||
This program must be executed from Go project root. | ||
Run the program from the folder that contains go.mod file. | ||
|
||
[38;2;192;192;192mThe original error was:[0m | ||
[38;2;192;192;192mfailed to determine package name: open testdata/no-go.mod/go.mod: The system cannot find the path specified.[0m | ||
|
||
Press any key to exit | ||
|
11 changes: 11 additions & 0 deletions
11
internal/gocovshtest/testdata/errors/error_flows_missing_source_file_windows.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
[1;38;2;255;85;85mSource code file not found[0m | ||
|
||
A file that appears in the coverage report was not found in the file tree. | ||
Update the coverage report and try again. | ||
|
||
[38;2;192;192;192mThe original error was:[0m | ||
[38;2;192;192;192mopen testdata/errors/invalid_file.go: The system cannot find the file specified.[0m | ||
|
||
Press any key to exit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters