plugintest

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPluginMetadata added in v0.3.0

func GetPluginMetadata(filePath string) (*models.MetaData, error)

func PrintHuman

func PrintHuman(rr RunResult)

Types

type FuncResult

type FuncResult struct {
	Name    string        `json:"name"`
	Status  string        `json:"status"` // ok|missing|error|timeout|panic|skipped
	Error   string        `json:"error,omitempty"`
	Elapsed time.Duration `json:"elapsed_ms"`
}

type Mode

type Mode string
const (
	ModeSmoke  Mode = "smoke"
	ModeSource Mode = "source"
	ModeAll    Mode = "all"
)

func ModeFromString

func ModeFromString(s string) Mode

type PluginResult

type PluginResult struct {
	Name       string       `json:"name"`
	File       string       `json:"file"`
	Funcs      []FuncResult `json:"funcs"`
	SourceTest *FuncResult  `json:"source_test,omitempty"`
}

type RunConfig

type RunConfig struct {
	BaseDir       string
	BuildDir      string // legacy fallback
	Name          string // legacy filter (deprecated)
	Files         []string
	SearchDirs    []string
	Timeout       time.Duration
	Mode          Mode
	Auth          models.AuthCredentials
	ContactParams models.ContactQueryParams
	LedgerParams  models.LedgerQueryParams
	JSON          bool
}

type RunResult

type RunResult struct {
	Plugins  []PluginResult `json:"plugins"`
	Failures int            `json:"failures"`
}

func Run

func Run(ctx context.Context, cfg RunConfig) RunResult

Jump to

Keyboard shortcuts

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