Skip to content

Commit

Permalink
Add test to check pfile creation
Browse files Browse the repository at this point in the history
Add test to check that report-converter creates a pfile for each file
that a bug is found in.
  • Loading branch information
milanlakhani committed Feb 3, 2022
1 parent ea49a91 commit 09e660f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def test_metadata(self):
'analyzer_command=' + analyzer_command])
self.assertEqual(0, ret)

self.assertEqual(
len(glob.glob(os.path.join(tmp_dir, '*.plist'))), 2)

metadata_file = os.path.join(tmp_dir, "metadata.json")
self.assertTrue(os.path.exists(metadata_file))

Expand Down
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package pgk

type T2 int

var Y2, Z2 int
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

0 comments on commit 09e660f

Please sign in to comment.