test

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2018 License: BSD-2-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	*test.Mock
	GetInvocations int
	GetInputs      []GetInput
	GetOutputs     []GetOutput
}

func NewFactory

func NewFactory() *Factory

func (*Factory) Expectations

func (f *Factory) Expectations()

func (*Factory) Get

func (f *Factory) Get(typ string, name string) (provider.Provider, error)

type GetInput

type GetInput struct {
	Type string
	Name string
}

type GetOutput

type GetOutput struct {
	Provider provider.Provider
	Error    error
}

type OnCreateInput

type OnCreateInput struct {
	Context           context.Context
	UserID            string
	ProviderSessionID string
}

type OnDeleteInput

type OnDeleteInput struct {
	Context           context.Context
	UserID            string
	ProviderSessionID string
}

type Provider

type Provider struct {
	*test.Mock
	Type                string
	Name                string
	OnCreateInvocations int
	OnCreateInputs      []OnCreateInput
	OnCreateOutputs     []error
	OnDeleteInvocations int
	OnDeleteInputs      []OnDeleteInput
	OnDeleteOutputs     []error
}

func NewProvider

func NewProvider(typ string, name string) *Provider

func (*Provider) Expectations

func (p *Provider) Expectations()

func (*Provider) OnCreate

func (p *Provider) OnCreate(ctx context.Context, userID string, providerSessionID string) error

func (*Provider) OnDelete

func (p *Provider) OnDelete(ctx context.Context, userID string, providerSessionID string) error

Jump to

Keyboard shortcuts

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