Back to godoc.org

Package testing

v1.10.0
Latest Go to latest
Published: May 19, 2020 | License: MIT | Module: github.com/uber/prototool

Index

Package Files

func GetFileDescriptorSets

func GetFileDescriptorSets(workDirPath string, dirPath string) (protoc.FileDescriptorSets, error)

GetFileDescriptorSets gets the FileDescriptorSets that result from compiling the given dirPath.

func PrintFileDescriptorSetsJSON

func PrintFileDescriptorSetsJSON(fileDescriptorSets []*descriptor.FileDescriptorSet) error

PrintFileDescriptorSetsJSON prints the FileDescriptorSets to stdout.

func PrintPackageSetJSON

func PrintPackageSetJSON(packageSet *reflectv1.PackageSet) error

PrintPackageSetJSON prints the PackageSet to stdout.

func RequireGetFileDescriptorSets

func RequireGetFileDescriptorSets(t *testing.T, workDirPath string, dirPath string) protoc.FileDescriptorSets

RequireGetFileDescriptorSets calls GetDescriptorFileSets with require calls.

func RequirePrintFileDescriptorSetsJSON

func RequirePrintFileDescriptorSetsJSON(t *testing.T, fileDescriptorSets []*descriptor.FileDescriptorSet)

RequirePrintFileDescriptorSetsJSON calls PrintFileDescriptorSetsJSON with require calls.

func RequirePrintPackageSetJSON

func RequirePrintPackageSetJSON(t *testing.T, packageSet *reflectv1.PackageSet)

RequirePrintPackageSetJSON calls PrintPackageSetJSON with require calls.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier