mocks

package
v0.1.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageStoreMock

type MessageStoreMock struct {
	ListMessagesMock mMessageStoreMockListMessages

	StreamMessagesMock mMessageStoreMockStreamMessages
	// contains filtered or unexported fields
}

MessageStoreMock implements telemetry.messageStore

func NewMessageStoreMock

func NewMessageStoreMock(t minimock.Tester) *MessageStoreMock

NewMessageStoreMock returns a mock for telemetry.messageStore

func (*MessageStoreMock) ListMessages

func (mmListMessages *MessageStoreMock) ListMessages(from time.Time, to time.Time, filter storage.Filter, after []byte, limit uint) (b1 storage.Batch, err error)

ListMessages implements telemetry.messageStore

func (*MessageStoreMock) ListMessagesAfterCounter

func (mmListMessages *MessageStoreMock) ListMessagesAfterCounter() uint64

ListMessagesAfterCounter returns a count of finished MessageStoreMock.ListMessages invocations

func (*MessageStoreMock) ListMessagesBeforeCounter

func (mmListMessages *MessageStoreMock) ListMessagesBeforeCounter() uint64

ListMessagesBeforeCounter returns a count of MessageStoreMock.ListMessages invocations

func (*MessageStoreMock) MinimockFinish

func (m *MessageStoreMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*MessageStoreMock) MinimockListMessagesDone

func (m *MessageStoreMock) MinimockListMessagesDone() bool

MinimockListMessagesDone returns true if the count of the ListMessages invocations corresponds the number of defined expectations

func (*MessageStoreMock) MinimockListMessagesInspect

func (m *MessageStoreMock) MinimockListMessagesInspect()

MinimockListMessagesInspect logs each unmet expectation

func (*MessageStoreMock) MinimockStreamMessagesDone

func (m *MessageStoreMock) MinimockStreamMessagesDone() bool

MinimockStreamMessagesDone returns true if the count of the StreamMessages invocations corresponds the number of defined expectations

func (*MessageStoreMock) MinimockStreamMessagesInspect

func (m *MessageStoreMock) MinimockStreamMessagesInspect()

MinimockStreamMessagesInspect logs each unmet expectation

func (*MessageStoreMock) MinimockWait

