syscall

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package syscall is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ISyscall

type ISyscall interface {
	Open(path string, mode int, perm uint32) (fd int, err error)
	Close(fd int) (err error)
	EpollCreate1(flag int) (fd int, err error)
	EpollCtl(epfd int, op int, fd int, event *syscall.EpollEvent) (err error)
	EpollWait(epfd int, events []syscall.EpollEvent, msec int) (n int, err error)
	Ioctl(fd int, code int, data unsafe.Pointer) (err syscall.Errno)
	Socket(domain, typ, proto int) (fd int, err error)
	Read(fd int, p []byte) (n int, err error)
	Write(fd int, p []byte) (n int, err error)
}
var Syscall ISyscall

type MockISyscall

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

MockISyscall is a mock of ISyscall interface.

func NewMockISyscall

func NewMockISyscall(ctrl *gomock.Controller) *MockISyscall

NewMockISyscall creates a new mock instance.

func (*MockISyscall) Close

func (m *MockISyscall) Close(fd int) error

Close mocks base method.

func (*MockISyscall) EXPECT

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

func (*MockISyscall) EpollCreate1

func (m *MockISyscall) EpollCreate1(flag int) (int, error)

EpollCreate1 mocks base method.

func (*MockISyscall) EpollCtl

func (m *MockISyscall) EpollCtl(epfd, op, fd int, event *syscall.EpollEvent) error

EpollCtl mocks base method.

func (*MockISyscall) EpollWait

func (m *MockISyscall) EpollWait(epfd int, events []syscall.EpollEvent, msec int) (int, error)

EpollWait mocks base method.

func (*MockISyscall) Ioctl

func (m *MockISyscall) Ioctl(fd, code int, data unsafe.Pointer) syscall.Errno

Ioctl mocks base method.

func (*MockISyscall) Open

func (m *MockISyscall) Open(path string, mode int, perm uint32) (int, error)

Open mocks base method.

func (*MockISyscall) Read

func (m *MockISyscall) Read(fd int, p []byte) (int, error)

Read mocks base method.

func (*MockISyscall) Socket

func (m *MockISyscall) Socket(domain, typ, proto int) (int, error)

Socket mocks base method.

func (*MockISyscall) Write

func (m *MockISyscall) Write(fd int, p []byte) (int, error)

Write mocks base method.

type MockISyscallMockRecorder

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

MockISyscallMockRecorder is the mock recorder for MockISyscall.

func (*MockISyscallMockRecorder) Close

func (mr *MockISyscallMockRecorder) Close(fd interface{}) *gomock.Call

Close indicates an expected call of Close.

func (*MockISyscallMockRecorder) EpollCreate1

func (mr *MockISyscallMockRecorder) EpollCreate1(flag interface{}) *gomock.Call

EpollCreate1 indicates an expected call of EpollCreate1.

func (*MockISyscallMockRecorder) EpollCtl

func (mr *MockISyscallMockRecorder) EpollCtl(epfd, op, fd, event interface{}) *gomock.Call

EpollCtl indicates an expected call of EpollCtl.

func (*MockISyscallMockRecorder) EpollWait

func (mr *MockISyscallMockRecorder) EpollWait(epfd, events, msec interface{}) *gomock.Call

EpollWait indicates an expected call of EpollWait.

func (*MockISyscallMockRecorder) Ioctl

func (mr *MockISyscallMockRecorder) Ioctl(fd, code, data interface{}) *gomock.Call

Ioctl indicates an expected call of Ioctl.

func (*MockISyscallMockRecorder) Open

func (mr *MockISyscallMockRecorder) Open(path, mode, perm interface{}) *gomock.Call

Open indicates an expected call of Open.

func (*MockISyscallMockRecorder) Read

func (mr *MockISyscallMockRecorder) Read(fd, p interface{}) *gomock.Call

Read indicates an expected call of Read.

func (*MockISyscallMockRecorder) Socket

func (mr *MockISyscallMockRecorder) Socket(domain, typ, proto interface{}) *gomock.Call

Socket indicates an expected call of Socket.

func (*MockISyscallMockRecorder) Write

func (mr *MockISyscallMockRecorder) Write(fd, p interface{}) *gomock.Call

Write indicates an expected call of Write.

Jump to

Keyboard shortcuts

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