diff --git a/app/analyze/processors/github_go_test.go b/app/analyze/processors/github_go_test.go index 19734ac..c18ea99 100644 --- a/app/analyze/processors/github_go_test.go +++ b/app/analyze/processors/github_go_test.go @@ -45,6 +45,22 @@ var testPR = &gh.PullRequest{ } var testAnalysisGUID = "test-guid" + func BadFunc() { + if true { + return + } else { + getNopFetcher(nil) + } +} + + func BadFunc2() { + if false { + return + } else { + getNopFetcher(nil) + } +} + func getFakeLinters(ctrl *gomock.Controller, issues ...result.Issue) []linters.Linter { a := linters.NewMockLinter(ctrl) a.EXPECT(). diff --git a/badpkg/bad.go b/badpkg/bad.go new file mode 100644 index 0000000..e756e6f --- /dev/null +++ b/badpkg/bad.go @@ -0,0 +1 @@ +trash is here