@@ -32,7 +32,7 @@ var _ = Describe("Formatter", func() {
32
32
NumFound : 0 ,
33
33
},
34
34
}
35
- want := sonarIssues {
35
+ want := & sonarIssues {
36
36
SonarIssues : []sonarIssue {
37
37
{
38
38
EngineID : "gosec" ,
@@ -56,7 +56,7 @@ var _ = Describe("Formatter", func() {
56
56
57
57
issues , err := convertToSonarIssues ([]string {rootPath }, data )
58
58
Expect (err ).ShouldNot (HaveOccurred ())
59
- Expect (issues ).To (Equal (want ))
59
+ Expect (* issues ).To (Equal (* want ))
60
60
})
61
61
62
62
It ("it should parse the report info with files in subfolders" , func () {
@@ -80,7 +80,7 @@ var _ = Describe("Formatter", func() {
80
80
NumFound : 0 ,
81
81
},
82
82
}
83
- want := sonarIssues {
83
+ want := & sonarIssues {
84
84
SonarIssues : []sonarIssue {
85
85
{
86
86
EngineID : "gosec" ,
@@ -104,7 +104,7 @@ var _ = Describe("Formatter", func() {
104
104
105
105
issues , err := convertToSonarIssues ([]string {rootPath }, data )
106
106
Expect (err ).ShouldNot (HaveOccurred ())
107
- Expect (issues ).To (Equal (want ))
107
+ Expect (* issues ).To (Equal (* want ))
108
108
})
109
109
It ("it should not parse the report info for files from other projects" , func () {
110
110
data := & reportInfo {
@@ -127,15 +127,15 @@ var _ = Describe("Formatter", func() {
127
127
NumFound : 0 ,
128
128
},
129
129
}
130
- want := sonarIssues {
131
- SonarIssues : nil ,
130
+ want := & sonarIssues {
131
+ SonarIssues : [] sonarIssue {} ,
132
132
}
133
133
134
134
rootPath := "/home/src/project2"
135
135
136
136
issues , err := convertToSonarIssues ([]string {rootPath }, data )
137
137
Expect (err ).ShouldNot (HaveOccurred ())
138
- Expect (issues ).To (Equal (want ))
138
+ Expect (* issues ).To (Equal (* want ))
139
139
})
140
140
141
141
It ("it should parse the report info for multiple projects projects" , func () {
@@ -168,7 +168,7 @@ var _ = Describe("Formatter", func() {
168
168
NumFound : 0 ,
169
169
},
170
170
}
171
- want := sonarIssues {
171
+ want := & sonarIssues {
172
172
SonarIssues : []sonarIssue {
173
173
{
174
174
EngineID : "gosec" ,
@@ -207,7 +207,7 @@ var _ = Describe("Formatter", func() {
207
207
208
208
issues , err := convertToSonarIssues (rootPaths , data )
209
209
Expect (err ).ShouldNot (HaveOccurred ())
210
- Expect (issues ).To (Equal (want ))
210
+ Expect (* issues ).To (Equal (* want ))
211
211
})
212
212
})
213
213
})
0 commit comments