buf: github.com/bufbuild/buf/internal/buf/bufcore/bufimage/bufimagetesting Index | Files

package bufimagetesting

import "github.com/bufbuild/buf/internal/buf/bufcore/bufimage/bufimagetesting"

Index

Package Files

bufimagetesting.go

func AssertImageFilesEqual Uses

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

AssertImageFilesEqual asserts the expected ImageFiles equal the actual ImageFiles.

func NewFileDescriptorProto Uses

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

NewFileDescriptorProto returns a new FileDescriptorProto for testing.

func NewImageFile Uses

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

NewImageFile returns a new ImageFile for testing.

Package bufimagetesting imports 6 packages (graph). Updated 2020-11-28. Refresh now. Tools for package owners.