fakewriter

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Call

type Call struct {
	Data      entities.PipelineEvent
	Operation entities.Operation
}

type Calls

type Calls []Call

func (Calls) LastCall

func (c Calls) LastCall() Call

type Config

type Config struct {
	Mocks Mocks
}

func (*Config) Validate

func (c *Config) Validate() error

type Mock

type Mock struct {
	Error error
}

type Mocks

type Mocks []Mock

func (*Mocks) ReadAndPop

func (m *Mocks) ReadAndPop() Mock

type Writer

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

func New

func New(config *Config) *Writer

func (*Writer) AddMock

func (f *Writer) AddMock(mock Mock)

func (*Writer) Calls

func (f *Writer) Calls() Calls

func (*Writer) WriteData

func (f *Writer) WriteData(_ context.Context, data entities.PipelineEvent) error

Jump to

Keyboard shortcuts

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