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

package mock

import (
	entity "github.com/tidbcloud/dataflow-service/app/repo/entity"
	gorm "gorm.io/gorm"

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

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

// AfterSave provides a mock function with given fields: db, value
func (_m *DataflowEventHooker) AfterSave(db *gorm.DB, value interface{}) {
	_m.Called(db, value)
}

// BeforeSave provides a mock function with given fields: db, value
func (_m *DataflowEventHooker) BeforeSave(db *gorm.DB, value interface{}) {
	_m.Called(db, value)
}

// Type provides a mock function with no fields
func (_m *DataflowEventHooker) Type() entity.DataflowEventType {
	ret := _m.Called()

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

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

	return r0
}

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

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

	return mock
}
