MCPcopy Create free account
hub / github.com/bufbuild/buf / testGetImageImportPaths

Function testGetImageImportPaths

private/bufpkg/bufimage/build_image_test.go:415–424  ·  view source on GitHub ↗
(image bufimage.Image)

Source from the content-addressed store, hash-verified

413}
414
415func testGetImageImportPaths(image bufimage.Image) []string {
416 var importNames []string
417 for _, file := range image.Files() {
418 if file.IsImport() {
419 importNames = append(importNames, file.Path())
420 }
421 }
422 sort.Strings(importNames)
423 return importNames
424}
425
426func testFileAnnotations(t *testing.T, relDirPath string, parallelism bool, want ...string) {
427 t.Helper()

Callers 1

TestGoogleapisFunction · 0.85

Calls 3

FilesMethod · 0.65
IsImportMethod · 0.65
PathMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…