buftesting

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
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
)

Variables

This section is empty.

Functions

func GetActualProtocFileDescriptorSet

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

GetActualProtocFileDescriptorSet gets the FileDescriptorSet for actual protoc.

func GetGoogleapisDirPath

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

GetGoogleapisDirPath gets the path to a clone of googleapis.

func GetProtocFilePaths

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 GetProtocFilePathsErr

func GetProtocFilePathsErr(ctx context.Context, dirPath string, limit int) ([]string, error)

GetProtocFilePathsErr is like GetProtocFilePaths except it returns an error and accepts a ctx.

func RunActualProtoc

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

RunActualProtoc runs actual protoc.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL