Documentation
¶
Overview ¶
Package testquery implements the test query tool using tq.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Params ¶
type Params struct {
//nolint:lll
Dir string `json:"dir" jsonschema:"The absolute directory path to analyze. Required. Relative paths are rejected."`
//nolint:lll
Query string `json:"query" jsonschema:"SQL query to run against test results (e.g. SELECT * FROM all_tests WHERE action = 'fail')"`
Pkg string `json:"pkg,omitempty" jsonschema:"Go package pattern to analyze (default: ./...)"`
//nolint:lll
Rebuild bool `` /* 139-byte string literal not displayed */
}
Params defines the input parameters.
type Runner ¶ added in v0.33.0
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 commands.
var CommandRunner Runner = &stdRunner{}
CommandRunner is used to execute CLI commands.
Click to show internal directories.
Click to hide internal directories.