Help us shape the future of Go! Take the 2026 Go Developer Survey

codecmock

package
v1.16.16 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package codecmock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager is a mock of Manager interface.

func NewManager

func NewManager(ctrl *gomock.Controller) *Manager

NewManager creates a new mock instance.

func (*Manager) EXPECT

func (m *Manager) EXPECT() *ManagerMockRecorder

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

func (*Manager) Marshal

func (m *Manager) Marshal(version uint16, source any) ([]byte, error)

Marshal mocks base method.

func (*Manager) RegisterCodec

func (m *Manager) RegisterCodec(version uint16, arg1 codec.Codec) error

RegisterCodec mocks base method.

func (*Manager) Size

func (m *Manager) Size(version uint16, value any) (int, error)

Size mocks base method.

func (*Manager) Unmarshal

func (m *Manager) Unmarshal(source []byte, destination any) (uint16, error)

Unmarshal mocks base method.

type ManagerMockRecorder

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

ManagerMockRecorder is the mock recorder for Manager.

func (*ManagerMockRecorder) Marshal

func (mr *ManagerMockRecorder) Marshal(version, source any) *gomock.Call

Marshal indicates an expected call of Marshal.

func (*ManagerMockRecorder) RegisterCodec

func (mr *ManagerMockRecorder) RegisterCodec(version, arg1 any) *gomock.Call

RegisterCodec indicates an expected call of RegisterCodec.

func (*ManagerMockRecorder) Size

func (mr *ManagerMockRecorder) Size(version, value any) *gomock.Call

Size indicates an expected call of Size.

func (*ManagerMockRecorder) Unmarshal

func (mr *ManagerMockRecorder) Unmarshal(source, destination any) *gomock.Call

Unmarshal indicates an expected call of Unmarshal.

Jump to

Keyboard shortcuts

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