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

package buildlogger

import mock "github.com/stretchr/testify/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 with no fields
func (_m *MockTrace) IsStdout() bool {
	ret := _m.Called()

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

	var r0 bool
	if rf, ok := ret.Get(0).(func() bool); ok {
		r0 = rf()
	} 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(_a0 bool) *MockTrace_IsStdout_Call {
	_c.Call.Return(_a0)
	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 with given fields: _a0
func (_m *MockTrace) Write(_a0 []byte) (int, error) {
	ret := _m.Called(_a0)

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

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

	if rf, ok := ret.Get(1).(func([]byte) error); ok {
		r1 = rf(_a0)
	} 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
//   - _a0 []byte
func (_e *MockTrace_Expecter) Write(_a0 interface{}) *MockTrace_Write_Call {
	return &MockTrace_Write_Call{Call: _e.mock.On("Write", _a0)}
}

func (_c *MockTrace_Write_Call) Run(run func(_a0 []byte)) *MockTrace_Write_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].([]byte))
	})
	return _c
}

func (_c *MockTrace_Write_Call) Return(_a0 int, _a1 error) *MockTrace_Write_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

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

// 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
}
