-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test to check that report-converter creates a pfile for each file that a bug is found in.
- Loading branch information
1 parent
ea49a91
commit 09e660f
Showing
4 changed files
with
11 additions
and
1 deletion.
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
2 changes: 1 addition & 1 deletion
2
tools/report-converter/tests/functional/cmdline/test_files/Makefile
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
all: | ||
golint ./files/simple.go > simple.out | ||
golint ./files/simple.go ./files/b/simple.go > simple.out |
5 changes: 5 additions & 0 deletions
5
tools/report-converter/tests/functional/cmdline/test_files/files/b/simple.go
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,5 @@ | ||
package pgk | ||
|
||
type T2 int | ||
|
||
var Y2, Z2 int |
2 changes: 2 additions & 0 deletions
2
tools/report-converter/tests/functional/cmdline/test_files/simple.out
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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
./files/simple.go:3:6: exported type T should have comment or be unexported | ||
./files/simple.go:5:5: exported var Z should have its own declaration | ||
./files/b/simple.go:3:6: exported type T2 should have comment or be unexported | ||
./files/b/simple.go:5:5: exported var Z2 should have its own declaration |