prototesting

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffFileDescriptorSetsJSON

func DiffFileDescriptorSetsJSON(one *descriptorpb.FileDescriptorSet, two *descriptorpb.FileDescriptorSet, name string) (string, error)

DiffFileDescriptorSetsJSON diffs the two FileDescriptorSets using JSON.

TODO: this does NOT use any resolver, so extensions will be dropped. This needs to be updated.

func DiffFileDescriptorSetsWire

func DiffFileDescriptorSetsWire(one *descriptorpb.FileDescriptorSet, two *descriptorpb.FileDescriptorSet, name string) (string, error)

DiffFileDescriptorSetsWire diffs the two FileDescriptorSets using proto.MarshalWire.

func GetProtocFileDescriptorSet

func GetProtocFileDescriptorSet(
	ctx context.Context,
	roots []string,
	realFilePaths []string,
	includeImports bool,
	includeSourceInfo bool,
) (_ *descriptorpb.FileDescriptorSet, retErr error)

GetProtocFileDescriptorSet gets the validated FileDescriptorSet using protoc and the Well-Known Types on the current PATH.

Only use for testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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