Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks holds the generated doubles of the file group's dependencies, for the methods' tests.
Index ¶
- type MockObjects
- func (m *MockObjects) Delete(ctx context.Context, name string) error
- func (m *MockObjects) EXPECT() *MockObjectsMockRecorder
- func (m *MockObjects) GetBytes(ctx context.Context, name string) ([]byte, error)
- func (m *MockObjects) Info(ctx context.Context, name string) (*jetstream.ObjectInfo, error)
- func (m *MockObjects) List(ctx context.Context) ([]*jetstream.ObjectInfo, error)
- func (m *MockObjects) Put(ctx context.Context, meta jetstream.ObjectMeta, r io.Reader) (*jetstream.ObjectInfo, error)
- type MockObjectsMockRecorder
- func (mr *MockObjectsMockRecorder) Delete(ctx, name any) *gomock.Call
- func (mr *MockObjectsMockRecorder) GetBytes(ctx, name any) *gomock.Call
- func (mr *MockObjectsMockRecorder) Info(ctx, name any) *gomock.Call
- func (mr *MockObjectsMockRecorder) List(ctx any) *gomock.Call
- func (mr *MockObjectsMockRecorder) Put(ctx, meta, r any) *gomock.Call
- type MockStates
- type MockStatesMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockObjects ¶
type MockObjects struct {
// contains filtered or unexported fields
}
MockObjects is a mock of Objects interface.
func NewMockObjects ¶
func NewMockObjects(ctrl *gomock.Controller) *MockObjects
NewMockObjects creates a new mock instance.
func (*MockObjects) Delete ¶
func (m *MockObjects) Delete(ctx context.Context, name string) error
Delete mocks base method.
func (*MockObjects) EXPECT ¶
func (m *MockObjects) EXPECT() *MockObjectsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockObjects) Info ¶
func (m *MockObjects) Info(ctx context.Context, name string) (*jetstream.ObjectInfo, error)
Info mocks base method.
func (*MockObjects) List ¶
func (m *MockObjects) List(ctx context.Context) ([]*jetstream.ObjectInfo, error)
List mocks base method.
func (*MockObjects) Put ¶
func (m *MockObjects) Put(ctx context.Context, meta jetstream.ObjectMeta, r io.Reader) (*jetstream.ObjectInfo, error)
Put mocks base method.
type MockObjectsMockRecorder ¶
type MockObjectsMockRecorder struct {
// contains filtered or unexported fields
}
MockObjectsMockRecorder is the mock recorder for MockObjects.
func (*MockObjectsMockRecorder) Delete ¶
func (mr *MockObjectsMockRecorder) Delete(ctx, name any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockObjectsMockRecorder) GetBytes ¶
func (mr *MockObjectsMockRecorder) GetBytes(ctx, name any) *gomock.Call
GetBytes indicates an expected call of GetBytes.
func (*MockObjectsMockRecorder) Info ¶
func (mr *MockObjectsMockRecorder) Info(ctx, name any) *gomock.Call
Info indicates an expected call of Info.
type MockStates ¶
type MockStates struct {
// contains filtered or unexported fields
}
MockStates is a mock of States interface.
func NewMockStates ¶
func NewMockStates(ctrl *gomock.Controller) *MockStates
NewMockStates creates a new mock instance.
func (*MockStates) EXPECT ¶
func (m *MockStates) EXPECT() *MockStatesMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStates) Get ¶
func (m *MockStates) Get(ctx context.Context, key string) (jetstream.KeyValueEntry, error)
Get mocks base method.
type MockStatesMockRecorder ¶
type MockStatesMockRecorder struct {
// contains filtered or unexported fields
}
MockStatesMockRecorder is the mock recorder for MockStates.