Documentation
¶
Index ¶
- func AssertFileAnnotationsEqual(t *testing.T, expected []bufanalysis.FileAnnotation, ...)
- func FileAnnotations(t *testing.T, fileAnnotationFuncs []FileAnnotationFunc, ...) []bufanalysis.FileAnnotation
- type FileAnnotationFunc
- func NewFileAnnotationFunc(rootRelFilePath string, rootDirPath string, startLine int, startColumn int, ...) FileAnnotationFunc
- func NewFileAnnotationNoLocationFunc(rootRelFilePath string, rootDirPath string, typeString string) FileAnnotationFunc
- func NewFileAnnotationNoLocationOrPathFunc(typeString string) FileAnnotationFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertFileAnnotationsEqual ¶
func AssertFileAnnotationsEqual( t *testing.T, expected []bufanalysis.FileAnnotation, actual []bufanalysis.FileAnnotation, )
AssertFileAnnotationsEqual asserts that the annotations are equal minus the message.
func FileAnnotations ¶
func FileAnnotations( t *testing.T, fileAnnotationFuncs []FileAnnotationFunc, externalPathResolver bufpath.ExternalPathResolver, ) []bufanalysis.FileAnnotation
FileAnnotations returns the FileAnnotations.
Types ¶
type FileAnnotationFunc ¶
type FileAnnotationFunc func(*testing.T, bufpath.ExternalPathResolver) bufanalysis.FileAnnotation
FileAnnotationFunc is a function that creates a new FileAnnotation with a resolver.
func NewFileAnnotationFunc ¶
func NewFileAnnotationFunc( rootRelFilePath string, rootDirPath string, startLine int, startColumn int, endLine int, endColumn int, typeString string, ) FileAnnotationFunc
NewFileAnnotationFunc returns a new FileAnnotationFunc.
If rootRelFilePath == "", FileRef will be nil.
func NewFileAnnotationNoLocationFunc ¶
func NewFileAnnotationNoLocationFunc( rootRelFilePath string, rootDirPath string, typeString string, ) FileAnnotationFunc
NewFileAnnotationNoLocationFunc returns a new FileAnnotationFunc with no location.
If rootRelFilePath == "", FileRef will be nil.
func NewFileAnnotationNoLocationOrPathFunc ¶
func NewFileAnnotationNoLocationOrPathFunc(typeString string) FileAnnotationFunc
NewFileAnnotationNoLocationOrPathFunc returns a new FileAnnotationFunc with no location or FileRef.
Click to show internal directories.
Click to hide internal directories.