Help us shape the future of Go! Take the 2026 Go Developer Survey

runner

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Overview

sinq - A concurrent integration testing tool Copyright (C) 2026 Veitangie SPDX-License-Identifier: GPL-3.0-or-later

sinq - A concurrent integration testing tool Copyright (C) 2026 Veitangie SPDX-License-Identifier: GPL-3.0-or-later

sinq - A concurrent integration testing tool Copyright (C) 2026 Veitangie SPDX-License-Identifier: GPL-3.0-or-later

sinq - A concurrent integration testing tool Copyright (C) 2026 Veitangie SPDX-License-Identifier: GPL-3.0-or-later

sinq - A concurrent integration testing tool Copyright (C) 2026 Veitangie SPDX-License-Identifier: GPL-3.0-or-later

sinq - A concurrent integration testing tool Copyright (C) 2026 Veitangie SPDX-License-Identifier: GPL-3.0-or-later

sinq - A concurrent integration testing tool Copyright (C) 2026 Veitangie SPDX-License-Identifier: GPL-3.0-or-later

sinq - A concurrent integration testing tool Copyright (C) 2026 Veitangie SPDX-License-Identifier: GPL-3.0-or-later

sinq - A concurrent integration testing tool Copyright (C) 2026 Veitangie SPDX-License-Identifier: GPL-3.0-or-later

sinq - A concurrent integration testing tool Copyright (C) 2026 Veitangie SPDX-License-Identifier: GPL-3.0-or-later

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestProcessor

type RequestProcessor struct {
	// contains filtered or unexported fields
}

type RequestResult

type RequestResult struct {
	Status           ResultStatus
	FailedAssertions []string
	Name             string
	ErrorMessage     string
	Request          string
	Response         string
	StartedAt        time.Time
	Pre              time.Duration
	Materialization  time.Duration
	Parsing          time.Duration
	Execution        time.Duration
	Retry            time.Duration
	Assert           time.Duration
	Post             time.Duration
	Total            time.Duration
}

type ResultStatus

type ResultStatus int
const (
	Unset ResultStatus = iota
	Skipped
	Aborted
	Success
	Error
	Failure
)

func (ResultStatus) String

func (s ResultStatus) String() string

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(cfg config.Config, ctx context.Context, transport http.RoundTripper, logger slog.Logger, clock timer.Clock, rootWorkspace Workspace) (*Runner, error)

func (*Runner) RunScenarios

func (r *Runner) RunScenarios(ctx context.Context, scenarios []ScenarioBundle, secrets map[string]any, totalTimer *timer.Timer) (<-chan ScenarioResult, <-chan time.Duration, <-chan error)

type ScenarioBundle added in v0.0.2

type ScenarioBundle struct {
	scenario.ScenarioBlueprint
	Workspace Workspace
}

type ScenarioResult

type ScenarioResult struct {
	Name           string
	Tags           []string
	StartedAt      time.Time
	TotalDuration  time.Duration
	RequestResults []RequestResult
	Status         ResultStatus
	Output         *bytes.Buffer
}

type Workspace added in v0.0.2

type Workspace interface {
	fs.StatFS
	Create(string) (io.WriteCloser, error)
	MkDirall(string) error
	String() string
}

Jump to

Keyboard shortcuts

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