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 ¶
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 |
|---|---|
|
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. |
|
forgejo
Package forgejo is the Forgejo scm.Driver for behaviour tests.
|
Package forgejo is the Forgejo scm.Driver for behaviour tests. |
Click to show internal directories.
Click to hide internal directories.