Documentation ¶
Index ¶
- type Service
- type ServiceMock
- func (mmCheckMessageFromAuthorizedVirtual *ServiceMock) CheckMessageFromAuthorizedVirtual(ctx context.Context, payloadObj interface{}, sender reference.Global, ...) (mustReject bool, err error)
- func (mmCheckMessageFromAuthorizedVirtual *ServiceMock) CheckMessageFromAuthorizedVirtualAfterCounter() uint64
- func (mmCheckMessageFromAuthorizedVirtual *ServiceMock) CheckMessageFromAuthorizedVirtualBeforeCounter() uint64
- func (mmGetCallDelegationToken *ServiceMock) GetCallDelegationToken(outgoing reference.Global, to reference.Global, pn pulse.Number, ...) (c1 rms.CallDelegationToken)
- func (mmGetCallDelegationToken *ServiceMock) GetCallDelegationTokenAfterCounter() uint64
- func (mmGetCallDelegationToken *ServiceMock) GetCallDelegationTokenBeforeCounter() uint64
- func (mmHasToSendToken *ServiceMock) HasToSendToken(token rms.CallDelegationToken) (b1 bool)
- func (mmHasToSendToken *ServiceMock) HasToSendTokenAfterCounter() uint64
- func (mmHasToSendToken *ServiceMock) HasToSendTokenBeforeCounter() uint64
- func (m *ServiceMock) MinimockCheckMessageFromAuthorizedVirtualDone() bool
- func (m *ServiceMock) MinimockCheckMessageFromAuthorizedVirtualInspect()
- func (m *ServiceMock) MinimockFinish()
- func (m *ServiceMock) MinimockGetCallDelegationTokenDone() bool
- func (m *ServiceMock) MinimockGetCallDelegationTokenInspect()
- func (m *ServiceMock) MinimockHasToSendTokenDone() bool
- func (m *ServiceMock) MinimockHasToSendTokenInspect()
- func (m *ServiceMock) MinimockWait(timeout mm_time.Duration)
- type ServiceMockCheckMessageFromAuthorizedVirtualExpectation
- type ServiceMockCheckMessageFromAuthorizedVirtualParams
- type ServiceMockCheckMessageFromAuthorizedVirtualResults
- type ServiceMockGetCallDelegationTokenExpectation
- type ServiceMockGetCallDelegationTokenParams
- type ServiceMockGetCallDelegationTokenResults
- type ServiceMockHasToSendTokenExpectation
- type ServiceMockHasToSendTokenParams
- type ServiceMockHasToSendTokenResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { GetCallDelegationToken(outgoing reference.Global, to reference.Global, pn pulse.Number, object reference.Global) rms.CallDelegationToken CheckMessageFromAuthorizedVirtual(ctx context.Context, payloadObj interface{}, sender reference.Global, pr pulse.Range) (mustReject bool, err error) HasToSendToken(token rms.CallDelegationToken) bool }
type ServiceMock ¶
type ServiceMock struct { CheckMessageFromAuthorizedVirtualMock mServiceMockCheckMessageFromAuthorizedVirtual GetCallDelegationTokenMock mServiceMockGetCallDelegationToken HasToSendTokenMock mServiceMockHasToSendToken // contains filtered or unexported fields }
ServiceMock implements Service
func NewServiceMock ¶
func NewServiceMock(t minimock.Tester) *ServiceMock
NewServiceMock returns a mock for Service
func (*ServiceMock) CheckMessageFromAuthorizedVirtual ¶
func (mmCheckMessageFromAuthorizedVirtual *ServiceMock) CheckMessageFromAuthorizedVirtual(ctx context.Context, payloadObj interface{}, sender reference.Global, pr pulse.Range) (mustReject bool, err error)
CheckMessageFromAuthorizedVirtual implements Service
func (*ServiceMock) CheckMessageFromAuthorizedVirtualAfterCounter ¶
func (mmCheckMessageFromAuthorizedVirtual *ServiceMock) CheckMessageFromAuthorizedVirtualAfterCounter() uint64
CheckMessageFromAuthorizedVirtualAfterCounter returns a count of finished ServiceMock.CheckMessageFromAuthorizedVirtual invocations
func (*ServiceMock) CheckMessageFromAuthorizedVirtualBeforeCounter ¶
func (mmCheckMessageFromAuthorizedVirtual *ServiceMock) CheckMessageFromAuthorizedVirtualBeforeCounter() uint64
CheckMessageFromAuthorizedVirtualBeforeCounter returns a count of ServiceMock.CheckMessageFromAuthorizedVirtual invocations
func (*ServiceMock) GetCallDelegationToken ¶
func (mmGetCallDelegationToken *ServiceMock) GetCallDelegationToken(outgoing reference.Global, to reference.Global, pn pulse.Number, object reference.Global) (c1 rms.CallDelegationToken)
GetCallDelegationToken implements Service
func (*ServiceMock) GetCallDelegationTokenAfterCounter ¶
func (mmGetCallDelegationToken *ServiceMock) GetCallDelegationTokenAfterCounter() uint64
GetCallDelegationTokenAfterCounter returns a count of finished ServiceMock.GetCallDelegationToken invocations
func (*ServiceMock) GetCallDelegationTokenBeforeCounter ¶
func (mmGetCallDelegationToken *ServiceMock) GetCallDelegationTokenBeforeCounter() uint64
GetCallDelegationTokenBeforeCounter returns a count of ServiceMock.GetCallDelegationToken invocations
func (*ServiceMock) HasToSendToken ¶
func (mmHasToSendToken *ServiceMock) HasToSendToken(token rms.CallDelegationToken) (b1 bool)
HasToSendToken implements Service
func (*ServiceMock) HasToSendTokenAfterCounter ¶
func (mmHasToSendToken *ServiceMock) HasToSendTokenAfterCounter() uint64
HasToSendTokenAfterCounter returns a count of finished ServiceMock.HasToSendToken invocations
func (*ServiceMock) HasToSendTokenBeforeCounter ¶
func (mmHasToSendToken *ServiceMock) HasToSendTokenBeforeCounter() uint64
HasToSendTokenBeforeCounter returns a count of ServiceMock.HasToSendToken invocations
func (*ServiceMock) MinimockCheckMessageFromAuthorizedVirtualDone ¶
func (m *ServiceMock) MinimockCheckMessageFromAuthorizedVirtualDone() bool
MinimockCheckMessageFromAuthorizedVirtualDone returns true if the count of the CheckMessageFromAuthorizedVirtual invocations corresponds the number of defined expectations
func (*ServiceMock) MinimockCheckMessageFromAuthorizedVirtualInspect ¶
func (m *ServiceMock) MinimockCheckMessageFromAuthorizedVirtualInspect()
MinimockCheckMessageFromAuthorizedVirtualInspect logs each unmet expectation
func (*ServiceMock) MinimockFinish ¶
func (m *ServiceMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*ServiceMock) MinimockGetCallDelegationTokenDone ¶
func (m *ServiceMock) MinimockGetCallDelegationTokenDone() bool
MinimockGetCallDelegationTokenDone returns true if the count of the GetCallDelegationToken invocations corresponds the number of defined expectations
func (*ServiceMock) MinimockGetCallDelegationTokenInspect ¶
func (m *ServiceMock) MinimockGetCallDelegationTokenInspect()
MinimockGetCallDelegationTokenInspect logs each unmet expectation
func (*ServiceMock) MinimockHasToSendTokenDone ¶
func (m *ServiceMock) MinimockHasToSendTokenDone() bool
MinimockHasToSendTokenDone returns true if the count of the HasToSendToken invocations corresponds the number of defined expectations
func (*ServiceMock) MinimockHasToSendTokenInspect ¶
func (m *ServiceMock) MinimockHasToSendTokenInspect()
MinimockHasToSendTokenInspect logs each unmet expectation
func (*ServiceMock) MinimockWait ¶
func (m *ServiceMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type ServiceMockCheckMessageFromAuthorizedVirtualExpectation ¶
type ServiceMockCheckMessageFromAuthorizedVirtualExpectation struct { Counter uint64 // contains filtered or unexported fields }
ServiceMockCheckMessageFromAuthorizedVirtualExpectation specifies expectation struct of the Service.CheckMessageFromAuthorizedVirtual
func (*ServiceMockCheckMessageFromAuthorizedVirtualExpectation) Then ¶
func (e *ServiceMockCheckMessageFromAuthorizedVirtualExpectation) Then(mustReject bool, err error) *ServiceMock
Then sets up Service.CheckMessageFromAuthorizedVirtual return parameters for the expectation previously defined by the When method
type ServiceMockCheckMessageFromAuthorizedVirtualParams ¶
type ServiceMockCheckMessageFromAuthorizedVirtualParams struct {
// contains filtered or unexported fields
}
ServiceMockCheckMessageFromAuthorizedVirtualParams contains parameters of the Service.CheckMessageFromAuthorizedVirtual
type ServiceMockCheckMessageFromAuthorizedVirtualResults ¶
type ServiceMockCheckMessageFromAuthorizedVirtualResults struct {
// contains filtered or unexported fields
}
ServiceMockCheckMessageFromAuthorizedVirtualResults contains results of the Service.CheckMessageFromAuthorizedVirtual
type ServiceMockGetCallDelegationTokenExpectation ¶
type ServiceMockGetCallDelegationTokenExpectation struct { Counter uint64 // contains filtered or unexported fields }
ServiceMockGetCallDelegationTokenExpectation specifies expectation struct of the Service.GetCallDelegationToken
func (*ServiceMockGetCallDelegationTokenExpectation) Then ¶
func (e *ServiceMockGetCallDelegationTokenExpectation) Then(c1 rms.CallDelegationToken) *ServiceMock
Then sets up Service.GetCallDelegationToken return parameters for the expectation previously defined by the When method
type ServiceMockGetCallDelegationTokenParams ¶
type ServiceMockGetCallDelegationTokenParams struct {
// contains filtered or unexported fields
}
ServiceMockGetCallDelegationTokenParams contains parameters of the Service.GetCallDelegationToken
type ServiceMockGetCallDelegationTokenResults ¶
type ServiceMockGetCallDelegationTokenResults struct {
// contains filtered or unexported fields
}
ServiceMockGetCallDelegationTokenResults contains results of the Service.GetCallDelegationToken
type ServiceMockHasToSendTokenExpectation ¶
type ServiceMockHasToSendTokenExpectation struct { Counter uint64 // contains filtered or unexported fields }
ServiceMockHasToSendTokenExpectation specifies expectation struct of the Service.HasToSendToken
func (*ServiceMockHasToSendTokenExpectation) Then ¶
func (e *ServiceMockHasToSendTokenExpectation) Then(b1 bool) *ServiceMock
Then sets up Service.HasToSendToken return parameters for the expectation previously defined by the When method
type ServiceMockHasToSendTokenParams ¶
type ServiceMockHasToSendTokenParams struct {
// contains filtered or unexported fields
}
ServiceMockHasToSendTokenParams contains parameters of the Service.HasToSendToken
type ServiceMockHasToSendTokenResults ¶
type ServiceMockHasToSendTokenResults struct {
// contains filtered or unexported fields
}
ServiceMockHasToSendTokenResults contains results of the Service.HasToSendToken