func (m *MessageStoreMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

func (*MessageStoreMock) StreamMessages

func (mmStreamMessages *MessageStoreMock) StreamMessages(ctx context.Context, from time.Time, filter storage.Filter, limit uint) (b1 storage.Batch, ch1 chan storage.Message, err error)

StreamMessages implements telemetry.messageStore

func (*MessageStoreMock) StreamMessagesAfterCounter

func (mmStreamMessages *MessageStoreMock) StreamMessagesAfterCounter() uint64

StreamMessagesAfterCounter returns a count of finished MessageStoreMock.StreamMessages invocations

func (*MessageStoreMock) StreamMessagesBeforeCounter

func (mmStreamMessages *MessageStoreMock) StreamMessagesBeforeCounter() uint64

StreamMessagesBeforeCounter returns a count of MessageStoreMock.StreamMessages invocations

type MessageStoreMockListMessagesExpectation

type MessageStoreMockListMessagesExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

MessageStoreMockListMessagesExpectation specifies expectation struct of the messageStore.ListMessages

func (*MessageStoreMockListMessagesExpectation) Then

Then sets up messageStore.ListMessages return parameters for the expectation previously defined by the When method

type MessageStoreMockListMessagesParams

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

MessageStoreMockListMessagesParams contains parameters of the messageStore.ListMessages

type MessageStoreMockListMessagesResults

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

MessageStoreMockListMessagesResults contains results of the messageStore.ListMessages

type MessageStoreMockStreamMessagesExpectation

type MessageStoreMockStreamMessagesExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

MessageStoreMockStreamMessagesExpectation specifies expectation struct of the messageStore.StreamMessages

func (*MessageStoreMockStreamMessagesExpectation) Then

Then sets up messageStore.StreamMessages return parameters for the expectation previously defined by the When method

type MessageStoreMockStreamMessagesParams

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

MessageStoreMockStreamMessagesParams contains parameters of the messageStore.StreamMessages

type MessageStoreMockStreamMessagesResults

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

MessageStoreMockStreamMessagesResults contains results of the messageStore.StreamMessages

type Telemetry_StreamLogMessagesServerMock

type Telemetry_StreamLogMessagesServerMock struct {
	ContextMock mTelemetry_StreamLogMessagesServerMockContext

	RecvMsgMock mTelemetry_StreamLogMessagesServerMockRecvMsg

	SendMock mTelemetry_StreamLogMessagesServerMockSend

	SendHeaderMock mTelemetry_StreamLogMessagesServerMockSendHeader

	SendMsgMock mTelemetry_StreamLogMessagesServerMockSendMsg

	SetHeaderMock mTelemetry_StreamLogMessagesServerMockSetHeader

	SetTrailerMock mTelemetry_StreamLogMessagesServerMockSetTrailer
	// contains filtered or unexported fields
}

Telemetry_StreamLogMessagesServerMock implements telemetry.Telemetry_StreamLogMessagesServer

func NewTelemetry_StreamLogMessagesServerMock

func NewTelemetry_StreamLogMessagesServerMock(t minimock.Tester) *Telemetry_StreamLogMessagesServerMock

NewTelemetry_StreamLogMessagesServerMock returns a mock for telemetry.Telemetry_StreamLogMessagesServer

func (*Telemetry_StreamLogMessagesServerMock) Context

func (mmContext *Telemetry_StreamLogMessagesServerMock) Context() (c1 context.Context)

Context implements telemetry.Telemetry_StreamLogMessagesServer

func (*Telemetry_StreamLogMessagesServerMock) ContextAfterCounter

func (mmContext *Telemetry_StreamLogMessagesServerMock) ContextAfterCounter() uint64

ContextAfterCounter returns a count of finished Telemetry_StreamLogMessagesServerMock.Context invocations

func (*Telemetry_StreamLogMessagesServerMock) ContextBeforeCounter

func (mmContext *Telemetry_StreamLogMessagesServerMock) ContextBeforeCounter() uint64

ContextBeforeCounter returns a count of Telemetry_StreamLogMessagesServerMock.Context invocations

func (*Telemetry_StreamLogMessagesServerMock) MinimockContextDone

func (m *Telemetry_StreamLogMessagesServerMock) MinimockContextDone() bool

MinimockContextDone returns true if the count of the Context invocations corresponds the number of defined expectations

func (*Telemetry_StreamLogMessagesServerMock) MinimockContextInspect

func (m *Telemetry_StreamLogMessagesServerMock) MinimockContextInspect()

MinimockContextInspect logs each unmet expectation

func (*Telemetry_StreamLogMessagesServerMock) MinimockFinish

func (m *Telemetry_StreamLogMessagesServerMock) MinimockFinish()

MinimockFinish checks that all mocked methods have been called the expected number of times

func (*Telemetry_StreamLogMessagesServerMock) MinimockRecvMsgDone

func (m *Telemetry_StreamLogMessagesServerMock) MinimockRecvMsgDone() bool

MinimockRecvMsgDone returns true if the count of the RecvMsg invocations corresponds the number of defined expectations

func (*Telemetry_StreamLogMessagesServerMock) MinimockRecvMsgInspect

func (m *Telemetry_StreamLogMessagesServerMock) MinimockRecvMsgInspect()

MinimockRecvMsgInspect logs each unmet expectation

func (*Telemetry_StreamLogMessagesServerMock) MinimockSendDone

func (m *Telemetry_StreamLogMessagesServerMock) MinimockSendDone() bool

MinimockSendDone returns true if the count of the Send invocations corresponds the number of defined expectations

func (*Telemetry_StreamLogMessagesServerMock) MinimockSendHeaderDone

func (m *Telemetry_StreamLogMessagesServerMock) MinimockSendHeaderDone() bool

MinimockSendHeaderDone returns true if the count of the SendHeader invocations corresponds the number of defined expectations

func (*Telemetry_StreamLogMessagesServerMock) MinimockSendHeaderInspect

func (m *Telemetry_StreamLogMessagesServerMock) MinimockSendHeaderInspect()

MinimockSendHeaderInspect logs each unmet expectation

func (*Telemetry_StreamLogMessagesServerMock) MinimockSendInspect

func (m *Telemetry_StreamLogMessagesServerMock) MinimockSendInspect()

MinimockSendInspect logs each unmet expectation

func (*Telemetry_StreamLogMessagesServerMock) MinimockSendMsgDone

func (m *Telemetry_StreamLogMessagesServerMock) MinimockSendMsgDone() bool

MinimockSendMsgDone returns true if the count of the SendMsg invocations corresponds the number of defined expectations

func (*Telemetry_StreamLogMessagesServerMock) MinimockSendMsgInspect

func (m *Telemetry_StreamLogMessagesServerMock) MinimockSendMsgInspect()

MinimockSendMsgInspect logs each unmet expectation

func (*Telemetry_StreamLogMessagesServerMock) MinimockSetHeaderDone

func (m *Telemetry_StreamLogMessagesServerMock) MinimockSetHeaderDone() bool

MinimockSetHeaderDone returns true if the count of the SetHeader invocations corresponds the number of defined expectations

func (*Telemetry_StreamLogMessagesServerMock) MinimockSetHeaderInspect

func (m *Telemetry_StreamLogMessagesServerMock) MinimockSetHeaderInspect()

MinimockSetHeaderInspect logs each unmet expectation

func (*Telemetry_StreamLogMessagesServerMock) MinimockSetTrailerDone

func (m *Telemetry_StreamLogMessagesServerMock) MinimockSetTrailerDone() bool

MinimockSetTrailerDone returns true if the count of the SetTrailer invocations corresponds the number of defined expectations

func (*Telemetry_StreamLogMessagesServerMock) MinimockSetTrailerInspect

func (m *Telemetry_StreamLogMessagesServerMock) MinimockSetTrailerInspect()

MinimockSetTrailerInspect logs each unmet expectation

func (*Telemetry_StreamLogMessagesServerMock) MinimockWait

func (m *Telemetry_StreamLogMessagesServerMock) MinimockWait(timeout mm_time.Duration)

MinimockWait waits for all mocked methods to be called the expected number of times

func (*Telemetry_StreamLogMessagesServerMock) RecvMsg

func (mmRecvMsg *Telemetry_StreamLogMessagesServerMock) RecvMsg(m interface{}) (err error)

RecvMsg implements telemetry.Telemetry_StreamLogMessagesServer

func (*Telemetry_StreamLogMessagesServerMock) RecvMsgAfterCounter

func (mmRecvMsg *Telemetry_StreamLogMessagesServerMock) RecvMsgAfterCounter() uint64

RecvMsgAfterCounter returns a count of finished Telemetry_StreamLogMessagesServerMock.RecvMsg invocations

func (*Telemetry_StreamLogMessagesServerMock) RecvMsgBeforeCounter

func (mmRecvMsg *Telemetry_StreamLogMessagesServerMock) RecvMsgBeforeCounter() uint64

RecvMsgBeforeCounter returns a count of Telemetry_StreamLogMessagesServerMock.RecvMsg invocations

func (*Telemetry_StreamLogMessagesServerMock) Send

Send implements telemetry.Telemetry_StreamLogMessagesServer

func (*Telemetry_StreamLogMessagesServerMock) SendAfterCounter

func (mmSend *Telemetry_StreamLogMessagesServerMock) SendAfterCounter() uint64

SendAfterCounter returns a count of finished Telemetry_StreamLogMessagesServerMock.Send invocations

func (*Telemetry_StreamLogMessagesServerMock) SendBeforeCounter

func (mmSend *Telemetry_StreamLogMessagesServerMock) SendBeforeCounter() uint64

SendBeforeCounter returns a count of Telemetry_StreamLogMessagesServerMock.Send invocations

func (*Telemetry_StreamLogMessagesServerMock) SendHeader

func (mmSendHeader *Telemetry_StreamLogMessagesServerMock) SendHeader(m1 metadata.MD) (err error)

SendHeader implements telemetry.Telemetry_StreamLogMessagesServer

func (*Telemetry_StreamLogMessagesServerMock) SendHeaderAfterCounter

func (mmSendHeader *Telemetry_StreamLogMessagesServerMock) SendHeaderAfterCounter() uint64

SendHeaderAfterCounter returns a count of finished Telemetry_StreamLogMessagesServerMock.SendHeader invocations

func (*Telemetry_StreamLogMessagesServerMock) SendHeaderBeforeCounter

func (mmSendHeader *Telemetry_StreamLogMessagesServerMock) SendHeaderBeforeCounter() uint64

SendHeaderBeforeCounter returns a count of Telemetry_StreamLogMessagesServerMock.SendHeader invocations

func (*Telemetry_StreamLogMessagesServerMock) SendMsg

func (mmSendMsg *Telemetry_StreamLogMessagesServerMock) SendMsg(m interface{}) (err error)

SendMsg implements telemetry.Telemetry_StreamLogMessagesServer

func (*Telemetry_StreamLogMessagesServerMock) SendMsgAfterCounter

func (mmSendMsg *Telemetry_StreamLogMessagesServerMock) SendMsgAfterCounter() uint64

SendMsgAfterCounter returns a count of finished Telemetry_StreamLogMessagesServerMock.SendMsg invocations

func (*Telemetry_StreamLogMessagesServerMock) SendMsgBeforeCounter

func (mmSendMsg *Telemetry_StreamLogMessagesServerMock) SendMsgBeforeCounter() uint64

SendMsgBeforeCounter returns a count of Telemetry_StreamLogMessagesServerMock.SendMsg invocations

func (*Telemetry_StreamLogMessagesServerMock) SetHeader

func (mmSetHeader *Telemetry_StreamLogMessagesServerMock) SetHeader(m1 metadata.MD) (err error)

SetHeader implements telemetry.Telemetry_StreamLogMessagesServer

func (*Telemetry_StreamLogMessagesServerMock) SetHeaderAfterCounter

func (mmSetHeader *Telemetry_StreamLogMessagesServerMock) SetHeaderAfterCounter() uint64

SetHeaderAfterCounter returns a count of finished Telemetry_StreamLogMessagesServerMock.SetHeader invocations

func (*Telemetry_StreamLogMessagesServerMock) SetHeaderBeforeCounter

func (mmSetHeader *Telemetry_StreamLogMessagesServerMock) SetHeaderBeforeCounter() uint64

SetHeaderBeforeCounter returns a count of Telemetry_StreamLogMessagesServerMock.SetHeader invocations

func (*Telemetry_StreamLogMessagesServerMock) SetTrailer

func (mmSetTrailer *Telemetry_StreamLogMessagesServerMock) SetTrailer(m1 metadata.MD)

SetTrailer implements telemetry.Telemetry_StreamLogMessagesServer

func (*Telemetry_StreamLogMessagesServerMock) SetTrailerAfterCounter

func (mmSetTrailer *Telemetry_StreamLogMessagesServerMock) SetTrailerAfterCounter() uint64

SetTrailerAfterCounter returns a count of finished Telemetry_StreamLogMessagesServerMock.SetTrailer invocations

func (*Telemetry_StreamLogMessagesServerMock) SetTrailerBeforeCounter

func (mmSetTrailer *Telemetry_StreamLogMessagesServerMock) SetTrailerBeforeCounter() uint64

SetTrailerBeforeCounter returns a count of Telemetry_StreamLogMessagesServerMock.SetTrailer invocations

type Telemetry_StreamLogMessagesServerMockContextExpectation

type Telemetry_StreamLogMessagesServerMockContextExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

Telemetry_StreamLogMessagesServerMockContextExpectation specifies expectation struct of the Telemetry_StreamLogMessagesServer.Context

type Telemetry_StreamLogMessagesServerMockContextResults

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

Telemetry_StreamLogMessagesServerMockContextResults contains results of the Telemetry_StreamLogMessagesServer.Context

type Telemetry_StreamLogMessagesServerMockRecvMsgExpectation

type Telemetry_StreamLogMessagesServerMockRecvMsgExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

Telemetry_StreamLogMessagesServerMockRecvMsgExpectation specifies expectation struct of the Telemetry_StreamLogMessagesServer.RecvMsg

func (*Telemetry_StreamLogMessagesServerMockRecvMsgExpectation) Then

Then sets up Telemetry_StreamLogMessagesServer.RecvMsg return parameters for the expectation previously defined by the When method

type Telemetry_StreamLogMessagesServerMockRecvMsgParams

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

Telemetry_StreamLogMessagesServerMockRecvMsgParams contains parameters of the Telemetry_StreamLogMessagesServer.RecvMsg

type Telemetry_StreamLogMessagesServerMockRecvMsgResults

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

Telemetry_StreamLogMessagesServerMockRecvMsgResults contains results of the Telemetry_StreamLogMessagesServer.RecvMsg

type Telemetry_StreamLogMessagesServerMockSendExpectation

type Telemetry_StreamLogMessagesServerMockSendExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

Telemetry_StreamLogMessagesServerMockSendExpectation specifies expectation struct of the Telemetry_StreamLogMessagesServer.Send

func (*Telemetry_StreamLogMessagesServerMockSendExpectation) Then

Then sets up Telemetry_StreamLogMessagesServer.Send return parameters for the expectation previously defined by the When method

type Telemetry_StreamLogMessagesServerMockSendHeaderExpectation

type Telemetry_StreamLogMessagesServerMockSendHeaderExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

Telemetry_StreamLogMessagesServerMockSendHeaderExpectation specifies expectation struct of the Telemetry_StreamLogMessagesServer.SendHeader

func (*Telemetry_StreamLogMessagesServerMockSendHeaderExpectation) Then

Then sets up Telemetry_StreamLogMessagesServer.SendHeader return parameters for the expectation previously defined by the When method

type Telemetry_StreamLogMessagesServerMockSendHeaderParams

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

Telemetry_StreamLogMessagesServerMockSendHeaderParams contains parameters of the Telemetry_StreamLogMessagesServer.SendHeader

type Telemetry_StreamLogMessagesServerMockSendHeaderResults

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

Telemetry_StreamLogMessagesServerMockSendHeaderResults contains results of the Telemetry_StreamLogMessagesServer.SendHeader

type Telemetry_StreamLogMessagesServerMockSendMsgExpectation

type Telemetry_StreamLogMessagesServerMockSendMsgExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

Telemetry_StreamLogMessagesServerMockSendMsgExpectation specifies expectation struct of the Telemetry_StreamLogMessagesServer.SendMsg

func (*Telemetry_StreamLogMessagesServerMockSendMsgExpectation) Then

Then sets up Telemetry_StreamLogMessagesServer.SendMsg return parameters for the expectation previously defined by the When method

type Telemetry_StreamLogMessagesServerMockSendMsgParams

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

Telemetry_StreamLogMessagesServerMockSendMsgParams contains parameters of the Telemetry_StreamLogMessagesServer.SendMsg

type Telemetry_StreamLogMessagesServerMockSendMsgResults

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

Telemetry_StreamLogMessagesServerMockSendMsgResults contains results of the Telemetry_StreamLogMessagesServer.SendMsg

type Telemetry_StreamLogMessagesServerMockSendParams

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

Telemetry_StreamLogMessagesServerMockSendParams contains parameters of the Telemetry_StreamLogMessagesServer.Send

type Telemetry_StreamLogMessagesServerMockSendResults

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

Telemetry_StreamLogMessagesServerMockSendResults contains results of the Telemetry_StreamLogMessagesServer.Send

type Telemetry_StreamLogMessagesServerMockSetHeaderExpectation

type Telemetry_StreamLogMessagesServerMockSetHeaderExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

Telemetry_StreamLogMessagesServerMockSetHeaderExpectation specifies expectation struct of the Telemetry_StreamLogMessagesServer.SetHeader

func (*Telemetry_StreamLogMessagesServerMockSetHeaderExpectation) Then

Then sets up Telemetry_StreamLogMessagesServer.SetHeader return parameters for the expectation previously defined by the When method

type Telemetry_StreamLogMessagesServerMockSetHeaderParams

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

Telemetry_StreamLogMessagesServerMockSetHeaderParams contains parameters of the Telemetry_StreamLogMessagesServer.SetHeader

type Telemetry_StreamLogMessagesServerMockSetHeaderResults

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

Telemetry_StreamLogMessagesServerMockSetHeaderResults contains results of the Telemetry_StreamLogMessagesServer.SetHeader

type Telemetry_StreamLogMessagesServerMockSetTrailerExpectation

type Telemetry_StreamLogMessagesServerMockSetTrailerExpectation struct {
	Counter uint64
	// contains filtered or unexported fields
}

Telemetry_StreamLogMessagesServerMockSetTrailerExpectation specifies expectation struct of the Telemetry_StreamLogMessagesServer.SetTrailer

type Telemetry_StreamLogMessagesServerMockSetTrailerParams

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

Telemetry_StreamLogMessagesServerMockSetTrailerParams contains parameters of the Telemetry_StreamLogMessagesServer.SetTrailer

Jump to

Keyboard shortcuts

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