Documentation ¶
Index ¶
- func AssertImageFilesEqual(t testing.TB, expected []bufimage.ImageFile, actual []bufimage.ImageFile)
- func NewImageFile(t testing.TB, fileDescriptor protodescriptor.FileDescriptor, ...) bufimage.ImageFile
- func NewProtoImageFile(t testing.TB, path string, importPaths ...string) *imagev1.ImageFile
- func NewProtoImageFileIsImport(t testing.TB, path string, importPaths ...string) *imagev1.ImageFile
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 NewImageFile ¶
func NewImageFile( t testing.TB, fileDescriptor protodescriptor.FileDescriptor, moduleFullName bufmodule.ModuleFullName, commit uuid.UUID, externalPath string, localPath string, isImport bool, isSyntaxUnspecified bool, unusedDependencyIndexes []int32, ) bufimage.ImageFile
NewImageFile returns a new ImageFile for testing.
TODO FUTURE: moduleFullName and commit should be options.
func NewProtoImageFile ¶
NewProtoImageFile returns a new *imagev1.ImageFile for testing.
This is also a protodescriptor.FileDescriptor.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.