selene

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package selene implements the mutation testing tool using selene.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildArgs added in v0.34.0

func BuildArgs(workspaceDir string, pkgList []string, cfg *config.Config) []string

BuildArgs constructs the full argument list for invoking Selene, applying configured worker concurrency (GOMAXPROCS) and TestQuery SQLite DB integration.

func Handler

func Handler(ctx context.Context, _ *mcp.CallToolRequest, args Params) (*mcp.CallToolResult, any, error)

Handler handles the selene tool execution.

func Register

func Register(server *mcp.Server)

Register registers the tool with the server.

Types

type Params

type Params struct {
	Dir      string `json:"dir" jsonschema:"The absolute directory path to run mutation testing in. Required."`
	Packages string `json:"packages,omitempty" jsonschema:"Packages to run mutation testing on (default: ./...)"`
}

Params defines the input parameters.

type Runner

type Runner interface {
	Run(ctx context.Context, dir, name string, args ...string) error
	RunWithOutput(ctx context.Context, dir, name string, args ...string) (string, error)
	LookPath(file string) (string, error)
}

Runner defines the interface for running CLI commands.

var CommandRunner Runner = &stdRunner{}

CommandRunner is used to execute CLI commands.

Jump to

Keyboard shortcuts

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