mock

package
v0.0.0-...-f69b815 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0, Apache-2.0 Imports: 3 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.

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 ACLProvider

type ACLProvider struct {
	CheckACLStub func(resName string, channelID string, idinfo interface{}) error
	// contains filtered or unexported fields
}

func (*ACLProvider) CheckACL

func (fake *ACLProvider) CheckACL(resName string, channelID string, idinfo interface{}) error

func (*ACLProvider) CheckACLArgsForCall

func (fake *ACLProvider) CheckACLArgsForCall(i int) (string, string, interface{})

func (*ACLProvider) CheckACLCallCount

func (fake *ACLProvider) CheckACLCallCount() int

func (*ACLProvider) CheckACLReturns

func (fake *ACLProvider) CheckACLReturns(result1 error)

func (*ACLProvider) CheckACLReturnsOnCall

func (fake *ACLProvider) CheckACLReturnsOnCall(i int, result1 error)

func (*ACLProvider) Invocations

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

type CapabilityChecker

type CapabilityChecker struct {
	FabTokenStub func(channelId string) (bool, error)
	// contains filtered or unexported fields
}

func (*CapabilityChecker) FabToken

func (fake *CapabilityChecker) FabToken(channelId string) (bool, error)

func (*CapabilityChecker) FabTokenArgsForCall

func (fake *CapabilityChecker) FabTokenArgsForCall(i int) string

func (*CapabilityChecker) FabTokenCallCount

func (fake *CapabilityChecker) FabTokenCallCount() int

func (*CapabilityChecker) FabTokenReturns

func (fake *CapabilityChecker) FabTokenReturns(result1 bool, result2 error)

func (*CapabilityChecker) FabTokenReturnsOnCall

func (fake *CapabilityChecker) FabTokenReturnsOnCall(i int, result1 bool, result2 error)

func (*CapabilityChecker) Invocations

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

type Issuer

type Issuer struct {
	RequestExpectationStub func(*token.ExpectationRequest) (*token.TokenTransaction, error)

	RequestImportStub func([]*token.TokenToIssue) (*token.TokenTransaction, error)
	// contains filtered or unexported fields
}

func (*Issuer) Invocations

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

func (*Issuer) RequestExpectation

func (fake *Issuer) RequestExpectation(arg1 *token.ExpectationRequest) (*token.TokenTransaction, error)

func (*Issuer) RequestExpectationArgsForCall

func (fake *Issuer) RequestExpectationArgsForCall(i int) *token.ExpectationRequest

func (*Issuer) RequestExpectationCallCount

func (fake *Issuer) RequestExpectationCallCount() int

func (*Issuer) RequestExpectationCalls

func (fake *Issuer) RequestExpectationCalls(stub func(*token.ExpectationRequest) (*token.TokenTransaction, error))

func (*Issuer) RequestExpectationReturns

func (fake *Issuer) RequestExpectationReturns(result1 *token.TokenTransaction, result2 error)

func (*Issuer) RequestExpectationReturnsOnCall

func (fake *Issuer) RequestExpectationReturnsOnCall(i int, result1 *token.TokenTransaction, result2 error)

func (*Issuer) RequestImport

func (fake *Issuer) RequestImport(arg1 []*token.TokenToIssue) (*token.TokenTransaction, error)

func (*Issuer) RequestImportArgsForCall

func (fake *Issuer) RequestImportArgsForCall(i int) []*token.TokenToIssue

func (*Issuer) RequestImportCallCount

func (fake *Issuer) RequestImportCallCount() int

func (*Issuer) RequestImportCalls

func (fake *Issuer) RequestImportCalls(stub func([]*token.TokenToIssue) (*token.TokenTransaction, error))

func (*Issuer) RequestImportReturns

func (fake *Issuer) RequestImportReturns(result1 *token.TokenTransaction, result2 error)

func (*Issuer) RequestImportReturnsOnCall

