Documentation ¶
Index ¶
- func AssertFileInfosEqual(t *testing.T, expected []bufcore.FileInfo, actual []bufcore.FileInfo)
- func AssertImageFilesEqual(t *testing.T, expected []bufcore.ImageFile, actual []bufcore.ImageFile)
- func FileInfoToAbs(t *testing.T, fileInfo bufcore.FileInfo) bufcore.FileInfo
- func FileInfosToAbs(t *testing.T, fileInfos []bufcore.FileInfo) []bufcore.FileInfo
- func NewFileDescriptorProto(t *testing.T, path string, importPaths ...string) *descriptorpb.FileDescriptorProto
- func NewFileInfo(t *testing.T, path string, externalPath string, isImport bool) bufcore.FileInfo
- func NewImageFile(t *testing.T, fileDescriptorProto *descriptorpb.FileDescriptorProto, ...) bufcore.ImageFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertFileInfosEqual ¶
AssertFileInfosEqual asserts the expected FileInfos equal the actual FileInfos.
func AssertImageFilesEqual ¶
AssertImageFilesEqual asserts the expected ImageFiles equal the actual ImageFiles.
func FileInfoToAbs ¶
FileInfoToAbs converts the external path to absolute.
func FileInfosToAbs ¶
FileInfosToAbs converts the external paths to absolute.
func NewFileDescriptorProto ¶
func NewFileDescriptorProto( t *testing.T, path string, importPaths ...string, ) *descriptorpb.FileDescriptorProto
NewFileDescriptorProto returns a new FileDescriptorProto for testing.
func NewFileInfo ¶
NewFileInfo returns a new FileInfo for testing.
func NewImageFile ¶
func NewImageFile( t *testing.T, fileDescriptorProto *descriptorpb.FileDescriptorProto, externalPath string, isImport bool, ) bufcore.ImageFile
NewImageFile returns a new ImageFile for testing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.