bufimagetesting

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertImageFilesEqual

func AssertImageFilesEqual(t testing.TB, expected []bufimage.ImageFile, actual []bufimage.ImageFile)

AssertImageFilesEqual asserts the expected ImageFiles equal the actual ImageFiles.

func NewFileDescriptorProto

func NewFileDescriptorProto(
	t testing.TB,
	path string,
	importPaths ...string,
) *descriptorpb.FileDescriptorProto

NewFileDescriptorProto returns a new FileDescriptorProto for testing.

func NewImageFile

func NewImageFile(
	t testing.TB,
	fileDescriptorProto *descriptorpb.FileDescriptorProto,
	moduleIdentity bufmodule.ModuleIdentity,
	commit string,
	externalPath string,
	isImport bool,
) bufimage.ImageFile

NewImageFile returns a new ImageFile for testing.

TODO: moduleIdentity and commit should be options.

Types

This section is empty.

Jump to

Keyboard shortcuts

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