Documentation ¶
Overview ¶
Package testutil is a generated GoMock package.
Index ¶
- type MockPostsKeeper
- func (m *MockPostsKeeper) EXPECT() *MockPostsKeeperMockRecorder
- func (m *MockPostsKeeper) GetPost(ctx types.Context, subspaceID, postID uint64) (types0.Post, bool)
- func (m *MockPostsKeeper) GetSubspacePosts(ctx types.Context, subspaceID uint64) []types0.Post
- func (m *MockPostsKeeper) HasPost(ctx types.Context, subspaceID, postID uint64) bool
- func (m *MockPostsKeeper) IteratePosts(ctx types.Context, fn func(types0.Post) bool)
- type MockPostsKeeperMockRecorder
- func (mr *MockPostsKeeperMockRecorder) GetPost(ctx, subspaceID, postID interface{}) *gomock.Call
- func (mr *MockPostsKeeperMockRecorder) GetSubspacePosts(ctx, subspaceID interface{}) *gomock.Call
- func (mr *MockPostsKeeperMockRecorder) HasPost(ctx, subspaceID, postID interface{}) *gomock.Call
- func (mr *MockPostsKeeperMockRecorder) IteratePosts(ctx, fn interface{}) *gomock.Call
- type MockProfilesKeeper
- type MockProfilesKeeperMockRecorder
- type MockRelationshipsKeeper
- func (m *MockRelationshipsKeeper) EXPECT() *MockRelationshipsKeeperMockRecorder
- func (m *MockRelationshipsKeeper) HasRelationship(ctx types.Context, user, counterparty string, subspaceID uint64) bool
- func (m *MockRelationshipsKeeper) HasUserBlocked(ctx types.Context, blocker, user string, subspaceID uint64) bool
- type MockRelationshipsKeeperMockRecorder
- type MockSubspacesKeeper
- func (m *MockSubspacesKeeper) EXPECT() *MockSubspacesKeeperMockRecorder
- func (m *MockSubspacesKeeper) GetAllSubspaces(ctx types.Context) []types1.Subspace
- func (m *MockSubspacesKeeper) GetUsersWithRootPermissions(ctx types.Context, subspaceID uint64, permission types1.Permissions) []string
- func (m *MockSubspacesKeeper) HasPermission(ctx types.Context, subspaceID uint64, sectionID uint32, user string, ...) bool
- func (m *MockSubspacesKeeper) HasSubspace(ctx types.Context, subspaceID uint64) bool
- func (m *MockSubspacesKeeper) IterateSubspaces(ctx types.Context, fn func(types1.Subspace) bool)
- type MockSubspacesKeeperMockRecorder
- func (mr *MockSubspacesKeeperMockRecorder) GetAllSubspaces(ctx interface{}) *gomock.Call
- func (mr *MockSubspacesKeeperMockRecorder) GetUsersWithRootPermissions(ctx, subspaceID, permission interface{}) *gomock.Call
- func (mr *MockSubspacesKeeperMockRecorder) HasPermission(ctx, subspaceID, sectionID, user, permission interface{}) *gomock.Call
- func (mr *MockSubspacesKeeperMockRecorder) HasSubspace(ctx, subspaceID interface{}) *gomock.Call
- func (mr *MockSubspacesKeeperMockRecorder) IterateSubspaces(ctx, fn interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPostsKeeper ¶
type MockPostsKeeper struct {
// contains filtered or unexported fields
}
MockPostsKeeper is a mock of PostsKeeper interface.
func NewMockPostsKeeper ¶
func NewMockPostsKeeper(ctrl *gomock.Controller) *MockPostsKeeper
NewMockPostsKeeper creates a new mock instance.
func (*MockPostsKeeper) EXPECT ¶
func (m *MockPostsKeeper) EXPECT() *MockPostsKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPostsKeeper) GetSubspacePosts ¶
GetSubspacePosts mocks base method.
func (*MockPostsKeeper) HasPost ¶
func (m *MockPostsKeeper) HasPost(ctx types.Context, subspaceID, postID uint64) bool
HasPost mocks base method.
func (*MockPostsKeeper) IteratePosts ¶
IteratePosts mocks base method.
type MockPostsKeeperMockRecorder ¶
type MockPostsKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockPostsKeeperMockRecorder is the mock recorder for MockPostsKeeper.
func (*MockPostsKeeperMockRecorder) GetPost ¶
func (mr *MockPostsKeeperMockRecorder) GetPost(ctx, subspaceID, postID interface{}) *gomock.Call
GetPost indicates an expected call of GetPost.
func (*MockPostsKeeperMockRecorder) GetSubspacePosts ¶
func (mr *MockPostsKeeperMockRecorder) GetSubspacePosts(ctx, subspaceID interface{}) *gomock.Call
GetSubspacePosts indicates an expected call of GetSubspacePosts.
func (*MockPostsKeeperMockRecorder) HasPost ¶
func (mr *MockPostsKeeperMockRecorder) HasPost(ctx, subspaceID, postID interface{}) *gomock.Call
HasPost indicates an expected call of HasPost.
func (*MockPostsKeeperMockRecorder) IteratePosts ¶
func (mr *MockPostsKeeperMockRecorder) IteratePosts(ctx, fn interface{}) *gomock.Call
IteratePosts indicates an expected call of IteratePosts.
type MockProfilesKeeper ¶
type MockProfilesKeeper struct {
// contains filtered or unexported fields
}
MockProfilesKeeper is a mock of ProfilesKeeper interface.
func NewMockProfilesKeeper ¶
func NewMockProfilesKeeper(ctrl *gomock.Controller) *MockProfilesKeeper
NewMockProfilesKeeper creates a new mock instance.
func (*MockProfilesKeeper) EXPECT ¶
func (m *MockProfilesKeeper) EXPECT() *MockProfilesKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProfilesKeeper) HasProfile ¶
func (m *MockProfilesKeeper) HasProfile(ctx types.Context, user string) bool
HasProfile mocks base method.
type MockProfilesKeeperMockRecorder ¶
type MockProfilesKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockProfilesKeeperMockRecorder is the mock recorder for MockProfilesKeeper.
func (*MockProfilesKeeperMockRecorder) HasProfile ¶
func (mr *MockProfilesKeeperMockRecorder) HasProfile(ctx, user interface{}) *gomock.Call
HasProfile indicates an expected call of HasProfile.
type MockRelationshipsKeeper ¶
type MockRelationshipsKeeper struct {
// contains filtered or unexported fields
}
MockRelationshipsKeeper is a mock of RelationshipsKeeper interface.
func NewMockRelationshipsKeeper ¶
func NewMockRelationshipsKeeper(ctrl *gomock.Controller) *MockRelationshipsKeeper
NewMockRelationshipsKeeper creates a new mock instance.
func (*MockRelationshipsKeeper) EXPECT ¶
func (m *MockRelationshipsKeeper) EXPECT() *MockRelationshipsKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRelationshipsKeeper) HasRelationship ¶
func (m *MockRelationshipsKeeper) HasRelationship(ctx types.Context, user, counterparty string, subspaceID uint64) bool
HasRelationship mocks base method.
func (*MockRelationshipsKeeper) HasUserBlocked ¶
func (m *MockRelationshipsKeeper) HasUserBlocked(ctx types.Context, blocker, user string, subspaceID uint64) bool
HasUserBlocked mocks base method.
type MockRelationshipsKeeperMockRecorder ¶
type MockRelationshipsKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockRelationshipsKeeperMockRecorder is the mock recorder for MockRelationshipsKeeper.
func (*MockRelationshipsKeeperMockRecorder) HasRelationship ¶
func (mr *MockRelationshipsKeeperMockRecorder) HasRelationship(ctx, user, counterparty, subspaceID interface{}) *gomock.Call
HasRelationship indicates an expected call of HasRelationship.
func (*MockRelationshipsKeeperMockRecorder) HasUserBlocked ¶
func (mr *MockRelationshipsKeeperMockRecorder) HasUserBlocked(ctx, blocker, user, subspaceID interface{}) *gomock.Call
HasUserBlocked indicates an expected call of HasUserBlocked.
type MockSubspacesKeeper ¶
type MockSubspacesKeeper struct {
// contains filtered or unexported fields
}
MockSubspacesKeeper is a mock of SubspacesKeeper interface.
func NewMockSubspacesKeeper ¶
func NewMockSubspacesKeeper(ctrl *gomock.Controller) *MockSubspacesKeeper
NewMockSubspacesKeeper creates a new mock instance.
func (*MockSubspacesKeeper) EXPECT ¶
func (m *MockSubspacesKeeper) EXPECT() *MockSubspacesKeeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSubspacesKeeper) GetAllSubspaces ¶
func (m *MockSubspacesKeeper) GetAllSubspaces(ctx types.Context) []types1.Subspace
GetAllSubspaces mocks base method.
func (*MockSubspacesKeeper) GetUsersWithRootPermissions ¶
func (m *MockSubspacesKeeper) GetUsersWithRootPermissions(ctx types.Context, subspaceID uint64, permission types1.Permissions) []string
GetUsersWithRootPermissions mocks base method.
func (*MockSubspacesKeeper) HasPermission ¶
func (m *MockSubspacesKeeper) HasPermission(ctx types.Context, subspaceID uint64, sectionID uint32, user string, permission types1.Permission) bool
HasPermission mocks base method.
func (*MockSubspacesKeeper) HasSubspace ¶
func (m *MockSubspacesKeeper) HasSubspace(ctx types.Context, subspaceID uint64) bool
HasSubspace mocks base method.
func (*MockSubspacesKeeper) IterateSubspaces ¶
IterateSubspaces mocks base method.
type MockSubspacesKeeperMockRecorder ¶
type MockSubspacesKeeperMockRecorder struct {
// contains filtered or unexported fields
}
MockSubspacesKeeperMockRecorder is the mock recorder for MockSubspacesKeeper.
func (*MockSubspacesKeeperMockRecorder) GetAllSubspaces ¶
func (mr *MockSubspacesKeeperMockRecorder) GetAllSubspaces(ctx interface{}) *gomock.Call
GetAllSubspaces indicates an expected call of GetAllSubspaces.
func (*MockSubspacesKeeperMockRecorder) GetUsersWithRootPermissions ¶
func (mr *MockSubspacesKeeperMockRecorder) GetUsersWithRootPermissions(ctx, subspaceID, permission interface{}) *gomock.Call
GetUsersWithRootPermissions indicates an expected call of GetUsersWithRootPermissions.
func (*MockSubspacesKeeperMockRecorder) HasPermission ¶
func (mr *MockSubspacesKeeperMockRecorder) HasPermission(ctx, subspaceID, sectionID, user, permission interface{}) *gomock.Call
HasPermission indicates an expected call of HasPermission.
func (*MockSubspacesKeeperMockRecorder) HasSubspace ¶
func (mr *MockSubspacesKeeperMockRecorder) HasSubspace(ctx, subspaceID interface{}) *gomock.Call
HasSubspace indicates an expected call of HasSubspace.
func (*MockSubspacesKeeperMockRecorder) IterateSubspaces ¶
func (mr *MockSubspacesKeeperMockRecorder) IterateSubspaces(ctx, fn interface{}) *gomock.Call
IterateSubspaces indicates an expected call of IterateSubspaces.