test

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package test provides testing utilities and implementations for pipelines.

Package test provides testing utilities and implementations for pipelines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoTester

type GoTester struct {
	// Client is the Dagger client used for container operations.
	Client pipelines.DaggerClient
	// Src is the source directory of the cloned repository.
	Src pipelines.DaggerDirectory
	// Config contains the configuration for the pipeline.
	Config pipelines.Config
	// MinCoverage is the minimum coverage percentage required for the tests.
	MinCoverage float64
}

func (*GoTester) RunTests

func (g *GoTester) RunTests(ctx context.Context) error

RunTests executes the Go tests and checks the coverage.

type Testable

type Testable interface {
	RunTests(ctx context.Context) error
}

Testable is an interface that defines a contract for running tests.

func New

func New(client *dagger.Client, _ *dagger.Directory, cfg pipelines.Config, language string) Testable

New returns a Testable implementation based on the configured language. Extend this switch to support other languages.

Jump to

Keyboard shortcuts

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