Documentation
¶
Overview ¶
Package syscall is a generated GoMock package.
Index ¶
- type ISyscall
- type MockISyscall
- func (m *MockISyscall) Close(fd int) error
- func (m *MockISyscall) EXPECT() *MockISyscallMockRecorder
- func (m *MockISyscall) EpollCreate1(flag int) (int, error)
- func (m *MockISyscall) EpollCtl(epfd, op, fd int, event *syscall.EpollEvent) error
- func (m *MockISyscall) EpollWait(epfd int, events []syscall.EpollEvent, msec int) (int, error)
- func (m *MockISyscall) Ioctl(fd, code int, data unsafe.Pointer) syscall.Errno
- func (m *MockISyscall) Open(path string, mode int, perm uint32) (int, error)
- func (m *MockISyscall) Read(fd int, p []byte) (int, error)
- func (m *MockISyscall) Socket(domain, typ, proto int) (int, error)
- func (m *MockISyscall) Write(fd int, p []byte) (int, error)
- type MockISyscallMockRecorder
- func (mr *MockISyscallMockRecorder) Close(fd interface{}) *gomock.Call
- func (mr *MockISyscallMockRecorder) EpollCreate1(flag interface{}) *gomock.Call
- func (mr *MockISyscallMockRecorder) EpollCtl(epfd, op, fd, event interface{}) *gomock.Call
- func (mr *MockISyscallMockRecorder) EpollWait(epfd, events, msec interface{}) *gomock.Call
- func (mr *MockISyscallMockRecorder) Ioctl(fd, code, data interface{}) *gomock.Call
- func (mr *MockISyscallMockRecorder) Open(path, mode, perm interface{}) *gomock.Call
- func (mr *MockISyscallMockRecorder) Read(fd, p interface{}) *gomock.Call
- func (mr *MockISyscallMockRecorder) Socket(domain, typ, proto interface{}) *gomock.Call
- func (mr *MockISyscallMockRecorder) Write(fd, p interface{}) *gomock.Call
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) EXPECT ¶
func (m *MockISyscall) EXPECT() *MockISyscallMockRecorder
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) Read ¶
func (m *MockISyscall) Read(fd int, p []byte) (int, error)
Read 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.