func (fake *Issuer) RequestImportReturnsOnCall(i int, result1 *token.TokenTransaction, result2 error)

type Marshaler

type Marshaler struct {
	MarshalCommandResponseStub func(command []byte, responsePayload interface{}) (*token.SignedCommandResponse, error)
	// contains filtered or unexported fields
}

func (*Marshaler) Invocations

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

func (*Marshaler) MarshalCommandResponse

func (fake *Marshaler) MarshalCommandResponse(command []byte, responsePayload interface{}) (*token.SignedCommandResponse, error)

func (*Marshaler) MarshalCommandResponseArgsForCall

func (fake *Marshaler) MarshalCommandResponseArgsForCall(i int) ([]byte, interface{})

func (*Marshaler) MarshalCommandResponseCallCount

func (fake *Marshaler) MarshalCommandResponseCallCount() int

func (*Marshaler) MarshalCommandResponseReturns

func (fake *Marshaler) MarshalCommandResponseReturns(result1 *token.SignedCommandResponse, result2 error)

func (*Marshaler) MarshalCommandResponseReturnsOnCall

func (fake *Marshaler) MarshalCommandResponseReturnsOnCall(i int, result1 *token.SignedCommandResponse, result2 error)

type PolicyChecker

type PolicyChecker struct {
	CheckStub func(sc *token.SignedCommand, c *token.Command) error
	// contains filtered or unexported fields
}

func (*PolicyChecker) Check

func (fake *PolicyChecker) Check(sc *token.SignedCommand, c *token.Command) error

func (*PolicyChecker) CheckArgsForCall

func (fake *PolicyChecker) CheckArgsForCall(i int) (*token.SignedCommand, *token.Command)

func (*PolicyChecker) CheckCallCount

func (fake *PolicyChecker) CheckCallCount() int

func (*PolicyChecker) CheckReturns

func (fake *PolicyChecker) CheckReturns(result1 error)

func (*PolicyChecker) CheckReturnsOnCall

func (fake *PolicyChecker) CheckReturnsOnCall(i int, result1 error)

func (*PolicyChecker) Invocations

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

type SignerIdentity

