utilprototesting

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffMessagesJSON

func DiffMessagesJSON(one proto.Message, two proto.Message, name string) (string, error)

DiffMessagesJSON diffs the two Messages using JSON.

func DiffMessagesText

func DiffMessagesText(one proto.Message, two proto.Message, name string) (string, error)

DiffMessagesText diffs the two Messages using proto.MarshalText.

func GetProtocFileDescriptorSet

func GetProtocFileDescriptorSet(
	ctx context.Context,
	roots []string,
	realFilePaths []string,
	includeImports bool,
	includeSourceInfo bool,
) (_ *descriptor.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