streammock

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package streammock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockWriter

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

MockWriter is a mock of Writer interface.

func NewMockWriter

func NewMockWriter(ctrl *gomock.Controller) *MockWriter

NewMockWriter creates a new mock instance.

func (*MockWriter) EXPECT

func (m *MockWriter) EXPECT() *MockWriterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockWriter) Write

func (m *MockWriter) Write(ctx context.Context, name string, message stream.Message) error

Write mocks base method.

func (*MockWriter) WriteBatch

func (m *MockWriter) WriteBatch(ctx context.Context, name string, messages []stream.Message) (int, error)

WriteBatch mocks base method.

type MockWriterMockRecorder

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

MockWriterMockRecorder is the mock recorder for MockWriter.

func (*MockWriterMockRecorder) Write

func (mr *MockWriterMockRecorder) Write(ctx, name, message any) *MockWriterWriteCall

Write indicates an expected call of Write.

func (*MockWriterMockRecorder) WriteBatch

func (mr *MockWriterMockRecorder) WriteBatch(ctx, name, messages any) *MockWriterWriteBatchCall

WriteBatch indicates an expected call of WriteBatch.

type MockWriterWriteBatchCall

type MockWriterWriteBatchCall struct {
	*gomock.Call
}

MockWriterWriteBatchCall wrap *gomock.Call

func (*MockWriterWriteBatchCall) Do

Do rewrite *gomock.Call.Do

func (*MockWriterWriteBatchCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockWriterWriteBatchCall) Return

Return rewrite *gomock.Call.Return

type MockWriterWriteCall

type MockWriterWriteCall struct {
	*gomock.Call
}

MockWriterWriteCall wrap *gomock.Call

func (*MockWriterWriteCall) Do

Do rewrite *gomock.Call.Do

func (*MockWriterWriteCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockWriterWriteCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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