(filePaths []string)
| 242 | } |
| 243 | |
| 244 | func testInputsFor(filePaths []string) []Input { |
| 245 | inputs := []Input{ |
| 246 | { |
| 247 | FilePath: filePaths[0], |
| 248 | Violations: []evaluator.Result{ |
| 249 | { |
| 250 | Message: "violation1", |
| 251 | }, |
| 252 | }, |
| 253 | Warnings: []evaluator.Result{ |
| 254 | { |
| 255 | Message: "warning1", |
| 256 | }, |
| 257 | }, |
| 258 | Successes: []evaluator.Result{ |
| 259 | { |
| 260 | Message: "success1", |
| 261 | }, |
| 262 | }, |
| 263 | Success: false, |
| 264 | }, |
| 265 | { |
| 266 | FilePath: filePaths[1], |
| 267 | Violations: []evaluator.Result{ |
| 268 | { |
| 269 | Message: "violation2", |
| 270 | }, |
| 271 | }, |
| 272 | Success: false, |
| 273 | }, |
| 274 | { |
| 275 | FilePath: filePaths[2], |
| 276 | Successes: []evaluator.Result{ |
| 277 | { |
| 278 | Message: "success3", |
| 279 | }, |
| 280 | }, |
| 281 | Success: true, |
| 282 | }, |
| 283 | } |
| 284 | return inputs |
| 285 | } |
| 286 | |
| 287 | func Test_ReportText(t *testing.T) { |
| 288 | inputs := []Input{ |
no outgoing calls
no test coverage detected