Skip to content

Commit 936350c

Browse files
committed
Fix failing test
Signed-off-by: Maharshi Basu <basumaharshi10@gmail.com>
1 parent 7b69619 commit 936350c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

checkers/discover/generate_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ func TestGenerateAnalyzerRegistry(t *testing.T) {
1515
1616
import (
1717
"globstar.dev/analysis"
18+
"globstar.dev/customanalyzer/checkers"
1819
)
1920
2021
var customCheckers []*analysis.Analyzer = []*analysis.Analyzer{}`,
@@ -26,6 +27,7 @@ var customCheckers []*analysis.Analyzer = []*analysis.Analyzer{}`,
2627
2728
import (
2829
"globstar.dev/analysis"
30+
"globstar.dev/customanalyzer/checkers"
2931
)
3032
3133
var customCheckers []*analysis.Analyzer = []*analysis.Analyzer{
@@ -37,7 +39,7 @@ var customCheckers []*analysis.Analyzer = []*analysis.Analyzer{
3739
for _, tt := range tests {
3840
t.Run(tt.name, func(t *testing.T) {
3941
if got := generateAnalyzerRegistry(tt.goCheckers); got != tt.want {
40-
t.Errorf("generateAnalyzerRegistry() = %v, want %v", got, tt.want)
42+
t.Errorf("generateAnalyzerRegistry() = \n%v, want \n%v", got, tt.want)
4143
}
4244
})
4345
}

0 commit comments

Comments
 (0)