mocks

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowedOriginsStore

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

AllowedOriginsStore is a mock, allowed origins store.

func NewAllowedOriginsStore

func NewAllowedOriginsStore() *AllowedOriginsStore

NewAllowedOriginsStore returns a mock, allowed origins store.

func (*AllowedOriginsStore) FromString

func (m *AllowedOriginsStore) FromString(values ...string) *AllowedOriginsStore

FromString initializes the origin URIs from the given strings.

func (*AllowedOriginsStore) Get

func (m *AllowedOriginsStore) Get() ([]*url.URL, error)

Get returns the anchor origins or an error.

func (*AllowedOriginsStore) WithError

func (m *AllowedOriginsStore) WithError(err error) *AllowedOriginsStore

WithError sets an error for testing.

type AnchorGraph

type AnchorGraph struct {
	GetDidAnchorsStub func(string, string) ([]graph.Anchor, error)
	// contains filtered or unexported fields
}

func (*AnchorGraph) GetDidAnchors

func (fake *AnchorGraph) GetDidAnchors(arg1 string, arg2 string) ([]graph.Anchor, error)

func (*AnchorGraph) GetDidAnchorsArgsForCall

func (fake *AnchorGraph) GetDidAnchorsArgsForCall(i int) (string, string)

func (*AnchorGraph) GetDidAnchorsCallCount

func (fake *AnchorGraph) GetDidAnchorsCallCount() int

func (*AnchorGraph) GetDidAnchorsCalls

func (fake *AnchorGraph) GetDidAnchorsCalls(stub func(string, string) ([]graph.Anchor, error))

func (*AnchorGraph) GetDidAnchorsReturns

func (fake *AnchorGraph) GetDidAnchorsReturns(result1 []graph.Anchor, result2 error)

func (*AnchorGraph) GetDidAnchorsReturnsOnCall

func (fake *AnchorGraph) GetDidAnchorsReturnsOnCall(i int, result1 []graph.Anchor, result2 error)

func (*AnchorGraph) Invocations

func (fake *AnchorGraph) Invocations() map[string][][]interface{}

type CASResolver

type CASResolver struct {
	ResolveStub func(*url.URL, string, []byte) ([]byte, string, error)
	// contains filtered or unexported fields
}

func (*CASResolver) Invocations

func (fake *CASResolver) Invocations() map[string][][]interface{}

func (*CASResolver) Resolve

func (fake *CASResolver) Resolve(arg1 *url.URL, arg2 string, arg3 []byte) ([]byte, string, error)

func (*CASResolver) ResolveArgsForCall

func (fake *CASResolver) ResolveArgsForCall(i int) (*url.URL, string, []byte)

func (*CASResolver) ResolveCallCount

func (fake *CASResolver) ResolveCallCount() int

func (*CASResolver) ResolveCalls

func (fake *CASResolver) ResolveCalls(stub func(*url.URL, string, []byte) ([]byte, string, error))

func (*CASResolver) ResolveReturns

func (fake *CASResolver) ResolveReturns(result1 []byte, result2 string, result3 error)

func (*CASResolver) ResolveReturnsOnCall

func (fake *CASResolver) ResolveReturnsOnCall(i int, result1 []byte, result2 string, result3 error)

type CasClient

type CasClient struct {
	ReadStub func(string) ([]byte, error)

	WriteStub func([]byte) (string, error)
	// contains filtered or unexported fields
}

func (*CasClient) Invocations

func (fake *CasClient) Invocations() map[string][][]interface{}

func (*CasClient) Read

func (fake *CasClient) Read(arg1 string) ([]byte, error)

func (*CasClient) ReadArgsForCall

func (fake *CasClient) ReadArgsForCall(i int) string

func (*CasClient) ReadCallCount

func (fake *CasClient) ReadCallCount() int

func (*CasClient) ReadCalls

func (fake *CasClient) ReadCalls(stub func(string) ([]byte, error))

func (*CasClient) ReadReturns

func (fake *CasClient) ReadReturns(result1 []byte, result2 error)

func (*CasClient) ReadReturnsOnCall

func (fake *CasClient) ReadReturnsOnCall(i int, result1 []byte, result2 error)

func (*CasClient) Write

func (fake *CasClient) Write(arg1 []byte) (string, error)

func (*CasClient) WriteArgsForCall

func (fake *CasClient) WriteArgsForCall(i int) []byte

func (*CasClient) WriteCallCount

func (fake *CasClient) WriteCallCount() int

func (*CasClient) WriteCalls

func (fake *CasClient) WriteCalls(stub func([]byte) (string, error))

func (*CasClient) WriteReturns

func (fake *CasClient) WriteReturns(result1 string, result2 error)

func (*CasClient) WriteReturnsOnCall

func (fake *CasClient) WriteReturnsOnCall(i int, result1 string, result2 error)

type OperationStore

type OperationStore struct {
	GetStub func(string) ([]*operation.AnchoredOperation, error)

	PutStub func([]*operation.AnchoredOperation) error
	// contains filtered or unexported fields
}

func (*OperationStore) Get

func (fake *OperationStore) Get(arg1 string) ([]*operation.AnchoredOperation, error)

func (*OperationStore) GetArgsForCall

func (fake *OperationStore) GetArgsForCall(i int) string

func (*OperationStore) GetCallCount

func (fake *OperationStore) GetCallCount() int

func (*OperationStore) GetCalls

func (fake *OperationStore) GetCalls(stub func(string) ([]*operation.AnchoredOperation, error))

func (*OperationStore) GetReturns

func (fake *OperationStore) GetReturns(result1 []*operation.AnchoredOperation, result2 error)

func (*OperationStore) GetReturnsOnCall

func (fake *OperationStore) GetReturnsOnCall(i int, result1 []*operation.AnchoredOperation, result2 error)

func (*OperationStore) Invocations

func (fake *OperationStore) Invocations() map[string][][]interface{}

func (*OperationStore) Put

func (fake *OperationStore) Put(arg1 []*operation.AnchoredOperation) error

func (*OperationStore) PutArgsForCall

func (fake *OperationStore) PutArgsForCall(i int) []*operation.AnchoredOperation

func (*OperationStore) PutCallCount

func (fake *OperationStore) PutCallCount() int

func (*OperationStore) PutCalls

func (fake *OperationStore) PutCalls(stub func([]*operation.AnchoredOperation) error)

func (*OperationStore) PutReturns

func (fake *OperationStore) PutReturns(result1 error)

func (*OperationStore) PutReturnsOnCall

func (fake *OperationStore) PutReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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