rules

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpectedIssue

type ExpectedIssue struct {
	Message string
	Start   *sitter.Point
	End     *sitter.Point
}

type ShouldRaise

type ShouldRaise struct {
	Code     string
	Expected []ExpectedIssue
}

type TestCase

type TestCase struct {
	Name  string
	Rule  analysis.Rule
	Raise []ShouldRaise
	Pass  []string
}

func (*TestCase) Run

func (testCase *TestCase) Run(t *testing.T)

Jump to

Keyboard shortcuts

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