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

Function testFilePaths

private/bufpkg/bufmodule/bufmodule_test.go:677–686  ·  view source on GitHub ↗
(t *testing.T, module bufmodule.Module, expectedFilePaths ...string)

Source from the content-addressed store, hash-verified

675}
676
677func testFilePaths(t *testing.T, module bufmodule.Module, expectedFilePaths ...string) {
678 ctx := t.Context()
679 fileInfos, err := bufmodule.GetFileInfos(ctx, module)
680 require.NoError(t, err)
681 require.Equal(
682 t,
683 expectedFilePaths,
684 bufmodule.FileInfoPaths(fileInfos),
685 )
686}
687
688func testTargetFilePaths(t *testing.T, module bufmodule.Module, expectedFilePaths ...string) {
689 ctx := t.Context()

Callers 2

TestBasicFunction · 0.85
TestProtoFileTargetPathFunction · 0.85

Calls 2

GetFileInfosFunction · 0.92
FileInfoPathsFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…