mock

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 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) GetDDVStats added in v1.3.0

func (m *MockStorage) GetDDVStats(ctx context.Context) ([]*storage.DDVStatsItem, error)

GetDDVStats 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) GetPostBySlug added in v1.1.0

func (m *MockStorage) GetPostBySlug(ctx context.Context, slug string) (*storage.Post, error)

GetPostBySlug mocks base method

func (*MockStorage) GetPostStats added in v1.0.0

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

GetPostStats mocks base method

func (*MockStorage) GetProfileStats added in v0.0.7

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

GetProfileStats mocks base method

func (*MockStorage) InTx added in v1.0.0

func (m *MockStorage) InTx(ctx context.Context, f func(storage.Storage) error) error

InTx 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) RefreshViews added in v1.0.0

func (m *MockStorage) RefreshViews(ctx context.Context, postView, statsView bool) error

RefreshViews mocks base method

func (*MockStorage) ResetAccount added in v1.0.2

func (m *MockStorage) ResetAccount(ctx context.Context, owner string) error

ResetAccount mocks base method

func (*MockStorage) SetHeight added in v1.0.0

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

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

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

Unfollow 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) GetDDVStats added in v1.3.0

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

GetDDVStats indicates an expected call of GetDDVStats

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) GetPostBySlug added in v1.1.0

func (mr *MockStorageMockRecorder) GetPostBySlug(ctx, slug interface{}) *gomock.Call

GetPostBySlug indicates an expected call of GetPostBySlug

func (*MockStorageMockRecorder) GetPostStats added in v1.0.0

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

GetPostStats indicates an expected call of GetPostStats

func (*MockStorageMockRecorder) GetProfileStats added in v0.0.7

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

GetProfileStats indicates an expected call of GetProfileStats

func (*MockStorageMockRecorder) InTx added in v1.0.0

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

InTx indicates an expected call of InTx

func (*MockStorageMockRecorder) ListPosts

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

ListPosts indicates an expected call of ListPosts

func (*MockStorageMockRecorder) RefreshViews added in v1.0.0

func (mr *MockStorageMockRecorder) RefreshViews(ctx, postView, statsView interface{}) *gomock.Call

RefreshViews indicates an expected call of RefreshViews

func (*MockStorageMockRecorder) ResetAccount added in v1.0.2

func (mr *MockStorageMockRecorder) ResetAccount(ctx, owner interface{}) *gomock.Call

ResetAccount indicates an expected call of ResetAccount

func (*MockStorageMockRecorder) SetHeight added in v1.0.0

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

SetHeight indicates an expected call of SetHeight

func (*MockStorageMockRecorder) SetLike

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

SetLike indicates an expected call of SetLike

func (*MockStorageMockRecorder) Unfollow

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

Unfollow indicates an expected call of Unfollow

Jump to

Keyboard shortcuts

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