testutil

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package testutil is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFieldInstance

func GetFieldInstance(t *testing.T, fieldName string) definitions.FieldInstance

Types

type MockBinaryParser

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

MockBinaryParser is a mock of BinaryParser interface.

func NewMockBinaryParser

func NewMockBinaryParser(ctrl *gomock.Controller) *MockBinaryParser

NewMockBinaryParser creates a new mock instance.

func (*MockBinaryParser) EXPECT

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

func (*MockBinaryParser) HasMore

func (m *MockBinaryParser) HasMore() bool

HasMore mocks base method.

func (*MockBinaryParser) Peek

func (m *MockBinaryParser) Peek() (byte, error)

Peek mocks base method.

func (*MockBinaryParser) ReadByte

func (m *MockBinaryParser) ReadByte() (byte, error)

ReadByte mocks base method.

func (*MockBinaryParser) ReadBytes

func (m *MockBinaryParser) ReadBytes(n int) ([]byte, error)

ReadBytes mocks base method.

func (*MockBinaryParser) ReadField

func (m *MockBinaryParser) ReadField() (*definitions.FieldInstance, error)

ReadField mocks base method.

func (*MockBinaryParser) ReadVariableLength

func (m *MockBinaryParser) ReadVariableLength() (int, error)

ReadVariableLength mocks base method.

type MockBinaryParserMockRecorder

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

MockBinaryParserMockRecorder is the mock recorder for MockBinaryParser.

func (*MockBinaryParserMockRecorder) HasMore

func (mr *MockBinaryParserMockRecorder) HasMore() *gomock.Call

HasMore indicates an expected call of HasMore.

func (*MockBinaryParserMockRecorder) Peek

Peek indicates an expected call of Peek.

func (*MockBinaryParserMockRecorder) ReadByte

func (mr *MockBinaryParserMockRecorder) ReadByte() *gomock.Call

ReadByte indicates an expected call of ReadByte.

func (*MockBinaryParserMockRecorder) ReadBytes

func (mr *MockBinaryParserMockRecorder) ReadBytes(n interface{}) *gomock.Call

ReadBytes indicates an expected call of ReadBytes.

func (*MockBinaryParserMockRecorder) ReadField

func (mr *MockBinaryParserMockRecorder) ReadField() *gomock.Call

ReadField indicates an expected call of ReadField.

func (*MockBinaryParserMockRecorder) ReadVariableLength

func (mr *MockBinaryParserMockRecorder) ReadVariableLength() *gomock.Call

ReadVariableLength indicates an expected call of ReadVariableLength.

Jump to

Keyboard shortcuts

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