/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

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

package interceptors

import (
	model "github.com/apache/plc4x/plc4go/pkg/api/model"
	mock "github.com/stretchr/testify/mock"
)

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

type MockPlcWriteRequestResult_Expecter struct {
	mock *mock.Mock
}

func (_m *MockPlcWriteRequestResult) EXPECT() *MockPlcWriteRequestResult_Expecter {
	return &MockPlcWriteRequestResult_Expecter{mock: &_m.Mock}
}

// GetErr provides a mock function with given fields:
func (_m *MockPlcWriteRequestResult) GetErr() error {
	ret := _m.Called()

	if len(ret) == 0 {
		panic("no return value specified for GetErr")
	}

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

	return r0
}

// MockPlcWriteRequestResult_GetErr_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetErr'
type MockPlcWriteRequestResult_GetErr_Call struct {
	*mock.Call
}

// GetErr is a helper method to define mock.On call
func (_e *MockPlcWriteRequestResult_Expecter) GetErr() *MockPlcWriteRequestResult_GetErr_Call {
	return &MockPlcWriteRequestResult_GetErr_Call{Call: _e.mock.On("GetErr")}
}

func (_c *MockPlcWriteRequestResult_GetErr_Call) Run(run func()) *MockPlcWriteRequestResult_GetErr_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *MockPlcWriteRequestResult_GetErr_Call) Return(_a0 error) *MockPlcWriteRequestResult_GetErr_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *MockPlcWriteRequestResult_GetErr_Call) RunAndReturn(run func() error) *MockPlcWriteRequestResult_GetErr_Call {
	_c.Call.Return(run)
	return _c
}

// GetRequest provides a mock function with given fields:
func (_m *MockPlcWriteRequestResult) GetRequest() model.PlcWriteRequest {
	ret := _m.Called()

	if len(ret) == 0 {
		panic("no return value specified for GetRequest")
	}

	var r0 model.PlcWriteRequest
	if rf, ok := ret.Get(0).(func() model.PlcWriteRequest); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(model.PlcWriteRequest)
		}
	}

	return r0
}

// MockPlcWriteRequestResult_GetRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRequest'
type MockPlcWriteRequestResult_GetRequest_Call struct {
	*mock.Call
}

// GetRequest is a helper method to define mock.On call
func (_e *MockPlcWriteRequestResult_Expecter) GetRequest() *MockPlcWriteRequestResult_GetRequest_Call {
	return &MockPlcWriteRequestResult_GetRequest_Call{Call: _e.mock.On("GetRequest")}
}

func (_c *MockPlcWriteRequestResult_GetRequest_Call) Run(run func()) *MockPlcWriteRequestResult_GetRequest_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *MockPlcWriteRequestResult_GetRequest_Call) Return(_a0 model.PlcWriteRequest) *MockPlcWriteRequestResult_GetRequest_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *MockPlcWriteRequestResult_GetRequest_Call) RunAndReturn(run func() model.PlcWriteRequest) *MockPlcWriteRequestResult_GetRequest_Call {
	_c.Call.Return(run)
	return _c
}

// GetResponse provides a mock function with given fields:
func (_m *MockPlcWriteRequestResult) GetResponse() model.PlcWriteResponse {
	ret := _m.Called()

	if len(ret) == 0 {
		panic("no return value specified for GetResponse")
	}

	var r0 model.PlcWriteResponse
	if rf, ok := ret.Get(0).(func() model.PlcWriteResponse); ok {
		r0 = rf()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(model.PlcWriteResponse)
		}
	}

	return r0
}

// MockPlcWriteRequestResult_GetResponse_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetResponse'
type MockPlcWriteRequestResult_GetResponse_Call struct {
	*mock.Call
}

// GetResponse is a helper method to define mock.On call
func (_e *MockPlcWriteRequestResult_Expecter) GetResponse() *MockPlcWriteRequestResult_GetResponse_Call {
	return &MockPlcWriteRequestResult_GetResponse_Call{Call: _e.mock.On("GetResponse")}
}

func (_c *MockPlcWriteRequestResult_GetResponse_Call) Run(run func()) *MockPlcWriteRequestResult_GetResponse_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *MockPlcWriteRequestResult_GetResponse_Call) Return(_a0 model.PlcWriteResponse) *MockPlcWriteRequestResult_GetResponse_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *MockPlcWriteRequestResult_GetResponse_Call) RunAndReturn(run func() model.PlcWriteResponse) *MockPlcWriteRequestResult_GetResponse_Call {
	_c.Call.Return(run)
	return _c
}

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

	if len(ret) == 0 {
		panic("no return value specified for String")
	}

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

	return r0
}

// MockPlcWriteRequestResult_String_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'String'
type MockPlcWriteRequestResult_String_Call struct {
	*mock.Call
}

// String is a helper method to define mock.On call
func (_e *MockPlcWriteRequestResult_Expecter) String() *MockPlcWriteRequestResult_String_Call {
	return &MockPlcWriteRequestResult_String_Call{Call: _e.mock.On("String")}
}

func (_c *MockPlcWriteRequestResult_String_Call) Run(run func()) *MockPlcWriteRequestResult_String_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *MockPlcWriteRequestResult_String_Call) Return(_a0 string) *MockPlcWriteRequestResult_String_Call {
	_c.Call.Return(_a0)
	return _c
}

func (_c *MockPlcWriteRequestResult_String_Call) RunAndReturn(run func() string) *MockPlcWriteRequestResult_String_Call {
	_c.Call.Return(run)
	return _c
}

// NewMockPlcWriteRequestResult creates a new instance of MockPlcWriteRequestResult. 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 NewMockPlcWriteRequestResult(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPlcWriteRequestResult {
	mock := &MockPlcWriteRequestResult{}
	mock.Mock.Test(t)

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

	return mock
}
