gotesting

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterDefault

func RegisterDefault()

Types

type Matcher added in v1.1.0

type Matcher struct{}

func (*Matcher) ConfigPatterns added in v1.1.0

func (m *Matcher) ConfigPatterns() []string

func (*Matcher) ExtractImports added in v1.1.0

func (m *Matcher) ExtractImports(ctx context.Context, content []byte) []string

func (*Matcher) Languages added in v1.1.0

func (m *Matcher) Languages() []domain.Language

func (*Matcher) MatchImport added in v1.1.0

func (m *Matcher) MatchImport(importPath string) bool

func (*Matcher) Name added in v1.1.0

func (m *Matcher) Name() string

func (*Matcher) ParseConfig added in v1.1.1

func (m *Matcher) ParseConfig(_ context.Context, _ []byte) *matchers.ConfigInfo

func (*Matcher) Priority added in v1.1.1

func (m *Matcher) Priority() int

type Strategy

type Strategy struct{}

func NewStrategy

func NewStrategy() *Strategy

func (*Strategy) CanHandle

func (s *Strategy) CanHandle(filename string, _ []byte) bool

func (*Strategy) Languages

func (s *Strategy) Languages() []domain.Language

func (*Strategy) Name

func (s *Strategy) Name() string

func (*Strategy) Parse

func (s *Strategy) Parse(ctx context.Context, source []byte, filename string) (*domain.TestFile, error)

func (*Strategy) Priority

func (s *Strategy) Priority() int

Jump to

Keyboard shortcuts

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