drivers

package
v0.57.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package drivers holds definitions shared by the behaviour-test driver packages (scm, ci, install).

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImplemented = errors.New("not implemented")

ErrNotImplemented marks a driver operation that the selected driver does not support yet. Drivers wrap it in a *NotImplementedError naming the driver and the operation, so callers detect it with errors.Is and the message says exactly what is missing. A driver returns it instead of falling back to another forge's behaviour.

Functions

func NotImplemented

func NotImplemented(driver, operation string) error

NotImplemented returns a *NotImplementedError for operation of driver.

Types

type NotImplementedError

type NotImplementedError struct {
	// Driver names the driver, e.g. "forgejo SCM".
	Driver string
	// Operation names the unsupported operation, e.g. "CreateIssue".
	Operation string
}

NotImplementedError is the error a stub driver returns for an unsupported operation. It unwraps to ErrNotImplemented.

func (*NotImplementedError) Error

func (e *NotImplementedError) Error() string

func (*NotImplementedError) Unwrap

func (e *NotImplementedError) Unwrap() error

Unwrap lets errors.Is(err, ErrNotImplemented) match.

Directories

Path Synopsis
ci
forgejoactions
Package forgejoactions is the Forgejo Actions ci.Driver for behaviour tests.
Package forgejoactions is the Forgejo Actions ci.Driver for behaviour tests.
Package install provides pool-repo lifecycle management for behaviour tests: cross-org repo slot leasing (slotpool.go), per-org mint deployment, fullsend installation, and teardown.
Package install provides pool-repo lifecycle management for behaviour tests: cross-org repo slot leasing (slotpool.go), per-org mint deployment, fullsend installation, and teardown.
Package jiramock provides a stateful mock Jira REST API server for behaviour tests.
Package jiramock provides a stateful mock Jira REST API server for behaviour tests.
scm
forgejo
Package forgejo is the Forgejo scm.Driver for behaviour tests.
Package forgejo is the Forgejo scm.Driver for behaviour tests.

Jump to

Keyboard shortcuts

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