mock

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(o ...Option) voucher.Service

New creates a new mock voucher service.

func NewStamper

func NewStamper() voucher.Stamper

NewStamper returns anew new mock stamper.

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option is an option passed to a mock voucher Service.

func WithAcceptAll

func WithAcceptAll() Option

WithAcceptAll sets the mock to return a new BatchIssuer on every call to GetStampIssuer.

func WithIssuer

func WithIssuer(s *voucher.StampIssuer) Option

Jump to

Keyboard shortcuts

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