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

package mocks

import (
	paramstypes "github.com/cosmos/cosmos-sdk/x/params/types"
	mock "github.com/stretchr/testify/mock"

	types "github.com/cosmos/cosmos-sdk/types"
)

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

// GetParamSet provides a mock function with given fields: ctx, ps
func (_m *Subspace) GetParamSet(ctx types.Context, ps paramstypes.ParamSet) {
	_m.Called(ctx, ps)
}

// WithKeyTable provides a mock function with given fields: table
func (_m *Subspace) WithKeyTable(table paramstypes.KeyTable) paramstypes.Subspace {
	ret := _m.Called(table)

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

	var r0 paramstypes.Subspace
	if rf, ok := ret.Get(0).(func(paramstypes.KeyTable) paramstypes.Subspace); ok {
		r0 = rf(table)
	} else {
		r0 = ret.Get(0).(paramstypes.Subspace)
	}

	return r0
}

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

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

	return mock
}
