// Code generated by mockery v2.20.0. DO NOT EDIT.

package mocks

import (
	context "context"

	change "code.fbi.h-da.de/danet/gosdn/controller/interfaces/change"

	gnmi "github.com/openconfig/gnmi/proto/gnmi"

	mock "github.com/stretchr/testify/mock"

	transport "code.fbi.h-da.de/danet/gosdn/controller/interfaces/transport"
)

// Transport is an autogenerated mock type for the Transport type
type Transport struct {
	mock.Mock
}

// ControlPlaneSubscribe provides a mock function with given fields: ctx, subscribeCallbackFunc, subscriptionInfo
func (_m *Transport) ControlPlaneSubscribe(ctx context.Context, subscribeCallbackFunc transport.HandleSubscribeResponse, subscriptionInfo *transport.SubscriptionInformation) error {
	ret := _m.Called(ctx, subscribeCallbackFunc, subscriptionInfo)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, transport.HandleSubscribeResponse, *transport.SubscriptionInformation) error); ok {
		r0 = rf(ctx, subscribeCallbackFunc, subscriptionInfo)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// CustomSet provides a mock function with given fields: ctx, req
func (_m *Transport) CustomSet(ctx context.Context, req *gnmi.SetRequest) (*gnmi.SetResponse, error) {
	ret := _m.Called(ctx, req)

	var r0 *gnmi.SetResponse
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, *gnmi.SetRequest) (*gnmi.SetResponse, error)); ok {
		return rf(ctx, req)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *gnmi.SetRequest) *gnmi.SetResponse); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*gnmi.SetResponse)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *gnmi.SetRequest) error); ok {
		r1 = rf(ctx, req)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// Get provides a mock function with given fields: ctx, params
func (_m *Transport) Get(ctx context.Context, params ...string) (interface{}, error) {
	_va := make([]interface{}, len(params))
	for _i := range params {
		_va[_i] = params[_i]
	}
	var _ca []interface{}
	_ca = append(_ca, ctx)
	_ca = append(_ca, _va...)
	ret := _m.Called(_ca...)

	var r0 interface{}
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, ...string) (interface{}, error)); ok {
		return rf(ctx, params...)
	}
	if rf, ok := ret.Get(0).(func(context.Context, ...string) interface{}); ok {
		r0 = rf(ctx, params...)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(interface{})
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, ...string) error); ok {
		r1 = rf(ctx, params...)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// ProcessControlPlaneSubscribeResponse provides a mock function with given fields: resp
func (_m *Transport) ProcessControlPlaneSubscribeResponse(resp *gnmi.SubscribeResponse_Update) error {
	ret := _m.Called(resp)

	var r0 error
	if rf, ok := ret.Get(0).(func(*gnmi.SubscribeResponse_Update) error); ok {
		r0 = rf(resp)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// ProcessResponse provides a mock function with given fields: resp
func (_m *Transport) ProcessResponse(resp interface{}) error {
	ret := _m.Called(resp)

	var r0 error
	if rf, ok := ret.Get(0).(func(interface{}) error); ok {
		r0 = rf(resp)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// Set provides a mock function with given fields: ctx, payload
func (_m *Transport) Set(ctx context.Context, payload change.Payload) error {
	ret := _m.Called(ctx, payload)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, change.Payload) error); ok {
		r0 = rf(ctx, payload)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// Subscribe provides a mock function with given fields: ctx, params
func (_m *Transport) Subscribe(ctx context.Context, params ...string) error {
	_va := make([]interface{}, len(params))
	for _i := range params {
		_va[_i] = params[_i]
	}
	var _ca []interface{}
	_ca = append(_ca, ctx)
	_ca = append(_ca, _va...)
	ret := _m.Called(_ca...)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, ...string) error); ok {
		r0 = rf(ctx, params...)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// Type provides a mock function with given fields:
func (_m *Transport) Type() string {
	ret := _m.Called()

	var r0 string
	if rf, ok := ret.Get(0).(func() string); ok {
		r0 = rf()
	} else {
		r0 = ret.Get(0).(string)
	}

	return r0
}

type mockConstructorTestingTNewTransport interface {
	mock.TestingT
	Cleanup(func())
}

// NewTransport creates a new instance of Transport. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewTransport(t mockConstructorTestingTNewTransport) *Transport {
	mock := &Transport{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}
