errors

package
v3.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result interface {
	Found() *stuber.Stub
	Similar() *stuber.Stub
}

Result interface for testing - allows mocking stuber.Result.

type StubNotFoundFormatter

type StubNotFoundFormatter struct{}

StubNotFoundFormatter provides unified formatting for "stub not found" errors.

func NewStubNotFoundFormatter

func NewStubNotFoundFormatter() *StubNotFoundFormatter

NewStubNotFoundFormatter creates a new formatter instance.

func (*StubNotFoundFormatter) Format added in v3.6.0

func (f *StubNotFoundFormatter) Format(expect stuber.Query, result Result) error

Format formats error messages for stub not found scenarios. Supports both unary (single Input element) and streaming (multiple Input elements).

Jump to

Keyboard shortcuts

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