buf: github.com/bufbuild/buf/internal/pkg/analysis/analysistesting Index | Files

package analysistesting

import "github.com/bufbuild/buf/internal/pkg/analysis/analysistesting"

Package analysistesting implements testing functionality for Annotations.

Index

Package Files

analysistesting.go

func AssertAnnotationsEqual Uses

func AssertAnnotationsEqual(t *testing.T, expected []*analysis.Annotation, actual []*analysis.Annotation)

AssertAnnotationsEqual asserts that the annotations are equal minus the Message field.

func NewAnnotation Uses

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 Uses

func NewAnnotationNoLocation(filename string, t string) *analysis.Annotation

NewAnnotationNoLocation returns a new Annotation for testing.

This does not set the Message field.

Package analysistesting imports 6 packages (graph). Updated 2019-11-16. Refresh now. Tools for package owners.