// Code generated by mockery; DO NOT EDIT.
// github.com/vektra/mockery
// template: testify

package buildlogger

import (
	mock "github.com/stretchr/testify/mock"
)

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

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

	return mock
}

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

type MockTrace_Expecter struct {
	mock *mock.Mock
}

func (_m *MockTrace) EXPECT() *MockTrace_Expecter {
	return &MockTrace_Expecter{mock: &_m.Mock}
}

// IsStdout provides a mock function for the type MockTrace
func (_mock *MockTrace) IsStdout() bool {
	ret := _mock.Called()

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

	var r0 bool
	if returnFunc, ok := ret.Get(0).(func() bool); ok {
		r0 = returnFunc()
	} else {
		r0 = ret.Get(0).(bool)
	}
	return r0
}

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

// IsStdout is a helper method to define mock.On call
func (_e *MockTrace_Expecter) IsStdout() *MockTrace_IsStdout_Call {
	return &MockTrace_IsStdout_Call{Call: _e.mock.On("IsStdout")}
}

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

func (_c *MockTrace_IsStdout_Call) Return(b bool) *MockTrace_IsStdout_Call {
	_c.Call.Return(b)
	return _c
}

func (_c *MockTrace_IsStdout_Call) RunAndReturn(run func() bool) *MockTrace_IsStdout_Call {
	_c.Call.Return(run)
	return _c
}

// Write provides a mock function for the type MockTrace
func (_mock *MockTrace) Write(bytes []byte) (int, error) {
	ret := _mock.Called(bytes)

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

	var r0 int
	var r1 error
	if returnFunc, ok := ret.Get(0).(func([]byte) (int, error)); ok {
		return returnFunc(bytes)
	}
	if returnFunc, ok := ret.Get(0).(func([]byte) int); ok {
		r0 = returnFunc(bytes)
	} else {
		r0 = ret.Get(0).(int)
	}
	if returnFunc, ok := ret.Get(1).(func([]byte) error); ok {
		r1 = returnFunc(bytes)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}

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

// Write is a helper method to define mock.On call
//   - bytes []byte
func (_e *MockTrace_Expecter) Write(bytes interface{}) *MockTrace_Write_Call {
	return &MockTrace_Write_Call{Call: _e.mock.On("Write", bytes)}
}

func (_c *MockTrace_Write_Call) Run(run func(bytes []byte)) *MockTrace_Write_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 []byte
		if args[0] != nil {
			arg0 = args[0].([]byte)
		}
		run(
			arg0,
		)
	})
	return _c
}

func (_c *MockTrace_Write_Call) Return(n int, err error) *MockTrace_Write_Call {
	_c.Call.Return(n, err)
	return _c
}

func (_c *MockTrace_Write_Call) RunAndReturn(run func(bytes []byte) (int, error)) *MockTrace_Write_Call {
	_c.Call.Return(run)
	return _c
}
