mock

package
v0.0.0-...-810c0ba Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConnection

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

MockConnection is a mock of Connection interface.

func NewMockConnection

func NewMockConnection(ctrl *gomock.Controller) *MockConnection

NewMockConnection creates a new mock instance.

func (*MockConnection) Close

func (m *MockConnection) Close() error

Close mocks base method.

func (*MockConnection) EXPECT

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

func (*MockConnection) ReadFromUDP

func (m *MockConnection) ReadFromUDP(arg0 []byte) (int, *net.UDPAddr, error)

ReadFromUDP mocks base method.

func (*MockConnection) WriteToUDP

func (m *MockConnection) WriteToUDP(arg0 []byte, arg1 *net.UDPAddr) (int, error)

WriteToUDP mocks base method.

type MockConnectionCloser

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

MockConnectionCloser is a mock of ConnectionCloser interface.

func NewMockConnectionCloser

func NewMockConnectionCloser(ctrl *gomock.Controller) *MockConnectionCloser

NewMockConnectionCloser creates a new mock instance.

func (*MockConnectionCloser) Close

func (m *MockConnectionCloser) Close() error

Close mocks base method.

func (*MockConnectionCloser) EXPECT

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

type MockConnectionCloserMockRecorder

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

MockConnectionCloserMockRecorder is the mock recorder for MockConnectionCloser.

func (*MockConnectionCloserMockRecorder) Close

Close indicates an expected call of Close.

type MockConnectionMockRecorder

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

MockConnectionMockRecorder is the mock recorder for MockConnection.

func (*MockConnectionMockRecorder) Close

func (mr *MockConnectionMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockConnectionMockRecorder) ReadFromUDP

func (mr *MockConnectionMockRecorder) ReadFromUDP(arg0 interface{}) *gomock.Call

ReadFromUDP indicates an expected call of ReadFromUDP.

func (*MockConnectionMockRecorder) WriteToUDP

func (mr *MockConnectionMockRecorder) WriteToUDP(arg0, arg1 interface{}) *gomock.Call

WriteToUDP indicates an expected call of WriteToUDP.

type MockConnectionReader

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

MockConnectionReader is a mock of ConnectionReader interface.

func NewMockConnectionReader

func NewMockConnectionReader(ctrl *gomock.Controller) *MockConnectionReader

NewMockConnectionReader creates a new mock instance.

func (*MockConnectionReader) EXPECT

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

func (*MockConnectionReader) ReadFromUDP

func (m *MockConnectionReader) ReadFromUDP(arg0 []byte) (int, *net.UDPAddr, error)

ReadFromUDP mocks base method.

type MockConnectionReaderMockRecorder

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

MockConnectionReaderMockRecorder is the mock recorder for MockConnectionReader.

func (*MockConnectionReaderMockRecorder) ReadFromUDP

func (mr *MockConnectionReaderMockRecorder) ReadFromUDP(arg0 interface{}) *gomock.Call

ReadFromUDP indicates an expected call of ReadFromUDP.

type MockConnectionWriter

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

MockConnectionWriter is a mock of ConnectionWriter interface.

func NewMockConnectionWriter

func NewMockConnectionWriter(ctrl *gomock.Controller) *MockConnectionWriter

NewMockConnectionWriter creates a new mock instance.

func (*MockConnectionWriter) EXPECT

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

func (*MockConnectionWriter) WriteToUDP

func (m *MockConnectionWriter) WriteToUDP(arg0 []byte, arg1 *net.UDPAddr) (int, error)

WriteToUDP mocks base method.

type MockConnectionWriterMockRecorder

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

MockConnectionWriterMockRecorder is the mock recorder for MockConnectionWriter.

func (*MockConnectionWriterMockRecorder) WriteToUDP

func (mr *MockConnectionWriterMockRecorder) WriteToUDP(arg0, arg1 interface{}) *gomock.Call

WriteToUDP indicates an expected call of WriteToUDP.

Jump to

Keyboard shortcuts

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