type SignerIdentity struct {
	SignStub func([]byte) ([]byte, error)

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

func (*SignerIdentity) Invocations

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

func (*SignerIdentity) Serialize

func (fake *SignerIdentity) Serialize() ([]byte, error)

func (*SignerIdentity) SerializeCallCount

func (fake *SignerIdentity) SerializeCallCount() int

func (*SignerIdentity) SerializeReturns

func (fake *SignerIdentity) SerializeReturns(result1 []byte, result2 error)

func (*SignerIdentity) SerializeReturnsOnCall

func (fake *SignerIdentity) SerializeReturnsOnCall(i int, result1 []byte, result2 error)

func (*SignerIdentity) Sign

func (fake *SignerIdentity) Sign(arg1 []byte) ([]byte, error)

func (*SignerIdentity) SignArgsForCall

func (fake *SignerIdentity) SignArgsForCall(i int) []byte

func (*SignerIdentity) SignCallCount

func (fake *SignerIdentity) SignCallCount() int

func (*SignerIdentity) SignReturns

func (fake *SignerIdentity) SignReturns(result1 []byte, result2 error)

func (*SignerIdentity) SignReturnsOnCall

func (fake *SignerIdentity) SignReturnsOnCall(i int, result1 []byte, result2 error)

type TMSManager

type TMSManager struct {
	GetIssuerStub func(string, []byte, []byte) (server.Issuer, error)

	GetTransactorStub func(string, []byte, []byte) (server.Transactor, error)
	// contains filtered or unexported fields
}

func (*TMSManager) GetIssuer

func (fake *TMSManager) GetIssuer(arg1 string, arg2 []byte, arg3 []byte) (server.Issuer, error)

func (*TMSManager) GetIssuerArgsForCall

func (fake *TMSManager) GetIssuerArgsForCall(i int) (string, []byte, []byte)

func (*TMSManager) GetIssuerCallCount

func (fake *TMSManager) GetIssuerCallCount() int

func (*TMSManager) GetIssuerCalls

func (fake *TMSManager) GetIssuerCalls(stub func(string, []byte, []byte) (server.Issuer, error))

func (*TMSManager) GetIssuerReturns

func (fake *TMSManager) GetIssuerReturns(result1 server.Issuer, result2 error)

func (*TMSManager) GetIssuerReturnsOnCall

func (fake *TMSManager) GetIssuerReturnsOnCall(i int, result1 server.Issuer, result2 error)

func (*TMSManager) GetTransactor

func (fake *TMSManager) GetTransactor(arg1 string, arg2 []byte, arg3 []byte) (server.Transactor, error)

func (*TMSManager) GetTransactorArgsForCall

func (fake *TMSManager) GetTransactorArgsForCall(i int) (string, []byte, []byte)

func (*TMSManager) GetTransactorCallCount

func (fake *TMSManager) GetTransactorCallCount() int

func (*TMSManager) GetTransactorCalls

func (fake *TMSManager) GetTransactorCalls(stub func(string, []byte, []byte) (server.Transactor, error))

func (*TMSManager) GetTransactorReturns

func (fake *TMSManager) GetTransactorReturns(result1 server.Transactor, result2 error)

func (*TMSManager) GetTransactorReturnsOnCall

func (fake *TMSManager) GetTransactorReturnsOnCall(i int, result1 server.Transactor, result2 error)

func (*TMSManager) Invocations

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

type Transactor

type Transactor struct {
	DoneStub func()

	ListTokensStub func() (*token.UnspentTokens, error)

	RequestApproveStub func(*token.ApproveRequest) (*token.TokenTransaction, error)

	RequestExpectationStub func(*token.ExpectationRequest) (*token.TokenTransaction, error)

	RequestRedeemStub func(*token.RedeemRequest) (*token.TokenTransaction, error)

	RequestTransferStub func(*token.TransferRequest) (*token.TokenTransaction, error)

	RequestTransferFromStub func(*token.TransferRequest) (*token.TokenTransaction, error)
	// contains filtered or unexported fields
}

func (*Transactor) Done

func (fake *Transactor) Done()

func (*Transactor) DoneCallCount

func (fake *Transactor) DoneCallCount() int

func (*Transactor) DoneCalls

func (fake *Transactor) DoneCalls(stub func())

func (*Transactor) Invocations

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

func (*Transactor) ListTokens

func (fake *Transactor) ListTokens() (*token.UnspentTokens, error)

func (*Transactor) ListTokensCallCount

func (fake *Transactor) ListTokensCallCount() int

func (*Transactor) ListTokensCalls

func (fake *Transactor) ListTokensCalls(stub func() (*token.UnspentTokens, error))

func (*Transactor) ListTokensReturns

func (fake *Transactor) ListTokensReturns(result1 *token.UnspentTokens, result2 error)

func (*Transactor) ListTokensReturnsOnCall

func (fake *Transactor) ListTokensReturnsOnCall(i int, result1 *token.UnspentTokens, result2 error)

func (*Transactor) RequestApprove

func (fake *Transactor) RequestApprove(arg1 *token.ApproveRequest) (*token.TokenTransaction, error)

func (*Transactor) RequestApproveArgsForCall

func (fake *Transactor) RequestApproveArgsForCall(i int) *token.ApproveRequest

func (*Transactor) RequestApproveCallCount

func (fake *Transactor) RequestApproveCallCount() int

func (*Transactor) RequestApproveCalls

func (fake *Transactor) RequestApproveCalls(stub func(*token.ApproveRequest) (*token.TokenTransaction, error))

func (*Transactor) RequestApproveReturns

func (fake *Transactor) RequestApproveReturns(result1 *token.TokenTransaction, result2 error)

func (*Transactor) RequestApproveReturnsOnCall

func (fake *Transactor) RequestApproveReturnsOnCall(i int, result1 *token.TokenTransaction, result2 error)

func (*Transactor) RequestExpectation

func (fake *Transactor) RequestExpectation(arg1 *token.ExpectationRequest) (*token.TokenTransaction, error)

func (*Transactor) RequestExpectationArgsForCall

func (fake *Transactor) RequestExpectationArgsForCall(i int) *token.ExpectationRequest

func (*Transactor) RequestExpectationCallCount

func (fake *Transactor) RequestExpectationCallCount() int

func (*Transactor) RequestExpectationCalls

func (fake *Transactor) RequestExpectationCalls(stub func(*token.ExpectationRequest) (*token.TokenTransaction, error))

func (*Transactor) RequestExpectationReturns

func (fake *Transactor) RequestExpectationReturns(result1 *token.TokenTransaction, result2 error)

func (*Transactor) RequestExpectationReturnsOnCall

func (fake *Transactor) RequestExpectationReturnsOnCall(i int, result1 *token.TokenTransaction, result2 error)

func (*Transactor) RequestRedeem

func (fake *Transactor) RequestRedeem(arg1 *token.RedeemRequest) (*token.TokenTransaction, error)

func (*Transactor) RequestRedeemArgsForCall

func (fake *Transactor) RequestRedeemArgsForCall(i int) *token.RedeemRequest

func (*Transactor) RequestRedeemCallCount

func (fake *Transactor) RequestRedeemCallCount() int

func (*Transactor) RequestRedeemCalls

func (fake *Transactor) RequestRedeemCalls(stub func(*token.RedeemRequest) (*token.TokenTransaction, error))

func (*Transactor) RequestRedeemReturns

func (fake *Transactor) RequestRedeemReturns(result1 *token.TokenTransaction, result2 error)

func (*Transactor) RequestRedeemReturnsOnCall

func (fake *Transactor) RequestRedeemReturnsOnCall(i int, result1 *token.TokenTransaction, result2 error)

func (*Transactor) RequestTransfer

func (fake *Transactor) RequestTransfer(arg1 *token.TransferRequest) (*token.TokenTransaction, error)

func (*Transactor) RequestTransferArgsForCall

func (fake *Transactor) RequestTransferArgsForCall(i int) *token.TransferRequest

func (*Transactor) RequestTransferCallCount

func (fake *Transactor) RequestTransferCallCount() int

func (*Transactor) RequestTransferCalls

func (fake *Transactor) RequestTransferCalls(stub func(*token.TransferRequest) (*token.TokenTransaction, error))

func (*Transactor) RequestTransferFrom

func (fake *Transactor) RequestTransferFrom(arg1 *token.TransferRequest) (*token.TokenTransaction, error)

func (*Transactor) RequestTransferFromArgsForCall

func (fake *Transactor) RequestTransferFromArgsForCall(i int) *token.TransferRequest

func (*Transactor) RequestTransferFromCallCount

func (fake *Transactor) RequestTransferFromCallCount() int

func (*Transactor) RequestTransferFromCalls

func (fake *Transactor) RequestTransferFromCalls(stub func(*token.TransferRequest) (*token.TokenTransaction, error))

func (*Transactor) RequestTransferFromReturns

func (fake *Transactor) RequestTransferFromReturns(result1 *token.TokenTransaction, result2 error)

func (*Transactor) RequestTransferFromReturnsOnCall

func (fake *Transactor) RequestTransferFromReturnsOnCall(i int, result1 *token.TokenTransaction, result2 error)

func (*Transactor) RequestTransferReturns

func (fake *Transactor) RequestTransferReturns(result1 *token.TokenTransaction, result2 error)

func (*Transactor) RequestTransferReturnsOnCall

func (fake *Transactor) RequestTransferReturnsOnCall(i int, result1 *token.TokenTransaction, result2 error)

Jump to

Keyboard shortcuts

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