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

package mocks

import (
	context "context"

	github "github.com/google/go-github/v57/github"
	mock "github.com/stretchr/testify/mock"
)

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

// CreateOrgHook provides a mock function with given fields: ctx, org, hook
func (_m *OrganizationHooks) CreateOrgHook(ctx context.Context, org string, hook *github.Hook) (*github.Hook, *github.Response, error) {
	ret := _m.Called(ctx, org, hook)

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

	var r0 *github.Hook
	var r1 *github.Response
	var r2 error
	if rf, ok := ret.Get(0).(func(context.Context, string, *github.Hook) (*github.Hook, *github.Response, error)); ok {
		return rf(ctx, org, hook)
	}
	if rf, ok := ret.Get(0).(func(context.Context, string, *github.Hook) *github.Hook); ok {
		r0 = rf(ctx, org, hook)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*github.Hook)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, string, *github.Hook) *github.Response); ok {
		r1 = rf(ctx, org, hook)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(*github.Response)
		}
	}

	if rf, ok := ret.Get(2).(func(context.Context, string, *github.Hook) error); ok {
		r2 = rf(ctx, org, hook)
	} else {
		r2 = ret.Error(2)
	}

	return r0, r1, r2
}

// DeleteOrgHook provides a mock function with given fields: ctx, org, id
func (_m *OrganizationHooks) DeleteOrgHook(ctx context.Context, org string, id int64) (*github.Response, error) {
	ret := _m.Called(ctx, org, id)

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

	var r0 *github.Response
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, string, int64) (*github.Response, error)); ok {
		return rf(ctx, org, id)
	}
	if rf, ok := ret.Get(0).(func(context.Context, string, int64) *github.Response); ok {
		r0 = rf(ctx, org, id)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*github.Response)
		}
	}

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

	return r0, r1
}

// GetOrgHook provides a mock function with given fields: ctx, org, id
func (_m *OrganizationHooks) GetOrgHook(ctx context.Context, org string, id int64) (*github.Hook, *github.Response, error) {
	ret := _m.Called(ctx, org, id)

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

	var r0 *github.Hook
	var r1 *github.Response
	var r2 error
	if rf, ok := ret.Get(0).(func(context.Context, string, int64) (*github.Hook, *github.Response, error)); ok {
		return rf(ctx, org, id)
	}
	if rf, ok := ret.Get(0).(func(context.Context, string, int64) *github.Hook); ok {
		r0 = rf(ctx, org, id)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*github.Hook)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, string, int64) *github.Response); ok {
		r1 = rf(ctx, org, id)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(*github.Response)
		}
	}

	if rf, ok := ret.Get(2).(func(context.Context, string, int64) error); ok {
		r2 = rf(ctx, org, id)
	} else {
		r2 = ret.Error(2)
	}

	return r0, r1, r2
}

// ListOrgHooks provides a mock function with given fields: ctx, org, opts
func (_m *OrganizationHooks) ListOrgHooks(ctx context.Context, org string, opts *github.ListOptions) ([]*github.Hook, *github.Response, error) {
	ret := _m.Called(ctx, org, opts)

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

	var r0 []*github.Hook
	var r1 *github.Response
	var r2 error
	if rf, ok := ret.Get(0).(func(context.Context, string, *github.ListOptions) ([]*github.Hook, *github.Response, error)); ok {
		return rf(ctx, org, opts)
	}
	if rf, ok := ret.Get(0).(func(context.Context, string, *github.ListOptions) []*github.Hook); ok {
		r0 = rf(ctx, org, opts)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*github.Hook)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, string, *github.ListOptions) *github.Response); ok {
		r1 = rf(ctx, org, opts)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(*github.Response)
		}
	}

	if rf, ok := ret.Get(2).(func(context.Context, string, *github.ListOptions) error); ok {
		r2 = rf(ctx, org, opts)
	} else {
		r2 = ret.Error(2)
	}

	return r0, r1, r2
}

// PingOrgHook provides a mock function with given fields: ctx, org, id
func (_m *OrganizationHooks) PingOrgHook(ctx context.Context, org string, id int64) (*github.Response, error) {
	ret := _m.Called(ctx, org, id)

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

	var r0 *github.Response
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context, string, int64) (*github.Response, error)); ok {
		return rf(ctx, org, id)
	}
	if rf, ok := ret.Get(0).(func(context.Context, string, int64) *github.Response); ok {
		r0 = rf(ctx, org, id)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*github.Response)
		}
	}

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

	return r0, r1
}

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

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

	return mock
}
