mock

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStorage

type MockStorage struct {
	// contains filtered or unexported fields
}

MockStorage is a mock of Storage interface

func NewMockStorage

func NewMockStorage(ctrl *gomock.Controller) *MockStorage

NewMockStorage creates a new mock instance

func (*MockStorage) AddPDV added in v0.0.7

func (m *MockStorage) AddPDV(ctx context.Context, address string, amount int64, timestamp time.Time) error

AddPDV mocks base method

func (*MockStorage) CreatePost

func (m *MockStorage) CreatePost(ctx context.Context, p *storage.CreatePostParams) error

CreatePost mocks base method

func (*MockStorage) DeletePost

func (m *MockStorage) DeletePost(ctx context.Context, id storage.PostID, timestamp time.Time, deletedBy string) error

DeletePost mocks base method

func (*MockStorage) EXPECT

func (m *MockStorage) EXPECT() *MockStorageMockRecorder

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

func (*MockStorage) Follow

func (m *MockStorage) Follow(ctx context.Context, follower, followee string) error

Follow mocks base method

func (*MockStorage) GetDecentrStats added in v0.0.14

func (m *MockStorage) GetDecentrStats(ctx context.Context) (*storage.DecentrStats, error)

GetDecentrStats mocks base method

func (*MockStorage) GetHeight

func (m *MockStorage) GetHeight(ctx context.Context) (uint64, error)

GetHeight mocks base method

func (*MockStorage) GetLikes added in v0.0.3

func (m *MockStorage) GetLikes(ctx context.Context, likedBy string, id ...storage.PostID) (map[storage.PostID]types.LikeWeight, error)

GetLikes mocks base method

func (*MockStorage) GetPost

func (m *MockStorage) GetPost(ctx context.Context, id storage.PostID) (*storage.Post, error)

GetPost mocks base method

func (*MockStorage) GetProfileStats added in v0.0.7

func (m *MockStorage) GetProfileStats(ctx context.Context, address string) (storage.Stats, error)

GetProfileStats mocks base method

func (*MockStorage) GetProfiles

func (m *MockStorage) GetProfiles(ctx context.Context, addr ...string) ([]*storage.Profile, error)

GetProfiles mocks base method

func (*MockStorage) GetStats

func (m *MockStorage) GetStats(ctx context.Context, id ...storage.PostID) (map[storage.PostID]storage.Stats, error)

GetStats mocks base method

func (*MockStorage) ListPosts

func (m *MockStorage) ListPosts(ctx context.Context, p *storage.ListPostsParams) ([]*storage.Post, error)

ListPosts mocks base method

func (*MockStorage) SetLike

func (m *MockStorage) SetLike(ctx context.Context, id storage.PostID, weight types.LikeWeight, timestamp time.Time, likeOwner string) error

SetLike mocks base method

func (*MockStorage) SetProfile

func (m *MockStorage) SetProfile(ctx context.Context, p *storage.SetProfileParams) error

SetProfile mocks base method

func (*MockStorage) Unfollow

func (m *MockStorage) Unfollow(ctx context.Context, follower, followee string) error

Unfollow mocks base method

func (*MockStorage) WithLockedHeight

func (m *MockStorage) WithLockedHeight(ctx context.Context, height uint64, f func(storage.Storage) error) error

WithLockedHeight mocks base method

type MockStorageMockRecorder

type MockStorageMockRecorder struct {
	// contains filtered or unexported fields
}

MockStorageMockRecorder is the mock recorder for MockStorage

func (*MockStorageMockRecorder) AddPDV added in v0.0.7

func (mr *MockStorageMockRecorder) AddPDV(ctx, address, amount, timestamp interface{}) *gomock.Call

AddPDV indicates an expected call of AddPDV

func (*MockStorageMockRecorder) CreatePost

func (mr *MockStorageMockRecorder) CreatePost(ctx, p interface{}) *gomock.Call

CreatePost indicates an expected call of CreatePost

func (*MockStorageMockRecorder) DeletePost

func (mr *MockStorageMockRecorder) DeletePost(ctx, id, timestamp, deletedBy interface{}) *gomock.Call

DeletePost indicates an expected call of DeletePost

func (*MockStorageMockRecorder) Follow

func (mr *MockStorageMockRecorder) Follow(ctx, follower, followee interface{}) *gomock.Call

Follow indicates an expected call of Follow

func (*MockStorageMockRecorder) GetDecentrStats added in v0.0.14

func (mr *MockStorageMockRecorder) GetDecentrStats(ctx interface{}) *gomock.Call

GetDecentrStats indicates an expected call of GetDecentrStats

func (*MockStorageMockRecorder) GetHeight

func (mr *MockStorageMockRecorder) GetHeight(ctx interface{}) *gomock.Call

GetHeight indicates an expected call of GetHeight

func (*MockStorageMockRecorder) GetLikes added in v0.0.3

func (mr *MockStorageMockRecorder) GetLikes(ctx, likedBy interface{}, id ...interface{}) *gomock.Call

GetLikes indicates an expected call of GetLikes

func (*MockStorageMockRecorder) GetPost

func (mr *MockStorageMockRecorder) GetPost(ctx, id interface{}) *gomock.Call

GetPost indicates an expected call of GetPost

func (*MockStorageMockRecorder) GetProfileStats added in v0.0.7

func (mr *MockStorageMockRecorder) GetProfileStats(ctx, address interface{}) *gomock.Call

GetProfileStats indicates an expected call of GetProfileStats

func (*MockStorageMockRecorder) GetProfiles

func (mr *MockStorageMockRecorder) GetProfiles(ctx interface{}, addr ...interface{}) *gomock.Call

GetProfiles indicates an expected call of GetProfiles

func (*MockStorageMockRecorder) GetStats

func (mr *MockStorageMockRecorder) GetStats(ctx interface{}, id ...interface{}) *gomock.Call

GetStats indicates an expected call of GetStats

func (*MockStorageMockRecorder) ListPosts

func (mr *MockStorageMockRecorder) ListPosts(ctx, p interface{}) *gomock.Call

ListPosts indicates an expected call of ListPosts

func (*MockStorageMockRecorder) SetLike

func (mr *MockStorageMockRecorder) SetLike(ctx, id, weight, timestamp, likeOwner interface{}) *gomock.Call

SetLike indicates an expected call of SetLike

func (*MockStorageMockRecorder) SetProfile

func (mr *MockStorageMockRecorder) SetProfile(ctx, p interface{}) *gomock.Call

SetProfile indicates an expected call of SetProfile

func (*MockStorageMockRecorder) Unfollow

func (mr *MockStorageMockRecorder) Unfollow(ctx, follower, followee interface{}) *gomock.Call

Unfollow indicates an expected call of Unfollow

func (*MockStorageMockRecorder) WithLockedHeight

func (mr *MockStorageMockRecorder) WithLockedHeight(ctx, height, f interface{}) *gomock.Call

WithLockedHeight indicates an expected call of WithLockedHeight

Jump to

Keyboard shortcuts

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