(t *testing.T, image bufimage.Image, excludePaths []string)
| 447 | } |
| 448 | |
| 449 | func testImageWithExcludedFilePaths(t *testing.T, image bufimage.Image, excludePaths []string) { |
| 450 | t.Helper() |
| 451 | for _, imageFile := range image.Files() { |
| 452 | if !imageFile.IsImport() { |
| 453 | for _, excludePath := range excludePaths { |
| 454 | assert.False(t, normalpath.EqualsOrContainsPath(excludePath, imageFile.Path(), normalpath.Relative), "paths: %s, %s", imageFile.Path(), excludePath) |
| 455 | } |
| 456 | } |
| 457 | } |
| 458 | } |
| 459 | |
| 460 | // BenchmarkBuildImage builds an image from the googleapis corpus (1574 proto |
| 461 | // files), matching TestGoogleapis. Exercises the proto-source read path that |
no test coverage detected
searching dependent graphs…