testutil

package
v6.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package testutil is a generated GoMock package.

Index

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPostsKeeper) GetPost

func (m *MockPostsKeeper) GetPost(ctx types.Context, subspaceID, postID uint64) (types0.Post, bool)

GetPost mocks base method.

func (*MockPostsKeeper) GetSubspacePosts

func (m *MockPostsKeeper) GetSubspacePosts(ctx types.Context, subspaceID uint64) []types0.Post

GetSubspacePosts mocks base method.

func (*MockPostsKeeper) HasPost

func (m *MockPostsKeeper) HasPost(ctx types.Context, subspaceID, postID uint64) bool

HasPost 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.

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

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

EXPECT returns an object that allows the caller to indicate expected use.

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) 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

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

func (m *MockSubspacesKeeper) IterateSubspaces(ctx types.Context, fn func(types1.Subspace) bool)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL