Skip to content
Snippets Groups Projects
Commit 2bbb4ac9 authored by Pavel Antonov's avatar Pavel Antonov :asterisk:
Browse files

Fix cycles

parent 9cbd122e
No related tags found
No related merge requests found
// Code generated by mockery v2.50.0. DO NOT EDIT.
package mocks
import (
logs "git.perx.ru/perxis/perxis-go/logs"
mock "github.com/stretchr/testify/mock"
zap "git.perx.ru/perxis/perxis-go/logs/zap"
zapcore "go.uber.org/zap/zapcore"
)
// Encoder is an autogenerated mock type for the Encoder type
type Encoder struct {
mock.Mock
}
// AddFields provides a mock function with given fields: _a0
func (_m *Encoder) AddFields(_a0 []zapcore.Field) {
_m.Called(_a0)
}
// Clone provides a mock function with no fields
func (_m *Encoder) Clone() zap.Encoder {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for Clone")
}
var r0 zap.Encoder
if rf, ok := ret.Get(0).(func() zap.Encoder); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(zap.Encoder)
}
}
return r0
}
// EncodeEntry provides a mock function with given fields: _a0, _a1
func (_m *Encoder) EncodeEntry(_a0 zapcore.Entry, _a1 []zapcore.Field) (*logs.Entry, error) {
ret := _m.Called(_a0, _a1)
if len(ret) == 0 {
panic("no return value specified for EncodeEntry")
}
var r0 *logs.Entry
var r1 error
if rf, ok := ret.Get(0).(func(zapcore.Entry, []zapcore.Field) (*logs.Entry, error)); ok {
return rf(_a0, _a1)
}
if rf, ok := ret.Get(0).(func(zapcore.Entry, []zapcore.Field) *logs.Entry); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*logs.Entry)
}
}
if rf, ok := ret.Get(1).(func(zapcore.Entry, []zapcore.Field) error); ok {
r1 = rf(_a0, _a1)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// NewEncoder creates a new instance of Encoder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewEncoder(t interface {
mock.TestingT
Cleanup(func())
}) *Encoder {
mock := &Encoder{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}
// Code generated by mockery v2.50.0. DO NOT EDIT.
package mocks
import (
logs "git.perx.ru/perxis/perxis-go/logs"
mock "github.com/stretchr/testify/mock"
time "time"
zap "git.perx.ru/perxis/perxis-go/logs/zap"
zapcore "go.uber.org/zap/zapcore"
)
// EncoderSlow is an autogenerated mock type for the EncoderSlow type
type EncoderSlow struct {
mock.Mock
}
// AddArray provides a mock function with given fields: key, marshaler
func (_m *EncoderSlow) AddArray(key string, marshaler zapcore.ArrayMarshaler) error {
ret := _m.Called(key, marshaler)
if len(ret) == 0 {
panic("no return value specified for AddArray")
}
var r0 error
if rf, ok := ret.Get(0).(func(string, zapcore.ArrayMarshaler) error); ok {
r0 = rf(key, marshaler)
} else {
r0 = ret.Error(0)
}
return r0
}
// AddBinary provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddBinary(key string, value []byte) {
_m.Called(key, value)
}
// AddBool provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddBool(key string, value bool) {
_m.Called(key, value)
}
// AddByteString provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddByteString(key string, value []byte) {
_m.Called(key, value)
}
// AddComplex128 provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddComplex128(key string, value complex128) {
_m.Called(key, value)
}
// AddComplex64 provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddComplex64(key string, value complex64) {
_m.Called(key, value)
}
// AddDuration provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddDuration(key string, value time.Duration) {
_m.Called(key, value)
}
// AddFloat32 provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddFloat32(key string, value float32) {
_m.Called(key, value)
}
// AddFloat64 provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddFloat64(key string, value float64) {
_m.Called(key, value)
}
// AddInt provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddInt(key string, value int) {
_m.Called(key, value)
}
// AddInt16 provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddInt16(key string, value int16) {
_m.Called(key, value)
}
// AddInt32 provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddInt32(key string, value int32) {
_m.Called(key, value)
}
// AddInt64 provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddInt64(key string, value int64) {
_m.Called(key, value)
}
// AddInt8 provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddInt8(key string, value int8) {
_m.Called(key, value)
}
// AddObject provides a mock function with given fields: key, marshaler
func (_m *EncoderSlow) AddObject(key string, marshaler zapcore.ObjectMarshaler) error {
ret := _m.Called(key, marshaler)
if len(ret) == 0 {
panic("no return value specified for AddObject")
}
var r0 error
if rf, ok := ret.Get(0).(func(string, zapcore.ObjectMarshaler) error); ok {
r0 = rf(key, marshaler)
} else {
r0 = ret.Error(0)
}
return r0
}
// AddReflected provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddReflected(key string, value interface{}) error {
ret := _m.Called(key, value)
if len(ret) == 0 {
panic("no return value specified for AddReflected")
}
var r0 error
if rf, ok := ret.Get(0).(func(string, interface{}) error); ok {
r0 = rf(key, value)
} else {
r0 = ret.Error(0)
}
return r0
}
// AddString provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddString(key string, value string) {
_m.Called(key, value)
}
// AddTime provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddTime(key string, value time.Time) {
_m.Called(key, value)
}
// AddUint provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddUint(key string, value uint) {
_m.Called(key, value)
}
// AddUint16 provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddUint16(key string, value uint16) {
_m.Called(key, value)
}
// AddUint32 provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddUint32(key string, value uint32) {
_m.Called(key, value)
}
// AddUint64 provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddUint64(key string, value uint64) {
_m.Called(key, value)
}
// AddUint8 provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddUint8(key string, value uint8) {
_m.Called(key, value)
}
// AddUintptr provides a mock function with given fields: key, value
func (_m *EncoderSlow) AddUintptr(key string, value uintptr) {
_m.Called(key, value)
}
// Clone provides a mock function with no fields
func (_m *EncoderSlow) Clone() zap.EncoderSlow {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for Clone")
}
var r0 zap.EncoderSlow
if rf, ok := ret.Get(0).(func() zap.EncoderSlow); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(zap.EncoderSlow)
}
}
return r0
}
// EncodeEntry provides a mock function with given fields: _a0, _a1
func (_m *EncoderSlow) EncodeEntry(_a0 zapcore.Entry, _a1 []zapcore.Field) (*logs.Entry, error) {
ret := _m.Called(_a0, _a1)
if len(ret) == 0 {
panic("no return value specified for EncodeEntry")
}
var r0 *logs.Entry
var r1 error
if rf, ok := ret.Get(0).(func(zapcore.Entry, []zapcore.Field) (*logs.Entry, error)); ok {
return rf(_a0, _a1)
}
if rf, ok := ret.Get(0).(func(zapcore.Entry, []zapcore.Field) *logs.Entry); ok {
r0 = rf(_a0, _a1)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*logs.Entry)
}
}
if rf, ok := ret.Get(1).(func(zapcore.Entry, []zapcore.Field) error); ok {
r1 = rf(_a0, _a1)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// OpenNamespace provides a mock function with given fields: key
func (_m *EncoderSlow) OpenNamespace(key string) {
_m.Called(key)
}
// NewEncoderSlow creates a new instance of EncoderSlow. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewEncoderSlow(t interface {
mock.TestingT
Cleanup(func())
}) *EncoderSlow {
mock := &EncoderSlow{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment