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

Function TestBuildOverlappingPaths

cmd/buf/buf_test.go:2539–2558  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2537}
2538
2539func TestBuildOverlappingPaths(t *testing.T) {
2540 t.Parallel()
2541 // This may differ from LsFilesOverlappingPaths as we do a build of an image here.
2542 // Building of images results in bufmodule.ModuleSetToModuleReadBucketWithOnlyProtoFiles being
2543 // called, which is the original source of the issue that resulted in this test.
2544 testBuildLsFilesFormatImport(
2545 t,
2546 0,
2547 []string{
2548 `a/v3/a.proto`,
2549 `a/v3/foo/bar.proto`,
2550 `a/v3/foo/foo.proto`,
2551 },
2552 filepath.Join("testdata", "paths"),
2553 "--path",
2554 filepath.Join("testdata", "paths", "a", "v3"),
2555 "--path",
2556 filepath.Join("testdata", "paths", "a", "v3", "foo"),
2557 )
2558}
2559
2560func TestExportProto(t *testing.T) {
2561 t.Parallel()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…