buf: github.com/bufbuild/buf/internal/buf/internal/buftesting Index | Files

package buftesting

import "github.com/bufbuild/buf/internal/buf/internal/buftesting"

Index

Package Files

buftesting.go

Constants

const (
    // NumGoogleapisFiles is the number of googleapis files on the current test commit.
    NumGoogleapisFiles = 1574
    // NumGoogleapisFilesWithImports is the number of googleapis files on the current test commit with imports.
    NumGoogleapisFilesWithImports = 1585
)

func GetActualProtocFileDescriptorSet Uses

func GetActualProtocFileDescriptorSet(
    t *testing.T,
    includeImports bool,
    includeSourceInfo bool,
    dirPath string,
    filePaths []string,
) *descriptorpb.FileDescriptorSet

GetActualProtocFileDescriptorSet gets the FileDescriptorSet for actual protoc.

func GetGoogleapisDirPath Uses

func GetGoogleapisDirPath(t *testing.T, buftestingDirPath string) string

GetGoogleapisDirPath gets the path to a clone of googleapis.

func GetProtocFilePaths Uses

func GetProtocFilePaths(t *testing.T, dirPath string, limit int) []string

GetProtocFilePaths gets the file paths for protoc.

Limit limits the number of files returned if > 0. protoc has a fixed size for number of characters to argument list.

func RunActualProtoc Uses

func RunActualProtoc(
    t *testing.T,
    includeImports bool,
    includeSourceInfo bool,
    dirPath string,
    filePaths []string,
    env map[string]string,
    stdout io.Writer,
    extraFlags ...string,
)

RunActualProtoc runs actual protoc.

Package buftesting imports 14 packages (graph). Updated 2020-10-20. Refresh now. Tools for package owners.