Documentation ¶
Overview ¶
Package analysistesting implements testing functionality for Annotations.
Index ¶
- func AssertAnnotationsEqual(t *testing.T, expected []*analysis.Annotation, actual []*analysis.Annotation)
- func NewAnnotation(filename string, startLine int, startColumn int, endLine int, endColumn int, ...) *analysis.Annotation
- func NewAnnotationNoLocation(filename string, t string) *analysis.Annotation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertAnnotationsEqual ¶
func AssertAnnotationsEqual(t *testing.T, expected []*analysis.Annotation, actual []*analysis.Annotation)
AssertAnnotationsEqual asserts that the annotations are equal minus the Message field.
func NewAnnotation ¶
func NewAnnotation(filename string, startLine int, startColumn int, endLine int, endColumn int, t string) *analysis.Annotation
NewAnnotation returns a new Annotation for testing.
This does not set the Message field.
func NewAnnotationNoLocation ¶
func NewAnnotationNoLocation(filename string, t string) *analysis.Annotation
NewAnnotationNoLocation returns a new Annotation for testing.
This does not set the Message field.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.