Xray-core/testing/mocks/io.go

88 lines
2.2 KiB
Go
Raw Normal View History

2020-11-25 13:01:53 +02:00
// Code generated by MockGen. DO NOT EDIT.
// Source: io (interfaces: Reader,Writer)
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
2021-04-09 18:36:48 +03:00
gomock "github.com/golang/mock/gomock"
2020-11-25 13:01:53 +02:00
)
2021-04-09 18:36:48 +03:00
// Reader is a mock of Reader interface.
2020-11-25 13:01:53 +02:00
type Reader struct {
ctrl *gomock.Controller
recorder *ReaderMockRecorder
}
2021-04-09 18:36:48 +03:00
// ReaderMockRecorder is the mock recorder for Reader.
2020-11-25 13:01:53 +02:00
type ReaderMockRecorder struct {
mock *Reader
}
2021-04-09 18:36:48 +03:00
// NewReader creates a new mock instance.
2020-11-25 13:01:53 +02:00
func NewReader(ctrl *gomock.Controller) *Reader {
mock := &Reader{ctrl: ctrl}
mock.recorder = &ReaderMockRecorder{mock}
return mock
}
2021-04-09 18:36:48 +03:00
// EXPECT returns an object that allows the caller to indicate expected use.
2020-11-25 13:01:53 +02:00
func (m *Reader) EXPECT() *ReaderMockRecorder {
return m.recorder
}
2021-04-09 18:36:48 +03:00
// Read mocks base method.
2020-11-25 13:01:53 +02:00
func (m *Reader) Read(arg0 []byte) (int, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Read", arg0)
ret0, _ := ret[0].(int)
ret1, _ := ret[1].(error)
return ret0, ret1
}
2021-04-09 18:36:48 +03:00
// Read indicates an expected call of Read.
2020-11-25 13:01:53 +02:00
func (mr *ReaderMockRecorder) Read(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*Reader)(nil).Read), arg0)
}
2021-04-09 18:36:48 +03:00
// Writer is a mock of Writer interface.
2020-11-25 13:01:53 +02:00
type Writer struct {
ctrl *gomock.Controller
recorder *WriterMockRecorder
}
2021-04-09 18:36:48 +03:00
// WriterMockRecorder is the mock recorder for Writer.
2020-11-25 13:01:53 +02:00
type WriterMockRecorder struct {
mock *Writer
}
2021-04-09 18:36:48 +03:00
// NewWriter creates a new mock instance.
2020-11-25 13:01:53 +02:00
func NewWriter(ctrl *gomock.Controller) *Writer {
mock := &Writer{ctrl: ctrl}
mock.recorder = &WriterMockRecorder{mock}
return mock
}
2021-04-09 18:36:48 +03:00
// EXPECT returns an object that allows the caller to indicate expected use.
2020-11-25 13:01:53 +02:00
func (m *Writer) EXPECT() *WriterMockRecorder {
return m.recorder
}
2021-04-09 18:36:48 +03:00
// Write mocks base method.
2020-11-25 13:01:53 +02:00
func (m *Writer) Write(arg0 []byte) (int, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Write", arg0)
ret0, _ := ret[0].(int)
ret1, _ := ret[1].(error)
return ret0, ret1
}
2021-04-09 18:36:48 +03:00
// Write indicates an expected call of Write.
2020-11-25 13:01:53 +02:00
func (mr *WriterMockRecorder) Write(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*Writer)(nil).Write), arg0)
}