connectors

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector interface {
	DetectFramework() (bool, error)
	GenerateConfig(path string) config.ConnectorConfig
	DiscoverTests(path string) ([]string, error)
}

type ElixirConnector

type ElixirConnector struct {
	Executable string
}

func DefaultElixirConnector

func DefaultElixirConnector() *ElixirConnector

DefaultElixirConnector returns an ElixirConnector with default configuration

func NewElixirConnector

func NewElixirConnector(executable string) *ElixirConnector

NewElixirConnector creates a new ElixirConnector with the specified executable

func (*ElixirConnector) DetectFramework

func (e *ElixirConnector) DetectFramework() (bool, error)

DetectFramework checks if the mix executable is available

func (*ElixirConnector) DiscoverTests

func (e *ElixirConnector) DiscoverTests(path string) ([]string, error)

DiscoverTests discovers Elixir tests in the given path with a default timeout

func (*ElixirConnector) DiscoverTestsWithContext

func (e *ElixirConnector) DiscoverTestsWithContext(ctx context.Context, path string) ([]string, error)

DiscoverTestsWithContext discovers Elixir tests in the given path with a context

func (*ElixirConnector) GenerateConfig

func (e *ElixirConnector) GenerateConfig(path string) config.ConnectorConfig

GenerateConfig creates a default connector configuration for Elixir

type GoConnector

type GoConnector struct {
	Executable string
}

func DefaultGoConnector

func DefaultGoConnector() *GoConnector

DefaultGoConnector returns a GoConnector with default configuration

func NewGoConnector

func NewGoConnector(executable string) *GoConnector

func (*GoConnector) DetectFramework

func (g *GoConnector) DetectFramework() (bool, error)

DetectFramework checks if the Go executable is available

func (*GoConnector) DiscoverTests

func (g *GoConnector) DiscoverTests(path string) ([]string, error)

DiscoverTests discovers Go tests in the given path with a default timeout

func (*GoConnector) DiscoverTestsWithContext

func (g *GoConnector) DiscoverTestsWithContext(ctx context.Context, path string) ([]string, error)

DiscoverTestsWithContext discovers Go tests in the given path with a context

func (*GoConnector) GenerateConfig

func (g *GoConnector) GenerateConfig(path string) config.ConnectorConfig

GenerateConfig creates a default connector configuration for Go

func (*GoConnector) ValidateCompatibility

func (g *GoConnector) ValidateCompatibility() (bool, error)

ValidateCompatibility checks if the Go version is 1.13 or higher

func (*GoConnector) ValidateConfiguration

func (g *GoConnector) ValidateConfiguration() error

ValidateConfiguration validates the connector configuration

type PytestConnector

type PytestConnector struct {
	Executable string
}

func DefaultPytestConnector

func DefaultPytestConnector() *PytestConnector

DefaultPytestConnector returns a PytestConnector with default configuration

func NewPytestConnector

func NewPytestConnector(executable string) *PytestConnector

NewPytestConnector creates a new PytestConnector with the specified executable

func (*PytestConnector) DetectFramework

func (p *PytestConnector) DetectFramework() (bool, error)

DetectFramework checks if the pytest executable is available

func (*PytestConnector) DiscoverTests

func (p *PytestConnector) DiscoverTests(path string) ([]string, error)

DiscoverTests discovers pytest tests in the given path with a default timeout

func (*PytestConnector) DiscoverTestsWithContext

func (p *PytestConnector) DiscoverTestsWithContext(ctx context.Context, path string) ([]string, error)

DiscoverTestsWithContext discovers pytest tests in the given path with a context

func (*PytestConnector) GenerateConfig

func (p *PytestConnector) GenerateConfig(path string) config.ConnectorConfig

GenerateConfig creates a default connector configuration for Pytest

Jump to

Keyboard shortcuts

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