analysistesting

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package analysistesting implements testing functionality for Annotations.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL