Versions in this module Expand all Collapse all v0 v0.1.0 Sep 4, 2024 Changes in this version + func AssertAnnotationsEqual(t *testing.T, expectedAnnotations []ExpectedAnnotation, ...) + func RequireAnnotationsEqual(t *testing.T, expectedAnnotations []ExpectedAnnotation, ...) + func SpecTest(t *testing.T, spec *check.Spec) + type CheckTest struct + ExpectedAnnotations []ExpectedAnnotation + Request *RequestSpec + Spec *check.Spec + func (c CheckTest) Run(t *testing.T) + type ExpectedAnnotation struct + AgainstLocation *ExpectedLocation + Location *ExpectedLocation + Message string + RuleID string + func (ea ExpectedAnnotation) String() string + type ExpectedLocation struct + EndColumn int + EndLine int + FileName string + StartColumn int + StartLine int + func (el *ExpectedLocation) String() string + type ProtoFileSpec struct + DirPaths []string + FilePaths []string + func (p *ProtoFileSpec) ToFiles(ctx context.Context) ([]check.File, error) + type RequestSpec struct + AgainstFiles *ProtoFileSpec + Files *ProtoFileSpec + Options map[string]any + RuleIDs []string + func (r *RequestSpec) ToRequest(ctx context.Context) (check.Request, error)