mocks

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides enhanced mock implementations for testing

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Package mocks provides mock implementations for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockDBWithExpectations

func NewMockDBWithExpectations() *mocks.MockDB

NewMockDBWithExpectations creates a mock DB with common expectations

Types

type EnhancedMockStorage

type EnhancedMockStorage struct {
	mock.Mock
	// contains filtered or unexported fields
}

EnhancedMockStorage provides a more sophisticated mock storage with state management

func NewEnhancedMockStorage

func NewEnhancedMockStorage() *EnhancedMockStorage

NewEnhancedMockStorage creates a new enhanced mock storage instance

func (*EnhancedMockStorage) CreateActor

func (m *EnhancedMockStorage) CreateActor(_ context.Context, actor *activitypub.Actor, _ string) error

CreateActor creates an actor with state tracking Note: privateKey parameter is required by the Storage interface but not used in mock implementation

func (*EnhancedMockStorage) DeleteActivity

func (m *EnhancedMockStorage) DeleteActivity(_ context.Context, activityID string) error

DeleteActivity deletes an activity

func (*EnhancedMockStorage) DeleteActor

func (m *EnhancedMockStorage) DeleteActor(_ context.Context, username string) error

DeleteActor deletes an actor and all related data

func (*EnhancedMockStorage) FollowActor

func (m *EnhancedMockStorage) FollowActor(_ context.Context, followerUsername, targetUsername string) error

FollowActor establishes a following relationship

func (*EnhancedMockStorage) GetActivity

func (m *EnhancedMockStorage) GetActivity(_ context.Context, activityID string) (*activitypub.Activity, error)

GetActivity retrieves an activity by ID

func (*EnhancedMockStorage) GetActor

func (m *EnhancedMockStorage) GetActor(_ context.Context, username string) (*activitypub.Actor, error)

GetActor retrieves an actor with state management

func (*EnhancedMockStorage) GetOperationCount

func (m *EnhancedMockStorage) GetOperationCount(operation string) int

GetOperationCount returns how many times an operation has been called

func (*EnhancedMockStorage) GetState

func (m *EnhancedMockStorage) GetState() map[string]interface{}

GetState returns a snapshot of the current storage state for debugging

func (*EnhancedMockStorage) GetTimeline

func (m *EnhancedMockStorage) GetTimeline(_ context.Context, username string, limit int, maxID string) ([]*activitypub.Activity, error)

GetTimeline retrieves a user's timeline

func (*EnhancedMockStorage) ResetCounts

func (m *EnhancedMockStorage) ResetCounts()

ResetCounts resets all operation counts

func (*EnhancedMockStorage) SetErrorRate

func (m *EnhancedMockStorage) SetErrorRate(rate float64)

SetErrorRate sets the probability (0.0-1.0) that operations will fail

func (*EnhancedMockStorage) SetLatencySimulation

func (m *EnhancedMockStorage) SetLatencySimulation(latency time.Duration)

SetLatencySimulation adds artificial latency to operations

func (*EnhancedMockStorage) StoreActivity

func (m *EnhancedMockStorage) StoreActivity(_ context.Context, activity *activitypub.Activity) error

StoreActivity stores an activity with timeline updates

func (*EnhancedMockStorage) UnfollowActor

func (m *EnhancedMockStorage) UnfollowActor(_ context.Context, followerUsername, targetUsername string) error

UnfollowActor removes a following relationship

type LogEntry

type LogEntry struct {
	Level   string
	Message string
	Fields  map[string]interface{}
	Time    time.Time
}

LogEntry represents a captured log entry

type MockAIRepository

type MockAIRepository struct {
	mock.Mock
}

MockAIRepository is a mock implementation of interfaces.AIRepository using testify/mock for expectation-based testing.

func NewMockAIRepository

func NewMockAIRepository() *MockAIRepository

NewMockAIRepository creates a new mock AI repository

func (*MockAIRepository) AnalyzeContent

func (m *MockAIRepository) AnalyzeContent(ctx context.Context, content string, modelType string) (*ai.AIAnalysis, error)

AnalyzeContent mocks the AnalyzeContent method

func (*MockAIRepository) GetAnalysis

func (m *MockAIRepository) GetAnalysis(ctx context.Context, objectID string) (*ai.AIAnalysis, error)

GetAnalysis mocks the GetAnalysis method

func (*MockAIRepository) GetAnalysisByID

func (m *MockAIRepository) GetAnalysisByID(ctx context.Context, objectID, analysisID string) (*ai.AIAnalysis, error)

GetAnalysisByID mocks the GetAnalysisByID method

func (*MockAIRepository) GetContentClassifications

func (m *MockAIRepository) GetContentClassifications(ctx context.Context, contentID string) ([]string, error)

GetContentClassifications mocks the GetContentClassifications method

func (*MockAIRepository) GetStats

func (m *MockAIRepository) GetStats(ctx context.Context, period string) (*ai.AIStats, error)

GetStats mocks the GetStats method

func (*MockAIRepository) MonitorAIHealth

func (m *MockAIRepository) MonitorAIHealth(ctx context.Context) error

MonitorAIHealth mocks the MonitorAIHealth method

func (*MockAIRepository) ProcessMLFeedback

func (m *MockAIRepository) ProcessMLFeedback(ctx context.Context, analysisID string, feedback map[string]interface{}) error

ProcessMLFeedback mocks the ProcessMLFeedback method

func (*MockAIRepository) QueueForAnalysis

func (m *MockAIRepository) QueueForAnalysis(ctx context.Context, objectID string) error

QueueForAnalysis mocks the QueueForAnalysis method

func (*MockAIRepository) SaveAnalysis

func (m *MockAIRepository) SaveAnalysis(ctx context.Context, analysis *ai.AIAnalysis) error

SaveAnalysis mocks the SaveAnalysis method

func (*MockAIRepository) UpdateModelPerformance

func (m *MockAIRepository) UpdateModelPerformance(ctx context.Context, modelID string, performanceMetrics map[string]float64) error

UpdateModelPerformance mocks the UpdateModelPerformance method

type MockAccountRepository

type MockAccountRepository struct {
	mock.Mock
}

MockAccountRepository is a mock implementation of interfaces.AccountRepository using testify/mock for expectation-based testing.

func NewMockAccountRepository

func NewMockAccountRepository() *MockAccountRepository

NewMockAccountRepository creates a new mock account repository

func (*MockAccountRepository) AddBookmark

func (m *MockAccountRepository) AddBookmark(ctx context.Context, username, objectID string) error

AddBookmark mocks the AddBookmark method

func (*MockAccountRepository) ApproveAccount

func (m *MockAccountRepository) ApproveAccount(ctx context.Context, username string) error

ApproveAccount mocks the ApproveAccount method

func (*MockAccountRepository) CreateAccount

func (m *MockAccountRepository) CreateAccount(ctx context.Context, account *storage.Account) error

CreateAccount mocks the CreateAccount method

func (*MockAccountRepository) CreatePasswordReset

func (m *MockAccountRepository) CreatePasswordReset(ctx context.Context, reset *storage.PasswordReset) error

CreatePasswordReset mocks the CreatePasswordReset method

func (*MockAccountRepository) DeleteAccount

func (m *MockAccountRepository) DeleteAccount(ctx context.Context, username string) error

DeleteAccount mocks the DeleteAccount method

func (*MockAccountRepository) GetAccount

func (m *MockAccountRepository) GetAccount(ctx context.Context, username string) (*storage.Account, error)

GetAccount mocks the GetAccount method

func (*MockAccountRepository) GetAccountByEmail

func (m *MockAccountRepository) GetAccountByEmail(ctx context.Context, email string) (*storage.Account, error)

GetAccountByEmail mocks the GetAccountByEmail method

func (*MockAccountRepository) GetAccountByURL

func (m *MockAccountRepository) GetAccountByURL(ctx context.Context, actorURL string) (*storage.Account, error)

GetAccountByURL mocks the GetAccountByURL method

func (*MockAccountRepository) GetAccountFeatures

func (m *MockAccountRepository) GetAccountFeatures(ctx context.Context, username string) (map[string]bool, error)

GetAccountFeatures mocks the GetAccountFeatures method

func (*MockAccountRepository) GetAccountPreferences

func (m *MockAccountRepository) GetAccountPreferences(ctx context.Context, username string) (map[string]interface{}, error)

GetAccountPreferences mocks the GetAccountPreferences method

func (*MockAccountRepository) GetAccountsByUsernames

func (m *MockAccountRepository) GetAccountsByUsernames(ctx context.Context, usernames []string) ([]*storage.Account, error)

GetAccountsByUsernames mocks the GetAccountsByUsernames method

func (*MockAccountRepository) GetAccountsCount

func (m *MockAccountRepository) GetAccountsCount(ctx context.Context) (int64, error)

GetAccountsCount mocks the GetAccountsCount method

func (*MockAccountRepository) GetBookmarkedStatuses

GetBookmarkedStatuses mocks the GetBookmarkedStatuses method

func (*MockAccountRepository) GetBookmarks

func (m *MockAccountRepository) GetBookmarks(ctx context.Context, username string, limit int, cursor string) ([]*storage.Bookmark, string, error)

GetBookmarks mocks the GetBookmarks method

func (*MockAccountRepository) GetFeaturedAccounts

GetFeaturedAccounts mocks the GetFeaturedAccounts method

func (*MockAccountRepository) GetLoginHistory

GetLoginHistory mocks the GetLoginHistory method

func (*MockAccountRepository) GetPasswordReset

func (m *MockAccountRepository) GetPasswordReset(ctx context.Context, token string) (*storage.PasswordReset, error)

GetPasswordReset mocks the GetPasswordReset method

func (*MockAccountRepository) GetSuggestedAccounts

GetSuggestedAccounts mocks the GetSuggestedAccounts method

func (*MockAccountRepository) RecordLogin

func (m *MockAccountRepository) RecordLogin(ctx context.Context, attempt *storage.LoginAttempt) error

RecordLogin mocks the RecordLogin method

func (*MockAccountRepository) RemoveBookmark

func (m *MockAccountRepository) RemoveBookmark(ctx context.Context, username, objectID string) error

RemoveBookmark mocks the RemoveBookmark method

func (*MockAccountRepository) SearchAccounts

SearchAccounts mocks the SearchAccounts method

func (*MockAccountRepository) SilenceAccount

func (m *MockAccountRepository) SilenceAccount(ctx context.Context, username string, reason string) error

SilenceAccount mocks the SilenceAccount method

func (*MockAccountRepository) SuspendAccount

func (m *MockAccountRepository) SuspendAccount(ctx context.Context, username string, reason string) error

SuspendAccount mocks the SuspendAccount method

func (*MockAccountRepository) UnsilenceAccount

func (m *MockAccountRepository) UnsilenceAccount(ctx context.Context, username string) error

UnsilenceAccount mocks the UnsilenceAccount method

func (*MockAccountRepository) UnsuspendAccount

func (m *MockAccountRepository) UnsuspendAccount(ctx context.Context, username string) error

UnsuspendAccount mocks the UnsuspendAccount method

func (*MockAccountRepository) UpdateAccount

func (m *MockAccountRepository) UpdateAccount(ctx context.Context, account *storage.Account) error

UpdateAccount mocks the UpdateAccount method

func (*MockAccountRepository) UpdateAccountFeatures

func (m *MockAccountRepository) UpdateAccountFeatures(ctx context.Context, username string, features map[string]bool) error

UpdateAccountFeatures mocks the UpdateAccountFeatures method

func (*MockAccountRepository) UpdateAccountPreferences

func (m *MockAccountRepository) UpdateAccountPreferences(ctx context.Context, username string, preferences map[string]interface{}) error

UpdateAccountPreferences mocks the UpdateAccountPreferences method

func (*MockAccountRepository) UpdateLastActivity

func (m *MockAccountRepository) UpdateLastActivity(ctx context.Context, username string, activity time.Time) error

UpdateLastActivity mocks the UpdateLastActivity method

func (*MockAccountRepository) UpdatePassword

func (m *MockAccountRepository) UpdatePassword(ctx context.Context, username, newPasswordHash string) error

UpdatePassword mocks the UpdatePassword method

func (*MockAccountRepository) UsePasswordReset

func (m *MockAccountRepository) UsePasswordReset(ctx context.Context, token string) error

UsePasswordReset mocks the UsePasswordReset method

func (*MockAccountRepository) ValidateCredentials

func (m *MockAccountRepository) ValidateCredentials(ctx context.Context, username, password string) (*storage.Account, error)

ValidateCredentials mocks the ValidateCredentials method

type MockActivityRepository

type MockActivityRepository struct {
	mock.Mock
}

MockActivityRepository is a mock implementation of interfaces.ActivityRepository using testify/mock for expectation-based testing.

func NewMockActivityRepository

func NewMockActivityRepository() *MockActivityRepository

NewMockActivityRepository creates a new mock activity repository

func (*MockActivityRepository) CreateActivity

func (m *MockActivityRepository) CreateActivity(ctx context.Context, activity *activitypub.Activity) error

CreateActivity mocks the CreateActivity method

func (*MockActivityRepository) GetActivity

GetActivity mocks the GetActivity method

func (*MockActivityRepository) GetCollection

func (m *MockActivityRepository) GetCollection(ctx context.Context, username, collectionType string, limit int, cursor string) (*activitypub.OrderedCollectionPage, error)

GetCollection mocks the GetCollection method

func (*MockActivityRepository) GetHashtagActivity

func (m *MockActivityRepository) GetHashtagActivity(ctx context.Context, hashtag string, since time.Time) ([]*storage.Activity, error)

GetHashtagActivity mocks the GetHashtagActivity method

func (*MockActivityRepository) GetInboxActivities

func (m *MockActivityRepository) GetInboxActivities(ctx context.Context, username string, limit int, cursor string) ([]*activitypub.Activity, string, error)

GetInboxActivities mocks the GetInboxActivities method

func (*MockActivityRepository) GetOutboxActivities

func (m *MockActivityRepository) GetOutboxActivities(ctx context.Context, username string, limit int, cursor string) ([]*activitypub.Activity, string, error)

GetOutboxActivities mocks the GetOutboxActivities method

func (*MockActivityRepository) GetWeeklyActivity

func (m *MockActivityRepository) GetWeeklyActivity(ctx context.Context, weekTimestamp int64) (*storage.WeeklyActivity, error)

GetWeeklyActivity mocks the GetWeeklyActivity method

func (*MockActivityRepository) RecordActivity

func (m *MockActivityRepository) RecordActivity(ctx context.Context, activityType string, actorID string, timestamp time.Time) error

RecordActivity mocks the RecordActivity method

func (*MockActivityRepository) RecordFederationActivity

func (m *MockActivityRepository) RecordFederationActivity(ctx context.Context, activity *storage.FederationActivity) error

RecordFederationActivity mocks the RecordFederationActivity method

type MockActorRepository

type MockActorRepository struct {
	mock.Mock
}

MockActorRepository is a mock implementation of interfaces.ActorRepository using testify/mock for expectation-based testing.

func NewMockActorRepository

func NewMockActorRepository() *MockActorRepository

NewMockActorRepository creates a new mock actor repository

func (*MockActorRepository) CheckAlsoKnownAs

func (m *MockActorRepository) CheckAlsoKnownAs(ctx context.Context, username string, targetActorID string) (bool, error)

CheckAlsoKnownAs mocks the CheckAlsoKnownAs method

func (*MockActorRepository) CreateActor

func (m *MockActorRepository) CreateActor(ctx context.Context, actor *activitypub.Actor, privateKey string) error

CreateActor mocks the CreateActor method

func (*MockActorRepository) DeleteActor

func (m *MockActorRepository) DeleteActor(ctx context.Context, username string) error

DeleteActor mocks the DeleteActor method

func (*MockActorRepository) GetAccountSuggestions

func (m *MockActorRepository) GetAccountSuggestions(ctx context.Context, userID string, limit int) ([]*activitypub.Actor, error)

GetAccountSuggestions mocks the GetAccountSuggestions method

func (*MockActorRepository) GetActor

func (m *MockActorRepository) GetActor(ctx context.Context, username string) (*activitypub.Actor, error)

GetActor mocks the GetActor method

func (*MockActorRepository) GetActorByNumericID

func (m *MockActorRepository) GetActorByNumericID(ctx context.Context, numericID string) (*activitypub.Actor, error)

GetActorByNumericID mocks the GetActorByNumericID method

func (*MockActorRepository) GetActorByUsername

func (m *MockActorRepository) GetActorByUsername(ctx context.Context, username string) (*activitypub.Actor, error)

GetActorByUsername mocks the GetActorByUsername method

func (*MockActorRepository) GetActorMigrationInfo

func (m *MockActorRepository) GetActorMigrationInfo(ctx context.Context, username string) (*interfaces.MigrationInfo, error)

GetActorMigrationInfo mocks the GetActorMigrationInfo method

func (*MockActorRepository) GetActorPrivateKey

func (m *MockActorRepository) GetActorPrivateKey(ctx context.Context, username string) (string, error)

GetActorPrivateKey mocks the GetActorPrivateKey method

func (*MockActorRepository) GetActorWithMetadata

func (m *MockActorRepository) GetActorWithMetadata(ctx context.Context, username string) (*activitypub.Actor, *storage.ActorMetadata, error)

GetActorWithMetadata mocks the GetActorWithMetadata method

func (*MockActorRepository) GetCachedRemoteActor

func (m *MockActorRepository) GetCachedRemoteActor(ctx context.Context, handle string) (*activitypub.Actor, error)

GetCachedRemoteActor mocks the GetCachedRemoteActor method

func (*MockActorRepository) GetSearchSuggestions

func (m *MockActorRepository) GetSearchSuggestions(ctx context.Context, prefix string) ([]storage.SearchSuggestion, error)

GetSearchSuggestions mocks the GetSearchSuggestions method

func (*MockActorRepository) RemoveAccountSuggestion

func (m *MockActorRepository) RemoveAccountSuggestion(ctx context.Context, userID, targetID string) error

RemoveAccountSuggestion mocks the RemoveAccountSuggestion method

func (*MockActorRepository) SearchAccounts

func (m *MockActorRepository) SearchAccounts(ctx context.Context, query string, limit int, resolve bool, offset int) ([]*activitypub.Actor, error)

SearchAccounts mocks the SearchAccounts method

func (*MockActorRepository) SetActorFields

func (m *MockActorRepository) SetActorFields(ctx context.Context, username string, fields []storage.ActorField) error

SetActorFields mocks the SetActorFields method

func (*MockActorRepository) UpdateActor

func (m *MockActorRepository) UpdateActor(ctx context.Context, actor *activitypub.Actor) error

UpdateActor mocks the UpdateActor method

func (*MockActorRepository) UpdateActorLastStatusTime

func (m *MockActorRepository) UpdateActorLastStatusTime(ctx context.Context, username string) error

UpdateActorLastStatusTime mocks the UpdateActorLastStatusTime method

func (*MockActorRepository) UpdateAlsoKnownAs

func (m *MockActorRepository) UpdateAlsoKnownAs(ctx context.Context, username string, alsoKnownAs []string) error

UpdateAlsoKnownAs mocks the UpdateAlsoKnownAs method

func (*MockActorRepository) UpdateMovedTo

func (m *MockActorRepository) UpdateMovedTo(ctx context.Context, username string, movedTo string) error

UpdateMovedTo mocks the UpdateMovedTo method

type MockAnnouncementRepository

type MockAnnouncementRepository struct {
	mock.Mock
}

MockAnnouncementRepository is a mock implementation of interfaces.AnnouncementRepository using testify/mock for expectation-based testing.

func NewMockAnnouncementRepository

func NewMockAnnouncementRepository() *MockAnnouncementRepository

NewMockAnnouncementRepository creates a new mock announcement repository

func (*MockAnnouncementRepository) AddAnnouncementReaction

func (m *MockAnnouncementRepository) AddAnnouncementReaction(ctx context.Context, username, announcementID, emojiName string) error

AddAnnouncementReaction mocks the AddAnnouncementReaction method

func (*MockAnnouncementRepository) CreateAnnouncement

func (m *MockAnnouncementRepository) CreateAnnouncement(ctx context.Context, announcement *storage.Announcement) error

CreateAnnouncement mocks the CreateAnnouncement method

func (*MockAnnouncementRepository) DeleteAnnouncement

func (m *MockAnnouncementRepository) DeleteAnnouncement(ctx context.Context, id string) error

DeleteAnnouncement mocks the DeleteAnnouncement method

func (*MockAnnouncementRepository) DismissAnnouncement

func (m *MockAnnouncementRepository) DismissAnnouncement(ctx context.Context, username, announcementID string) error

DismissAnnouncement mocks the DismissAnnouncement method

func (*MockAnnouncementRepository) GetAnnouncement

func (m *MockAnnouncementRepository) GetAnnouncement(ctx context.Context, id string) (*storage.Announcement, error)

GetAnnouncement mocks the GetAnnouncement method

func (*MockAnnouncementRepository) GetAnnouncementReactions

func (m *MockAnnouncementRepository) GetAnnouncementReactions(ctx context.Context, announcementID string) (map[string][]string, error)

GetAnnouncementReactions mocks the GetAnnouncementReactions method

func (*MockAnnouncementRepository) GetAnnouncements

func (m *MockAnnouncementRepository) GetAnnouncements(ctx context.Context, active bool) ([]*storage.Announcement, error)

GetAnnouncements mocks the GetAnnouncements method

func (*MockAnnouncementRepository) GetAnnouncementsByAdmin

func (m *MockAnnouncementRepository) GetAnnouncementsByAdmin(ctx context.Context, adminUsername string, limit int, cursor string) ([]*storage.Announcement, string, error)

GetAnnouncementsByAdmin mocks the GetAnnouncementsByAdmin method

func (*MockAnnouncementRepository) GetAnnouncementsPaginated

func (m *MockAnnouncementRepository) GetAnnouncementsPaginated(ctx context.Context, active bool, limit int, cursor string) ([]*storage.Announcement, string, error)

GetAnnouncementsPaginated mocks the GetAnnouncementsPaginated method

func (*MockAnnouncementRepository) GetDismissedAnnouncements

func (m *MockAnnouncementRepository) GetDismissedAnnouncements(ctx context.Context, username string) ([]string, error)

GetDismissedAnnouncements mocks the GetDismissedAnnouncements method

func (*MockAnnouncementRepository) IsDismissed

func (m *MockAnnouncementRepository) IsDismissed(ctx context.Context, username, announcementID string) (bool, error)

IsDismissed mocks the IsDismissed method

func (*MockAnnouncementRepository) RemoveAnnouncementReaction

func (m *MockAnnouncementRepository) RemoveAnnouncementReaction(ctx context.Context, username, announcementID, emojiName string) error

RemoveAnnouncementReaction mocks the RemoveAnnouncementReaction method

func (*MockAnnouncementRepository) UpdateAnnouncement

func (m *MockAnnouncementRepository) UpdateAnnouncement(ctx context.Context, announcement *storage.Announcement) error

UpdateAnnouncement mocks the UpdateAnnouncement method

type MockArticleRepository

type MockArticleRepository struct {
	mock.Mock
}

MockArticleRepository is a mock implementation of interfaces.ArticleRepository using testify/mock for expectation-based testing.

func NewMockArticleRepository

func NewMockArticleRepository() *MockArticleRepository

NewMockArticleRepository creates a new mock article repository

func (*MockArticleRepository) CreateArticle

func (m *MockArticleRepository) CreateArticle(ctx context.Context, article *models.Article) error

CreateArticle mocks the CreateArticle method

func (*MockArticleRepository) DeleteArticle

func (m *MockArticleRepository) DeleteArticle(ctx context.Context, id string) error

DeleteArticle mocks the DeleteArticle method

func (*MockArticleRepository) GetArticle

func (m *MockArticleRepository) GetArticle(ctx context.Context, id string) (*models.Article, error)

GetArticle mocks the GetArticle method

func (*MockArticleRepository) GetDB

GetDB mocks the GetDB method

func (*MockArticleRepository) ListArticles

func (m *MockArticleRepository) ListArticles(ctx context.Context, limit int) ([]*models.Article, error)

ListArticles mocks the ListArticles method

func (*MockArticleRepository) ListArticlesByAuthorPaginated

func (m *MockArticleRepository) ListArticlesByAuthorPaginated(ctx context.Context, authorActorID string, limit int, cursor string) ([]*models.Article, string, error)

ListArticlesByAuthorPaginated mocks the ListArticlesByAuthorPaginated method

func (*MockArticleRepository) ListArticlesByCategoryPaginated

func (m *MockArticleRepository) ListArticlesByCategoryPaginated(ctx context.Context, categoryID string, limit int, cursor string) ([]*models.Article, string, error)

ListArticlesByCategoryPaginated mocks the ListArticlesByCategoryPaginated method

func (*MockArticleRepository) ListArticlesBySeriesPaginated

func (m *MockArticleRepository) ListArticlesBySeriesPaginated(ctx context.Context, seriesID string, limit int, cursor string) ([]*models.Article, string, error)

ListArticlesBySeriesPaginated mocks the ListArticlesBySeriesPaginated method

func (*MockArticleRepository) ListArticlesPaginated

func (m *MockArticleRepository) ListArticlesPaginated(ctx context.Context, limit int, cursor string) ([]*models.Article, string, error)

ListArticlesPaginated mocks the ListArticlesPaginated method

func (*MockArticleRepository) UpdateArticle

func (m *MockArticleRepository) UpdateArticle(ctx context.Context, article *models.Article) error

UpdateArticle mocks the UpdateArticle method

type MockAuditRepository

type MockAuditRepository struct {
	mock.Mock
}

MockAuditRepository is a mock implementation of interfaces.AuditRepository using testify/mock for expectation-based testing.

func NewMockAuditRepository

func NewMockAuditRepository() *MockAuditRepository

NewMockAuditRepository creates a new mock audit repository

func (*MockAuditRepository) CleanupOldLogs

func (m *MockAuditRepository) CleanupOldLogs(ctx context.Context, retentionDays int) error

CleanupOldLogs mocks the CleanupOldLogs method

func (*MockAuditRepository) GetAuditLogByID

func (m *MockAuditRepository) GetAuditLogByID(ctx context.Context, id string, date time.Time) (*models.AuthAuditLog, error)

GetAuditLogByID mocks the GetAuditLogByID method

func (*MockAuditRepository) GetIPAuditLogs

func (m *MockAuditRepository) GetIPAuditLogs(ctx context.Context, ipAddress string, limit int, startTime, endTime time.Time) ([]*models.AuthAuditLog, error)

GetIPAuditLogs mocks the GetIPAuditLogs method

func (*MockAuditRepository) GetRecentFailedLogins

func (m *MockAuditRepository) GetRecentFailedLogins(ctx context.Context, username string, duration time.Duration) (int, error)

GetRecentFailedLogins mocks the GetRecentFailedLogins method

func (*MockAuditRepository) GetRecentIPFailures

func (m *MockAuditRepository) GetRecentIPFailures(ctx context.Context, ipAddress string, duration time.Duration) (int, error)

GetRecentIPFailures mocks the GetRecentIPFailures method

func (*MockAuditRepository) GetSecurityEvents

func (m *MockAuditRepository) GetSecurityEvents(ctx context.Context, severity string, startTime, endTime time.Time, limit int, cursor string) ([]*models.AuthAuditLog, string, error)

GetSecurityEvents mocks the GetSecurityEvents method

func (*MockAuditRepository) GetSessionAuditLogs

func (m *MockAuditRepository) GetSessionAuditLogs(ctx context.Context, sessionID string) ([]*models.AuthAuditLog, error)

GetSessionAuditLogs mocks the GetSessionAuditLogs method

func (*MockAuditRepository) GetUserAuditLogs

func (m *MockAuditRepository) GetUserAuditLogs(ctx context.Context, username string, limit int, startTime, endTime time.Time) ([]*models.AuthAuditLog, error)

GetUserAuditLogs mocks the GetUserAuditLogs method

func (*MockAuditRepository) StoreAuditEvent

func (m *MockAuditRepository) StoreAuditEvent(ctx context.Context, eventType, severity, username, userID, ipAddress, userAgent, deviceName, sessionID, requestID string, success bool, failureReason string, metadata map[string]interface{}) error

StoreAuditEvent mocks the StoreAuditEvent method

func (*MockAuditRepository) StoreAuditLog

func (m *MockAuditRepository) StoreAuditLog(ctx context.Context, log *models.AuthAuditLog) error

StoreAuditLog mocks the StoreAuditLog method

type MockBookmarkRepository

type MockBookmarkRepository struct {
	mock.Mock
}

MockBookmarkRepository is a mock implementation of interfaces.BookmarkRepository using testify/mock for expectation-based testing.

func NewMockBookmarkRepository

func NewMockBookmarkRepository() *MockBookmarkRepository

NewMockBookmarkRepository creates a new mock bookmark repository

func (*MockBookmarkRepository) AddBookmark

func (m *MockBookmarkRepository) AddBookmark(ctx context.Context, username, objectID string) error

AddBookmark mocks the AddBookmark method

func (*MockBookmarkRepository) CascadeDeleteObjectBookmarks

func (m *MockBookmarkRepository) CascadeDeleteObjectBookmarks(ctx context.Context, objectID string) error

CascadeDeleteObjectBookmarks mocks the CascadeDeleteObjectBookmarks method

func (*MockBookmarkRepository) CascadeDeleteUserBookmarks

func (m *MockBookmarkRepository) CascadeDeleteUserBookmarks(ctx context.Context, username string) error

CascadeDeleteUserBookmarks mocks the CascadeDeleteUserBookmarks method

func (*MockBookmarkRepository) CheckBookmarksForStatuses

func (m *MockBookmarkRepository) CheckBookmarksForStatuses(ctx context.Context, username string, statusIDs []string) (map[string]bool, error)

CheckBookmarksForStatuses mocks the CheckBookmarksForStatuses method

func (*MockBookmarkRepository) CountUserBookmarks

func (m *MockBookmarkRepository) CountUserBookmarks(ctx context.Context, username string) (int64, error)

CountUserBookmarks mocks the CountUserBookmarks method

func (*MockBookmarkRepository) CreateBookmark

func (m *MockBookmarkRepository) CreateBookmark(ctx context.Context, username, objectID string) (*models.Bookmark, error)

CreateBookmark mocks the CreateBookmark method

func (*MockBookmarkRepository) DeleteBookmark

func (m *MockBookmarkRepository) DeleteBookmark(ctx context.Context, username, objectID string) error

DeleteBookmark mocks the DeleteBookmark method

func (*MockBookmarkRepository) GetBookmark

func (m *MockBookmarkRepository) GetBookmark(ctx context.Context, username, objectID string) (*models.Bookmark, error)

GetBookmark mocks the GetBookmark method

func (*MockBookmarkRepository) GetBookmarks

func (m *MockBookmarkRepository) GetBookmarks(ctx context.Context, username string, limit int, cursor string) ([]*storage.Bookmark, string, error)

GetBookmarks mocks the GetBookmarks method

func (*MockBookmarkRepository) GetUserBookmarks

func (m *MockBookmarkRepository) GetUserBookmarks(ctx context.Context, username string, limit int, cursor string) ([]*models.Bookmark, string, error)

GetUserBookmarks mocks the GetUserBookmarks method

func (*MockBookmarkRepository) IsBookmarked

func (m *MockBookmarkRepository) IsBookmarked(ctx context.Context, username, objectID string) (bool, error)

IsBookmarked mocks the IsBookmarked method

func (*MockBookmarkRepository) RemoveBookmark

func (m *MockBookmarkRepository) RemoveBookmark(ctx context.Context, username, objectID string) error

RemoveBookmark mocks the RemoveBookmark method

type MockCategoryRepository

type MockCategoryRepository struct {
	mock.Mock
}

MockCategoryRepository is a mock implementation of interfaces.CategoryRepository using testify/mock for expectation-based testing.

func NewMockCategoryRepository

func NewMockCategoryRepository() *MockCategoryRepository

NewMockCategoryRepository creates a new mock category repository

func (*MockCategoryRepository) CreateCategory

func (m *MockCategoryRepository) CreateCategory(ctx context.Context, category *models.Category) error

CreateCategory mocks the CreateCategory method

func (*MockCategoryRepository) Delete

func (m *MockCategoryRepository) Delete(ctx context.Context, pk, sk string) error

Delete mocks the Delete method

func (*MockCategoryRepository) GetCategory

func (m *MockCategoryRepository) GetCategory(ctx context.Context, id string) (*models.Category, error)

GetCategory mocks the GetCategory method

func (*MockCategoryRepository) GetDB

GetDB mocks the GetDB method

func (*MockCategoryRepository) ListCategories

func (m *MockCategoryRepository) ListCategories(ctx context.Context, parentID *string, limit int) ([]*models.Category, error)

ListCategories mocks the ListCategories method

func (*MockCategoryRepository) Update

func (m *MockCategoryRepository) Update(ctx context.Context, category *models.Category) error

Update mocks the Update method

func (*MockCategoryRepository) UpdateArticleCount

func (m *MockCategoryRepository) UpdateArticleCount(ctx context.Context, categoryID string, delta int) error

UpdateArticleCount mocks the UpdateArticleCount method

type MockCloudWatchMetricsRepository

type MockCloudWatchMetricsRepository struct {
	mock.Mock
}

MockCloudWatchMetricsRepository is a mock implementation of interfaces.CloudWatchMetricsRepository using testify/mock for expectation-based testing.

func NewMockCloudWatchMetricsRepository

func NewMockCloudWatchMetricsRepository() *MockCloudWatchMetricsRepository

NewMockCloudWatchMetricsRepository creates a new mock CloudWatch metrics repository

func (*MockCloudWatchMetricsRepository) CacheMetrics

func (m *MockCloudWatchMetricsRepository) CacheMetrics(ctx context.Context, serviceName string, metrics *interfaces.ServiceMetrics) error

CacheMetrics mocks the CacheMetrics method

func (*MockCloudWatchMetricsRepository) GetCachedMetrics

func (m *MockCloudWatchMetricsRepository) GetCachedMetrics(ctx context.Context, serviceName string) (*interfaces.ServiceMetrics, error)

GetCachedMetrics mocks the GetCachedMetrics method

func (*MockCloudWatchMetricsRepository) GetCostBreakdown

GetCostBreakdown mocks the GetCostBreakdown method

func (*MockCloudWatchMetricsRepository) GetInstanceMetrics

GetInstanceMetrics mocks the GetInstanceMetrics method

func (*MockCloudWatchMetricsRepository) GetServiceMetrics

func (m *MockCloudWatchMetricsRepository) GetServiceMetrics(ctx context.Context, serviceName string, period time.Duration) (*interfaces.ServiceMetrics, error)

GetServiceMetrics mocks the GetServiceMetrics method

type MockCommunityNoteRepository

type MockCommunityNoteRepository struct {
	mock.Mock
}

MockCommunityNoteRepository is a mock implementation of interfaces.CommunityNoteRepository using testify/mock for expectation-based testing.

func NewMockCommunityNoteRepository

func NewMockCommunityNoteRepository() *MockCommunityNoteRepository

NewMockCommunityNoteRepository creates a new mock community note repository

func (*MockCommunityNoteRepository) CreateCommunityNote

func (m *MockCommunityNoteRepository) CreateCommunityNote(ctx context.Context, note *storage.CommunityNote) error

CreateCommunityNote mocks the CreateCommunityNote method

func (*MockCommunityNoteRepository) CreateCommunityNoteVote

func (m *MockCommunityNoteRepository) CreateCommunityNoteVote(ctx context.Context, vote *storage.CommunityNoteVote) error

CreateCommunityNoteVote mocks the CreateCommunityNoteVote method

func (*MockCommunityNoteRepository) GetCommunityNote

func (m *MockCommunityNoteRepository) GetCommunityNote(ctx context.Context, noteID string) (*storage.CommunityNote, error)

GetCommunityNote mocks the GetCommunityNote method

func (*MockCommunityNoteRepository) GetCommunityNoteVotes

func (m *MockCommunityNoteRepository) GetCommunityNoteVotes(ctx context.Context, noteID string) ([]*storage.CommunityNoteVote, error)

GetCommunityNoteVotes mocks the GetCommunityNoteVotes method

func (*MockCommunityNoteRepository) GetCommunityNotesByAuthor

func (m *MockCommunityNoteRepository) GetCommunityNotesByAuthor(ctx context.Context, authorID string, limit int, cursor string) ([]*storage.CommunityNote, string, error)

GetCommunityNotesByAuthor mocks the GetCommunityNotesByAuthor method

func (*MockCommunityNoteRepository) GetUserCommunityNoteVotes

func (m *MockCommunityNoteRepository) GetUserCommunityNoteVotes(ctx context.Context, userID string, noteIDs []string) (map[string]*storage.CommunityNoteVote, error)

GetUserCommunityNoteVotes mocks the GetUserCommunityNoteVotes method

func (*MockCommunityNoteRepository) GetUserVotingHistory

func (m *MockCommunityNoteRepository) GetUserVotingHistory(ctx context.Context, userID string, limit int) ([]*storage.CommunityNoteVote, error)

GetUserVotingHistory mocks the GetUserVotingHistory method

func (*MockCommunityNoteRepository) GetVisibleCommunityNotes

func (m *MockCommunityNoteRepository) GetVisibleCommunityNotes(ctx context.Context, objectID string) ([]*storage.CommunityNote, error)

GetVisibleCommunityNotes mocks the GetVisibleCommunityNotes method

func (*MockCommunityNoteRepository) UpdateCommunityNoteAnalysis

func (m *MockCommunityNoteRepository) UpdateCommunityNoteAnalysis(ctx context.Context, noteID string, sentiment, objectivity, sourceQuality float64) error

UpdateCommunityNoteAnalysis mocks the UpdateCommunityNoteAnalysis method

func (*MockCommunityNoteRepository) UpdateCommunityNoteScore

func (m *MockCommunityNoteRepository) UpdateCommunityNoteScore(ctx context.Context, noteID string, score float64, status string) error

UpdateCommunityNoteScore mocks the UpdateCommunityNoteScore method

type MockConversationRepository

type MockConversationRepository struct {
	mock.Mock
}

MockConversationRepository is a mock implementation of interfaces.ConversationRepository using testify/mock for expectation-based testing.

func NewMockConversationRepository

func NewMockConversationRepository() *MockConversationRepository

NewMockConversationRepository creates a new mock conversation repository

func (*MockConversationRepository) AddParticipant

func (m *MockConversationRepository) AddParticipant(ctx context.Context, conversationID, participantID string) error

AddParticipant mocks the AddParticipant method

func (*MockConversationRepository) AddStatusToConversation

func (m *MockConversationRepository) AddStatusToConversation(ctx context.Context, conversationID, statusID, senderUsername string) error

AddStatusToConversation mocks the AddStatusToConversation method

func (*MockConversationRepository) CreateConversation

func (m *MockConversationRepository) CreateConversation(ctx context.Context, conversation *models.Conversation, participants []string) error

CreateConversation mocks the CreateConversation method

func (*MockConversationRepository) CreateConversationMute

func (m *MockConversationRepository) CreateConversationMute(ctx context.Context, mute *storage.ConversationMute) error

CreateConversationMute mocks the CreateConversationMute method

func (*MockConversationRepository) DeleteConversation

func (m *MockConversationRepository) DeleteConversation(ctx context.Context, id string) error

DeleteConversation mocks the DeleteConversation method

func (*MockConversationRepository) DeleteConversationMute

func (m *MockConversationRepository) DeleteConversationMute(ctx context.Context, username, conversationID string) error

DeleteConversationMute mocks the DeleteConversationMute method

func (*MockConversationRepository) GetConversation

func (m *MockConversationRepository) GetConversation(ctx context.Context, id string) (*models.Conversation, error)

GetConversation mocks the GetConversation method

func (*MockConversationRepository) GetConversationByParticipants

func (m *MockConversationRepository) GetConversationByParticipants(ctx context.Context, participants []string) (*models.Conversation, error)

GetConversationByParticipants mocks the GetConversationByParticipants method

func (*MockConversationRepository) GetConversationParticipants

func (m *MockConversationRepository) GetConversationParticipants(ctx context.Context, conversationID string) ([]string, error)

GetConversationParticipants mocks the GetConversationParticipants method

func (*MockConversationRepository) GetConversationStatuses

func (m *MockConversationRepository) GetConversationStatuses(ctx context.Context, conversationID string, limit int, cursor string) ([]*storage.ConversationStatus, string, error)

GetConversationStatuses mocks the GetConversationStatuses method

func (*MockConversationRepository) GetMutedConversations

func (m *MockConversationRepository) GetMutedConversations(ctx context.Context, username string) ([]string, error)

GetMutedConversations mocks the GetMutedConversations method

func (*MockConversationRepository) GetUnreadConversationCount

func (m *MockConversationRepository) GetUnreadConversationCount(ctx context.Context, username string) (int, error)

GetUnreadConversationCount mocks the GetUnreadConversationCount method

func (*MockConversationRepository) GetUnreadConversations

GetUnreadConversations mocks the GetUnreadConversations method

func (*MockConversationRepository) GetUnreadStatusCount

func (m *MockConversationRepository) GetUnreadStatusCount(ctx context.Context, conversationID, username string) (int, error)

GetUnreadStatusCount mocks the GetUnreadStatusCount method

func (*MockConversationRepository) GetUserConversations

GetUserConversations mocks the GetUserConversations method

func (*MockConversationRepository) IsConversationMuted

func (m *MockConversationRepository) IsConversationMuted(ctx context.Context, username, conversationID string) (bool, error)

IsConversationMuted mocks the IsConversationMuted method

func (*MockConversationRepository) LeaveConversation

func (m *MockConversationRepository) LeaveConversation(ctx context.Context, conversationID, username string) error

LeaveConversation mocks the LeaveConversation method

func (*MockConversationRepository) MarkConversationRead

func (m *MockConversationRepository) MarkConversationRead(ctx context.Context, conversationID, username string) error

MarkConversationRead mocks the MarkConversationRead method

func (*MockConversationRepository) MarkConversationUnread

func (m *MockConversationRepository) MarkConversationUnread(ctx context.Context, conversationID, userID string) error

MarkConversationUnread mocks the MarkConversationUnread method

func (*MockConversationRepository) MarkStatusRead

func (m *MockConversationRepository) MarkStatusRead(ctx context.Context, conversationID, statusID, username string) error

MarkStatusRead mocks the MarkStatusRead method

func (*MockConversationRepository) RemoveParticipant

func (m *MockConversationRepository) RemoveParticipant(ctx context.Context, conversationID, participantID string) error

RemoveParticipant mocks the RemoveParticipant method

func (*MockConversationRepository) RemoveStatusFromConversation

func (m *MockConversationRepository) RemoveStatusFromConversation(ctx context.Context, conversationID, statusID string) error

RemoveStatusFromConversation mocks the RemoveStatusFromConversation method

func (*MockConversationRepository) SearchConversations

SearchConversations mocks the SearchConversations method

func (*MockConversationRepository) UpdateConversation

func (m *MockConversationRepository) UpdateConversation(ctx context.Context, conversation *models.Conversation) error

UpdateConversation mocks the UpdateConversation method

func (*MockConversationRepository) UpdateConversationLastStatus

func (m *MockConversationRepository) UpdateConversationLastStatus(ctx context.Context, id, lastStatusID string) error

UpdateConversationLastStatus mocks the UpdateConversationLastStatus method

type MockDLQRepository

type MockDLQRepository struct {
	mock.Mock
}

MockDLQRepository is a mock implementation of interfaces.DLQRepository using testify/mock for expectation-based testing.

func NewMockDLQRepository

func NewMockDLQRepository() *MockDLQRepository

NewMockDLQRepository creates a new mock DLQ repository

func (*MockDLQRepository) AnalyzeFailurePatterns

func (m *MockDLQRepository) AnalyzeFailurePatterns(ctx context.Context, service string, days int) (map[string]*interfaces.DLQSimilarityGroup, error)

AnalyzeFailurePatterns mocks the AnalyzeFailurePatterns method

func (*MockDLQRepository) BatchUpdateDLQMessages

func (m *MockDLQRepository) BatchUpdateDLQMessages(ctx context.Context, messages []*models.DLQMessage) error

BatchUpdateDLQMessages mocks the BatchUpdateDLQMessages method

func (*MockDLQRepository) CleanupExpiredMessages

func (m *MockDLQRepository) CleanupExpiredMessages(ctx context.Context, before time.Time) (int, error)

CleanupExpiredMessages mocks the CleanupExpiredMessages method

func (*MockDLQRepository) CreateDLQMessage

func (m *MockDLQRepository) CreateDLQMessage(ctx context.Context, message *models.DLQMessage) error

CreateDLQMessage mocks the CreateDLQMessage method

func (*MockDLQRepository) DeleteDLQMessage

func (m *MockDLQRepository) DeleteDLQMessage(ctx context.Context, message *models.DLQMessage) error

DeleteDLQMessage mocks the DeleteDLQMessage method

func (*MockDLQRepository) GetDLQAnalytics

func (m *MockDLQRepository) GetDLQAnalytics(ctx context.Context, service string, timeRange interfaces.DLQTimeRange) (*interfaces.DLQAnalytics, error)

GetDLQAnalytics mocks the GetDLQAnalytics method

func (*MockDLQRepository) GetDLQMessage

func (m *MockDLQRepository) GetDLQMessage(ctx context.Context, id string) (*models.DLQMessage, error)

GetDLQMessage mocks the GetDLQMessage method

func (*MockDLQRepository) GetDLQMessagesByErrorType

func (m *MockDLQRepository) GetDLQMessagesByErrorType(ctx context.Context, errorType string, limit int, cursor string) ([]*models.DLQMessage, string, error)

GetDLQMessagesByErrorType mocks the GetDLQMessagesByErrorType method

func (*MockDLQRepository) GetDLQMessagesByService

func (m *MockDLQRepository) GetDLQMessagesByService(ctx context.Context, service string, date time.Time, limit int, cursor string) ([]*models.DLQMessage, string, error)

GetDLQMessagesByService mocks the GetDLQMessagesByService method

func (*MockDLQRepository) GetDLQMessagesByServiceDateRange

func (m *MockDLQRepository) GetDLQMessagesByServiceDateRange(ctx context.Context, service string, startDate, endDate time.Time, limit int) ([]*models.DLQMessage, error)

GetDLQMessagesByServiceDateRange mocks the GetDLQMessagesByServiceDateRange method

func (*MockDLQRepository) GetDLQMessagesByStatus

func (m *MockDLQRepository) GetDLQMessagesByStatus(ctx context.Context, service, status string, limit int, cursor string) ([]*models.DLQMessage, string, error)

GetDLQMessagesByStatus mocks the GetDLQMessagesByStatus method

func (*MockDLQRepository) GetDLQMessagesForReprocessing

func (m *MockDLQRepository) GetDLQMessagesForReprocessing(ctx context.Context, service string, status string, limit int, cursor string) ([]*models.DLQMessage, string, error)

GetDLQMessagesForReprocessing mocks the GetDLQMessagesForReprocessing method

func (*MockDLQRepository) GetDLQTrends

func (m *MockDLQRepository) GetDLQTrends(ctx context.Context, service string, days int) (*interfaces.DLQTrends, error)

GetDLQTrends mocks the GetDLQTrends method

func (*MockDLQRepository) GetRetryableMessages

func (m *MockDLQRepository) GetRetryableMessages(ctx context.Context, service string, limit int) ([]*models.DLQMessage, error)

GetRetryableMessages mocks the GetRetryableMessages method

func (*MockDLQRepository) GetSimilarMessages

func (m *MockDLQRepository) GetSimilarMessages(ctx context.Context, similarityHash string, limit int) ([]*models.DLQMessage, error)

GetSimilarMessages mocks the GetSimilarMessages method

func (*MockDLQRepository) MonitorDLQHealth

func (m *MockDLQRepository) MonitorDLQHealth(ctx context.Context, service string) (*interfaces.DLQHealthStatus, error)

MonitorDLQHealth mocks the MonitorDLQHealth method

func (*MockDLQRepository) RetryFailedMessage

func (m *MockDLQRepository) RetryFailedMessage(ctx context.Context, messageID string) error

RetryFailedMessage mocks the RetryFailedMessage method

func (*MockDLQRepository) SearchDLQMessages

func (m *MockDLQRepository) SearchDLQMessages(ctx context.Context, filter *interfaces.DLQSearchFilter) ([]*models.DLQMessage, string, error)

SearchDLQMessages mocks the SearchDLQMessages method

func (*MockDLQRepository) SendToDeadLetterQueue

func (m *MockDLQRepository) SendToDeadLetterQueue(ctx context.Context, service, messageID, messageBody, errorType, errorMessage string, isPermanent bool) error

SendToDeadLetterQueue mocks the SendToDeadLetterQueue method

func (*MockDLQRepository) UpdateDLQMessage

func (m *MockDLQRepository) UpdateDLQMessage(ctx context.Context, message *models.DLQMessage) error

UpdateDLQMessage mocks the UpdateDLQMessage method

type MockDNSCacheRepository

type MockDNSCacheRepository struct {
	mock.Mock
}

MockDNSCacheRepository is a mock implementation of interfaces.DNSCacheRepository using testify/mock for expectation-based testing.

func NewMockDNSCacheRepository

func NewMockDNSCacheRepository() *MockDNSCacheRepository

NewMockDNSCacheRepository creates a new mock DNS cache repository

func (*MockDNSCacheRepository) GetDNSCache

func (m *MockDNSCacheRepository) GetDNSCache(ctx context.Context, hostname string) (*storage.DNSCacheEntry, error)

GetDNSCache mocks the GetDNSCache method

func (*MockDNSCacheRepository) InvalidateDNSCache

func (m *MockDNSCacheRepository) InvalidateDNSCache(ctx context.Context, hostname string) error

InvalidateDNSCache mocks the InvalidateDNSCache method

func (*MockDNSCacheRepository) SetDNSCache

func (m *MockDNSCacheRepository) SetDNSCache(ctx context.Context, entry *storage.DNSCacheEntry) error

SetDNSCache mocks the SetDNSCache method

type MockDomainBlockRepository

type MockDomainBlockRepository struct {
	mock.Mock
}

MockDomainBlockRepository is a mock implementation of interfaces.DomainBlockRepository using testify/mock for expectation-based testing.

func NewMockDomainBlockRepository

func NewMockDomainBlockRepository() *MockDomainBlockRepository

NewMockDomainBlockRepository creates a new mock domain block repository

func (*MockDomainBlockRepository) AddDomainBlock

func (m *MockDomainBlockRepository) AddDomainBlock(ctx context.Context, username, domain string) error

AddDomainBlock mocks the AddDomainBlock method

func (*MockDomainBlockRepository) CreateDomainAllow

func (m *MockDomainBlockRepository) CreateDomainAllow(ctx context.Context, allow *storage.DomainAllow) error

CreateDomainAllow mocks the CreateDomainAllow method

func (*MockDomainBlockRepository) CreateDomainBlock

func (m *MockDomainBlockRepository) CreateDomainBlock(ctx context.Context, block *storage.InstanceDomainBlock) error

CreateDomainBlock mocks the CreateDomainBlock method

func (*MockDomainBlockRepository) CreateEmailDomainBlock

func (m *MockDomainBlockRepository) CreateEmailDomainBlock(ctx context.Context, block *storage.EmailDomainBlock) error

CreateEmailDomainBlock mocks the CreateEmailDomainBlock method

func (*MockDomainBlockRepository) CreateInstanceDomainBlock

func (m *MockDomainBlockRepository) CreateInstanceDomainBlock(ctx context.Context, block *storage.InstanceDomainBlock) error

CreateInstanceDomainBlock mocks the CreateInstanceDomainBlock method

func (*MockDomainBlockRepository) DeleteDomainAllow

func (m *MockDomainBlockRepository) DeleteDomainAllow(ctx context.Context, id string) error

DeleteDomainAllow mocks the DeleteDomainAllow method

func (*MockDomainBlockRepository) DeleteDomainBlock

func (m *MockDomainBlockRepository) DeleteDomainBlock(ctx context.Context, id string) error

DeleteDomainBlock mocks the DeleteDomainBlock method

func (*MockDomainBlockRepository) DeleteEmailDomainBlock

func (m *MockDomainBlockRepository) DeleteEmailDomainBlock(ctx context.Context, id string) error

DeleteEmailDomainBlock mocks the DeleteEmailDomainBlock method

func (*MockDomainBlockRepository) DeleteInstanceDomainBlock

func (m *MockDomainBlockRepository) DeleteInstanceDomainBlock(ctx context.Context, domain string) error

DeleteInstanceDomainBlock mocks the DeleteInstanceDomainBlock method

func (*MockDomainBlockRepository) GetDomainAllows

func (m *MockDomainBlockRepository) GetDomainAllows(ctx context.Context, limit int, cursor string) ([]*storage.DomainAllow, string, error)

GetDomainAllows mocks the GetDomainAllows method

func (*MockDomainBlockRepository) GetDomainBlock

GetDomainBlock mocks the GetDomainBlock method

func (*MockDomainBlockRepository) GetDomainBlocks

func (m *MockDomainBlockRepository) GetDomainBlocks(ctx context.Context, limit int, cursor string) ([]*storage.InstanceDomainBlock, string, error)

GetDomainBlocks mocks the GetDomainBlocks method

func (*MockDomainBlockRepository) GetEmailDomainBlocks

func (m *MockDomainBlockRepository) GetEmailDomainBlocks(ctx context.Context, limit int, cursor string) ([]*storage.EmailDomainBlock, string, error)

GetEmailDomainBlocks mocks the GetEmailDomainBlocks method

func (*MockDomainBlockRepository) GetInstanceDomainBlock

func (m *MockDomainBlockRepository) GetInstanceDomainBlock(ctx context.Context, domain string) (*storage.InstanceDomainBlock, error)

GetInstanceDomainBlock mocks the GetInstanceDomainBlock method

func (*MockDomainBlockRepository) GetInstanceDomainBlockByID

func (m *MockDomainBlockRepository) GetInstanceDomainBlockByID(ctx context.Context, id string) (*storage.InstanceDomainBlock, error)

GetInstanceDomainBlockByID mocks the GetInstanceDomainBlockByID method

func (*MockDomainBlockRepository) GetUserDomainBlocks

func (m *MockDomainBlockRepository) GetUserDomainBlocks(ctx context.Context, username string, limit int, cursor string) ([]string, string, error)

GetUserDomainBlocks mocks the GetUserDomainBlocks method

func (*MockDomainBlockRepository) IsBlockedDomain

func (m *MockDomainBlockRepository) IsBlockedDomain(ctx context.Context, username, domain string) (bool, error)

IsBlockedDomain mocks the IsBlockedDomain method

func (*MockDomainBlockRepository) IsDomainBlocked

IsDomainBlocked mocks the IsDomainBlocked method

func (*MockDomainBlockRepository) IsInstanceDomainBlocked

func (m *MockDomainBlockRepository) IsInstanceDomainBlocked(ctx context.Context, domain string) (bool, *storage.InstanceDomainBlock, error)

IsInstanceDomainBlocked mocks the IsInstanceDomainBlocked method

func (*MockDomainBlockRepository) ListInstanceDomainBlocks

func (m *MockDomainBlockRepository) ListInstanceDomainBlocks(ctx context.Context, limit int, cursor string) ([]*storage.InstanceDomainBlock, string, error)

ListInstanceDomainBlocks mocks the ListInstanceDomainBlocks method

func (*MockDomainBlockRepository) RemoveDomainBlock

func (m *MockDomainBlockRepository) RemoveDomainBlock(ctx context.Context, username, domain string) error

RemoveDomainBlock mocks the RemoveDomainBlock method

func (*MockDomainBlockRepository) UpdateDomainBlock

func (m *MockDomainBlockRepository) UpdateDomainBlock(ctx context.Context, id string, updates map[string]any) error

UpdateDomainBlock mocks the UpdateDomainBlock method

func (*MockDomainBlockRepository) UpdateInstanceDomainBlock

func (m *MockDomainBlockRepository) UpdateInstanceDomainBlock(ctx context.Context, domain string, updates map[string]any) error

UpdateInstanceDomainBlock mocks the UpdateInstanceDomainBlock method

type MockDraftRepository

type MockDraftRepository struct {
	mock.Mock
}

MockDraftRepository is a mock implementation of interfaces.DraftRepository using testify/mock for expectation-based testing.

func NewMockDraftRepository

func NewMockDraftRepository() *MockDraftRepository

NewMockDraftRepository creates a new mock draft repository

func (*MockDraftRepository) CreateDraft

func (m *MockDraftRepository) CreateDraft(ctx context.Context, draft *models.Draft) error

CreateDraft mocks the CreateDraft method

func (*MockDraftRepository) DeleteDraft

func (m *MockDraftRepository) DeleteDraft(ctx context.Context, authorID, draftID string) error

DeleteDraft mocks the DeleteDraft method

func (*MockDraftRepository) GetDraft

func (m *MockDraftRepository) GetDraft(ctx context.Context, authorID, draftID string) (*models.Draft, error)

GetDraft mocks the GetDraft method

func (*MockDraftRepository) ListDraftsByAuthor

func (m *MockDraftRepository) ListDraftsByAuthor(ctx context.Context, authorID string, limit int) ([]*models.Draft, error)

ListDraftsByAuthor mocks the ListDraftsByAuthor method

func (*MockDraftRepository) ListDraftsByAuthorPaginated

func (m *MockDraftRepository) ListDraftsByAuthorPaginated(ctx context.Context, authorID string, limit int, cursor string) ([]*models.Draft, string, error)

ListDraftsByAuthorPaginated mocks the ListDraftsByAuthorPaginated method

func (*MockDraftRepository) ListScheduledDraftsDuePaginated

func (m *MockDraftRepository) ListScheduledDraftsDuePaginated(ctx context.Context, dueBefore time.Time, limit int, cursor string) ([]*models.Draft, string, error)

ListScheduledDraftsDuePaginated mocks the ListScheduledDraftsDuePaginated method

func (*MockDraftRepository) UpdateDraft

func (m *MockDraftRepository) UpdateDraft(ctx context.Context, draft *models.Draft) error

UpdateDraft mocks the UpdateDraft method

type MockEmojiRepository

type MockEmojiRepository struct {
	mock.Mock
}

MockEmojiRepository is a mock implementation of interfaces.EmojiRepository using testify/mock for expectation-based testing.

func NewMockEmojiRepository

func NewMockEmojiRepository() *MockEmojiRepository

NewMockEmojiRepository creates a new mock emoji repository

func (*MockEmojiRepository) CreateCustomEmoji

func (m *MockEmojiRepository) CreateCustomEmoji(ctx context.Context, emoji *storage.CustomEmoji) error

CreateCustomEmoji mocks the CreateCustomEmoji method

func (*MockEmojiRepository) DeleteCustomEmoji

func (m *MockEmojiRepository) DeleteCustomEmoji(ctx context.Context, shortcode string) error

DeleteCustomEmoji mocks the DeleteCustomEmoji method

func (*MockEmojiRepository) GetCustomEmoji

func (m *MockEmojiRepository) GetCustomEmoji(ctx context.Context, shortcode string) (*storage.CustomEmoji, error)

GetCustomEmoji mocks the GetCustomEmoji method

func (*MockEmojiRepository) GetCustomEmojis

func (m *MockEmojiRepository) GetCustomEmojis(ctx context.Context) ([]*storage.CustomEmoji, error)

GetCustomEmojis mocks the GetCustomEmojis method

func (*MockEmojiRepository) GetCustomEmojisByCategory

func (m *MockEmojiRepository) GetCustomEmojisByCategory(ctx context.Context, category string) ([]*storage.CustomEmoji, error)

GetCustomEmojisByCategory mocks the GetCustomEmojisByCategory method

func (*MockEmojiRepository) GetPopularEmojis

func (m *MockEmojiRepository) GetPopularEmojis(ctx context.Context, domain string, limit int) ([]*storage.CustomEmoji, error)

GetPopularEmojis mocks the GetPopularEmojis method

func (*MockEmojiRepository) GetRemoteEmoji

func (m *MockEmojiRepository) GetRemoteEmoji(ctx context.Context, shortcode, domain string) (*storage.CustomEmoji, error)

GetRemoteEmoji mocks the GetRemoteEmoji method

func (*MockEmojiRepository) IncrementEmojiUsage

func (m *MockEmojiRepository) IncrementEmojiUsage(ctx context.Context, shortcode string) error

IncrementEmojiUsage mocks the IncrementEmojiUsage method

func (*MockEmojiRepository) SearchEmojis

func (m *MockEmojiRepository) SearchEmojis(ctx context.Context, query string, limit int) ([]*storage.CustomEmoji, error)

SearchEmojis mocks the SearchEmojis method

func (*MockEmojiRepository) UpdateCustomEmoji

func (m *MockEmojiRepository) UpdateCustomEmoji(ctx context.Context, emoji *storage.CustomEmoji) error

UpdateCustomEmoji mocks the UpdateCustomEmoji method

type MockExportRepository

type MockExportRepository struct {
	mock.Mock
}

MockExportRepository is a mock implementation of interfaces.ExportRepository using testify/mock for expectation-based testing.

func NewMockExportRepository

func NewMockExportRepository() *MockExportRepository

NewMockExportRepository creates a new mock export repository

func (*MockExportRepository) CreateExport

func (m *MockExportRepository) CreateExport(ctx context.Context, export *models.Export) error

CreateExport mocks the CreateExport method

func (*MockExportRepository) CreateExportCostTracking

func (m *MockExportRepository) CreateExportCostTracking(ctx context.Context, costTracking *models.ExportCostTracking) error

CreateExportCostTracking mocks the CreateExportCostTracking method

func (*MockExportRepository) GetExport

func (m *MockExportRepository) GetExport(ctx context.Context, exportID string) (*models.Export, error)

GetExport mocks the GetExport method

func (*MockExportRepository) GetExportCostSummary

func (m *MockExportRepository) GetExportCostSummary(ctx context.Context, username string, startDate, endDate time.Time) (*models.ExportCostSummary, error)

GetExportCostSummary mocks the GetExportCostSummary method

func (*MockExportRepository) GetExportCostTracking

func (m *MockExportRepository) GetExportCostTracking(ctx context.Context, exportID string) ([]*models.ExportCostTracking, error)

GetExportCostTracking mocks the GetExportCostTracking method

func (*MockExportRepository) GetExportCostsByDateRange

func (m *MockExportRepository) GetExportCostsByDateRange(ctx context.Context, startDate, endDate time.Time, limit int) ([]*models.ExportCostTracking, error)

GetExportCostsByDateRange mocks the GetExportCostsByDateRange method

func (*MockExportRepository) GetExportsForUser

func (m *MockExportRepository) GetExportsForUser(ctx context.Context, username string, limit int, cursor string) ([]*models.Export, string, error)

GetExportsForUser mocks the GetExportsForUser method

func (*MockExportRepository) GetHighCostExports

func (m *MockExportRepository) GetHighCostExports(ctx context.Context, thresholdMicroCents int64, startDate, endDate time.Time, limit int) ([]*models.ExportCostTracking, error)

GetHighCostExports mocks the GetHighCostExports method

func (*MockExportRepository) GetUserExportCosts

func (m *MockExportRepository) GetUserExportCosts(ctx context.Context, username string, startDate, endDate time.Time, limit int) ([]*models.ExportCostTracking, error)

GetUserExportCosts mocks the GetUserExportCosts method

func (*MockExportRepository) GetUserExportsByStatus

func (m *MockExportRepository) GetUserExportsByStatus(ctx context.Context, username string, statuses []string) ([]*models.Export, error)

GetUserExportsByStatus mocks the GetUserExportsByStatus method

func (*MockExportRepository) UpdateExportStatus

func (m *MockExportRepository) UpdateExportStatus(ctx context.Context, exportID, status string, completionData map[string]any, errorMsg string) error

UpdateExportStatus mocks the UpdateExportStatus method

type MockExternalService

type MockExternalService struct {
	mock.Mock
	// contains filtered or unexported fields
}

MockExternalService provides a mock for external service dependencies

func NewMockExternalService

func NewMockExternalService() *MockExternalService

NewMockExternalService creates a new mock external service

func (*MockExternalService) ClearRequestLog

func (m *MockExternalService) ClearRequestLog()

ClearRequestLog clears the request log

func (*MockExternalService) GetRequestLog

func (m *MockExternalService) GetRequestLog() []MockRequest

GetRequestLog returns all logged requests

func (*MockExternalService) LogRequest

func (m *MockExternalService) LogRequest(method, url string, body interface{}, headers map[string]string)

LogRequest logs a request to the mock service

func (*MockExternalService) SetResponse

func (m *MockExternalService) SetResponse(endpoint string, response interface{})

SetResponse sets a mock response for a specific endpoint

type MockFeaturedTagRepository

type MockFeaturedTagRepository struct {
	mock.Mock
}

MockFeaturedTagRepository is a mock implementation of interfaces.FeaturedTagRepository using testify/mock for expectation-based testing.

func NewMockFeaturedTagRepository

func NewMockFeaturedTagRepository() *MockFeaturedTagRepository

NewMockFeaturedTagRepository creates a new mock featured tag repository

func (*MockFeaturedTagRepository) CreateFeaturedTag

func (m *MockFeaturedTagRepository) CreateFeaturedTag(ctx context.Context, tag *storage.FeaturedTag) error

CreateFeaturedTag mocks the CreateFeaturedTag method

func (*MockFeaturedTagRepository) DeleteFeaturedTag

func (m *MockFeaturedTagRepository) DeleteFeaturedTag(ctx context.Context, username, name string) error

DeleteFeaturedTag mocks the DeleteFeaturedTag method

func (*MockFeaturedTagRepository) GetFeaturedTags

func (m *MockFeaturedTagRepository) GetFeaturedTags(ctx context.Context, username string) ([]*storage.FeaturedTag, error)

GetFeaturedTags mocks the GetFeaturedTags method

func (*MockFeaturedTagRepository) GetTagSuggestions

func (m *MockFeaturedTagRepository) GetTagSuggestions(ctx context.Context, username string, limit int) ([]string, error)

GetTagSuggestions mocks the GetTagSuggestions method

type MockFederationRepository

type MockFederationRepository struct {
	mock.Mock
}

MockFederationRepository is a mock implementation of interfaces.FederationRepository using testify/mock for expectation-based testing.

func NewMockFederationRepository

func NewMockFederationRepository() *MockFederationRepository

NewMockFederationRepository creates a new mock federation repository

func (*MockFederationRepository) CalculateFederationClusters

func (m *MockFederationRepository) CalculateFederationClusters(ctx context.Context) ([]*storage.InstanceCluster, error)

CalculateFederationClusters mocks the CalculateFederationClusters method

func (*MockFederationRepository) GetCostProjections

func (m *MockFederationRepository) GetCostProjections(ctx context.Context, period string) (*storage.CostProjection, error)

GetCostProjections mocks the GetCostProjections method

func (*MockFederationRepository) GetFederationCosts

func (m *MockFederationRepository) GetFederationCosts(ctx context.Context, startTime, endTime time.Time, limit int, cursor string) ([]*storage.FederationCost, string, error)

GetFederationCosts mocks the GetFederationCosts method

func (*MockFederationRepository) GetFederationEdges

func (m *MockFederationRepository) GetFederationEdges(ctx context.Context, domains []string) ([]*storage.FederationEdge, error)

GetFederationEdges mocks the GetFederationEdges method

func (*MockFederationRepository) GetFederationNodes

func (m *MockFederationRepository) GetFederationNodes(ctx context.Context, depth int) ([]*storage.FederationNode, error)

GetFederationNodes mocks the GetFederationNodes method

func (*MockFederationRepository) GetFederationNodesByHealth

func (m *MockFederationRepository) GetFederationNodesByHealth(ctx context.Context, healthStatus string, limit int) ([]*storage.FederationNode, error)

GetFederationNodesByHealth mocks the GetFederationNodesByHealth method

func (*MockFederationRepository) GetFederationStatistics

func (m *MockFederationRepository) GetFederationStatistics(ctx context.Context, startTime, endTime time.Time) (*storage.FederationStats, error)

GetFederationStatistics mocks the GetFederationStatistics method

func (*MockFederationRepository) GetInstanceHealthReport

func (m *MockFederationRepository) GetInstanceHealthReport(ctx context.Context, domain string, period time.Duration) (*storage.InstanceHealthReport, error)

GetInstanceHealthReport mocks the GetInstanceHealthReport method

func (*MockFederationRepository) GetInstanceInfo

func (m *MockFederationRepository) GetInstanceInfo(ctx context.Context, domain string) (*storage.InstanceInfo, error)

GetInstanceInfo mocks the GetInstanceInfo method

func (*MockFederationRepository) GetInstanceMetadata

func (m *MockFederationRepository) GetInstanceMetadata(ctx context.Context, domain string) (*storage.InstanceMetadata, error)

GetInstanceMetadata mocks the GetInstanceMetadata method

func (*MockFederationRepository) GetInstanceStats

func (m *MockFederationRepository) GetInstanceStats(ctx context.Context, domain string) (*storage.InstanceStats, error)

GetInstanceStats mocks the GetInstanceStats method

func (*MockFederationRepository) GetKnownInstances

func (m *MockFederationRepository) GetKnownInstances(ctx context.Context, limit int, cursor string) ([]*storage.InstanceInfo, string, error)

GetKnownInstances mocks the GetKnownInstances method

func (*MockFederationRepository) RecordFederationActivity

func (m *MockFederationRepository) RecordFederationActivity(ctx context.Context, activity *storage.FederationActivity) error

RecordFederationActivity mocks the RecordFederationActivity method

func (*MockFederationRepository) UpsertInstanceInfo

func (m *MockFederationRepository) UpsertInstanceInfo(ctx context.Context, info *storage.InstanceInfo) error

UpsertInstanceInfo mocks the UpsertInstanceInfo method

type MockFilterRepository

type MockFilterRepository struct {
	mock.Mock
}

MockFilterRepository is a mock implementation of interfaces.FilterRepository using testify/mock for expectation-based testing.

func NewMockFilterRepository

func NewMockFilterRepository() *MockFilterRepository

NewMockFilterRepository creates a new mock filter repository

func (*MockFilterRepository) AddFilterKeyword

func (m *MockFilterRepository) AddFilterKeyword(ctx context.Context, keyword *models.FilterKeyword) error

AddFilterKeyword mocks the AddFilterKeyword method

func (*MockFilterRepository) AddFilterStatus

func (m *MockFilterRepository) AddFilterStatus(ctx context.Context, filterStatus *models.FilterStatus) error

AddFilterStatus mocks the AddFilterStatus method

func (*MockFilterRepository) CheckContentFiltered

func (m *MockFilterRepository) CheckContentFiltered(ctx context.Context, username, statusID string, context []string) (bool, []*models.Filter, error)

CheckContentFiltered mocks the CheckContentFiltered method

func (*MockFilterRepository) CreateFilter

func (m *MockFilterRepository) CreateFilter(ctx context.Context, filter *models.Filter) error

CreateFilter mocks the CreateFilter method

func (*MockFilterRepository) DeleteFilter

func (m *MockFilterRepository) DeleteFilter(ctx context.Context, filterID string) error

DeleteFilter mocks the DeleteFilter method

func (*MockFilterRepository) EvaluateFilters

func (m *MockFilterRepository) EvaluateFilters(ctx context.Context, username string, content string, context []string) ([]*models.Filter, error)

EvaluateFilters mocks the EvaluateFilters method

func (*MockFilterRepository) GetActiveFilters

func (m *MockFilterRepository) GetActiveFilters(ctx context.Context, username string, context []string) ([]*models.Filter, error)

GetActiveFilters mocks the GetActiveFilters method

func (*MockFilterRepository) GetFilter

func (m *MockFilterRepository) GetFilter(ctx context.Context, filterID string) (*models.Filter, error)

GetFilter mocks the GetFilter method

func (*MockFilterRepository) GetFilterKeywords

func (m *MockFilterRepository) GetFilterKeywords(ctx context.Context, filterID string) ([]*models.FilterKeyword, error)

GetFilterKeywords mocks the GetFilterKeywords method

func (*MockFilterRepository) GetFilterStatuses

func (m *MockFilterRepository) GetFilterStatuses(ctx context.Context, filterID string) ([]*models.FilterStatus, error)

GetFilterStatuses mocks the GetFilterStatuses method

func (*MockFilterRepository) GetUserFilters

func (m *MockFilterRepository) GetUserFilters(ctx context.Context, username string) ([]*models.Filter, error)

GetUserFilters mocks the GetUserFilters method

func (*MockFilterRepository) RemoveFilterKeyword

func (m *MockFilterRepository) RemoveFilterKeyword(ctx context.Context, keywordID string) error

RemoveFilterKeyword mocks the RemoveFilterKeyword method

func (*MockFilterRepository) RemoveFilterStatus

func (m *MockFilterRepository) RemoveFilterStatus(ctx context.Context, filterStatusID string) error

RemoveFilterStatus mocks the RemoveFilterStatus method

func (*MockFilterRepository) UpdateFilter

func (m *MockFilterRepository) UpdateFilter(ctx context.Context, filter *models.Filter) error

UpdateFilter mocks the UpdateFilter method

type MockHashtagRepository

type MockHashtagRepository struct {
	mock.Mock
}

MockHashtagRepository is a mock implementation of interfaces.HashtagRepository using testify/mock for expectation-based testing.

func NewMockHashtagRepository

func NewMockHashtagRepository() *MockHashtagRepository

NewMockHashtagRepository creates a new mock hashtag repository

func (*MockHashtagRepository) FollowHashtag

func (m *MockHashtagRepository) FollowHashtag(ctx context.Context, userID, hashtag string) error

FollowHashtag mocks the FollowHashtag method

func (*MockHashtagRepository) GetHashtagActivity

func (m *MockHashtagRepository) GetHashtagActivity(ctx context.Context, hashtag string, since time.Time) ([]*storage.Activity, error)

GetHashtagActivity mocks the GetHashtagActivity method

func (*MockHashtagRepository) GetHashtagFollow

func (m *MockHashtagRepository) GetHashtagFollow(ctx context.Context, userID string, hashtag string) (*models.HashtagFollow, error)

GetHashtagFollow mocks the GetHashtagFollow method

func (*MockHashtagRepository) GetHashtagInfo

func (m *MockHashtagRepository) GetHashtagInfo(ctx context.Context, hashtag string) (*storage.Hashtag, error)

GetHashtagInfo mocks the GetHashtagInfo method

func (*MockHashtagRepository) GetHashtagMute

func (m *MockHashtagRepository) GetHashtagMute(ctx context.Context, userID string, hashtag string) (*models.HashtagMute, error)

GetHashtagMute mocks the GetHashtagMute method

func (*MockHashtagRepository) GetHashtagStats

func (m *MockHashtagRepository) GetHashtagStats(ctx context.Context, hashtag string) (any, error)

GetHashtagStats mocks the GetHashtagStats method

func (*MockHashtagRepository) GetHashtagTimelineAdvanced

func (m *MockHashtagRepository) GetHashtagTimelineAdvanced(ctx context.Context, hashtag string, maxID *string, limit int, visibility string) ([]*storage.StatusSearchResult, error)

GetHashtagTimelineAdvanced mocks the GetHashtagTimelineAdvanced method

func (*MockHashtagRepository) GetHashtagUsageHistory

func (m *MockHashtagRepository) GetHashtagUsageHistory(ctx context.Context, hashtag string, days int) ([]int64, error)

GetHashtagUsageHistory mocks the GetHashtagUsageHistory method

func (*MockHashtagRepository) GetMultiHashtagTimeline

func (m *MockHashtagRepository) GetMultiHashtagTimeline(ctx context.Context, hashtags []string, maxID *string, limit int, userID string) ([]*storage.StatusSearchResult, error)

GetMultiHashtagTimeline mocks the GetMultiHashtagTimeline method

func (*MockHashtagRepository) GetSuggestedHashtags

func (m *MockHashtagRepository) GetSuggestedHashtags(ctx context.Context, userID string, limit int) ([]*storage.HashtagSearchResult, error)

GetSuggestedHashtags mocks the GetSuggestedHashtags method

func (*MockHashtagRepository) IndexHashtag

func (m *MockHashtagRepository) IndexHashtag(ctx context.Context, hashtag string, statusID string, authorID string, visibility string) error

IndexHashtag mocks the IndexHashtag method

func (*MockHashtagRepository) IndexStatusHashtags

func (m *MockHashtagRepository) IndexStatusHashtags(ctx context.Context, statusID string, authorID string, authorHandle string, statusURL string, content string, hashtags []string, published time.Time, visibility string) error

IndexStatusHashtags mocks the IndexStatusHashtags method

func (*MockHashtagRepository) IsFollowingHashtag

func (m *MockHashtagRepository) IsFollowingHashtag(ctx context.Context, userID, hashtag string) (bool, error)

IsFollowingHashtag mocks the IsFollowingHashtag method

func (*MockHashtagRepository) RemoveStatusFromHashtagIndex

func (m *MockHashtagRepository) RemoveStatusFromHashtagIndex(ctx context.Context, statusID string) error

RemoveStatusFromHashtagIndex mocks the RemoveStatusFromHashtagIndex method

func (*MockHashtagRepository) UnfollowHashtag

func (m *MockHashtagRepository) UnfollowHashtag(ctx context.Context, userID, hashtag string) error

UnfollowHashtag mocks the UnfollowHashtag method

type MockImportRepository

type MockImportRepository struct {
	mock.Mock
}

MockImportRepository is a mock implementation of interfaces.ImportRepository using testify/mock for expectation-based testing.

func NewMockImportRepository

func NewMockImportRepository() *MockImportRepository

NewMockImportRepository creates a new mock import repository

func (*MockImportRepository) CheckBudgetLimits

func (m *MockImportRepository) CheckBudgetLimits(ctx context.Context, username string, importCostMicroCents, exportCostMicroCents int64) (*models.ImportBudget, bool, error)

CheckBudgetLimits mocks the CheckBudgetLimits method

func (*MockImportRepository) CreateImport

func (m *MockImportRepository) CreateImport(ctx context.Context, importRecord *models.Import) error

CreateImport mocks the CreateImport method

func (*MockImportRepository) CreateImportBudget

func (m *MockImportRepository) CreateImportBudget(ctx context.Context, budget *models.ImportBudget) error

CreateImportBudget mocks the CreateImportBudget method

func (*MockImportRepository) CreateImportCostTracking

func (m *MockImportRepository) CreateImportCostTracking(ctx context.Context, costTracking *models.ImportCostTracking) error

CreateImportCostTracking mocks the CreateImportCostTracking method

func (*MockImportRepository) GetHighCostImports

func (m *MockImportRepository) GetHighCostImports(ctx context.Context, thresholdMicroCents int64, startDate, endDate time.Time, limit int) ([]*models.ImportCostTracking, error)

GetHighCostImports mocks the GetHighCostImports method

func (*MockImportRepository) GetImport

func (m *MockImportRepository) GetImport(ctx context.Context, importID string) (*models.Import, error)

GetImport mocks the GetImport method

func (*MockImportRepository) GetImportBudget

func (m *MockImportRepository) GetImportBudget(ctx context.Context, username, period string) (*models.ImportBudget, error)

GetImportBudget mocks the GetImportBudget method

func (*MockImportRepository) GetImportCostSummary

func (m *MockImportRepository) GetImportCostSummary(ctx context.Context, username string, startDate, endDate time.Time) (*models.ImportCostSummary, error)

GetImportCostSummary mocks the GetImportCostSummary method

func (*MockImportRepository) GetImportCostTracking

func (m *MockImportRepository) GetImportCostTracking(ctx context.Context, importID string) ([]*models.ImportCostTracking, error)

GetImportCostTracking mocks the GetImportCostTracking method

func (*MockImportRepository) GetImportCostsByDateRange

func (m *MockImportRepository) GetImportCostsByDateRange(ctx context.Context, startDate, endDate time.Time, limit int) ([]*models.ImportCostTracking, error)

GetImportCostsByDateRange mocks the GetImportCostsByDateRange method

func (*MockImportRepository) GetImportsForUser

func (m *MockImportRepository) GetImportsForUser(ctx context.Context, username string, limit int, cursor string) ([]*models.Import, string, error)

GetImportsForUser mocks the GetImportsForUser method

func (*MockImportRepository) GetUserImportCosts

func (m *MockImportRepository) GetUserImportCosts(ctx context.Context, username string, startDate, endDate time.Time, limit int) ([]*models.ImportCostTracking, error)

GetUserImportCosts mocks the GetUserImportCosts method

func (*MockImportRepository) GetUserImportsByStatus

func (m *MockImportRepository) GetUserImportsByStatus(ctx context.Context, username string, statuses []string) ([]*models.Import, error)

GetUserImportsByStatus mocks the GetUserImportsByStatus method

func (*MockImportRepository) UpdateBudgetUsage

func (m *MockImportRepository) UpdateBudgetUsage(ctx context.Context, username, period string, importCostMicroCents, exportCostMicroCents int64) error

UpdateBudgetUsage mocks the UpdateBudgetUsage method

func (*MockImportRepository) UpdateImportBudget

func (m *MockImportRepository) UpdateImportBudget(ctx context.Context, budget *models.ImportBudget) error

UpdateImportBudget mocks the UpdateImportBudget method

func (*MockImportRepository) UpdateImportProgress

func (m *MockImportRepository) UpdateImportProgress(ctx context.Context, importID string, progress int) error

UpdateImportProgress mocks the UpdateImportProgress method

func (*MockImportRepository) UpdateImportStatus

func (m *MockImportRepository) UpdateImportStatus(ctx context.Context, importID, status string, completionData map[string]any, errorMsg string) error

UpdateImportStatus mocks the UpdateImportStatus method

type MockInstanceRepository

type MockInstanceRepository struct {
	mock.Mock
}

MockInstanceRepository is a mock implementation of interfaces.InstanceRepository using testify/mock for expectation-based testing.

func NewMockInstanceRepository

func NewMockInstanceRepository() *MockInstanceRepository

NewMockInstanceRepository creates a new mock instance repository

func (*MockInstanceRepository) EnsureAgentInstanceConfig

func (m *MockInstanceRepository) EnsureAgentInstanceConfig(ctx context.Context) (*models.AgentInstanceConfig, error)

EnsureAgentInstanceConfig mocks the EnsureAgentInstanceConfig method

func (*MockInstanceRepository) EnsureInstanceState

func (m *MockInstanceRepository) EnsureInstanceState(ctx context.Context) (*models.InstanceState, error)

EnsureInstanceState mocks the EnsureInstanceState method

func (*MockInstanceRepository) GetActiveUserCount

func (m *MockInstanceRepository) GetActiveUserCount(ctx context.Context, days int) (int64, error)

GetActiveUserCount mocks the GetActiveUserCount method

func (*MockInstanceRepository) GetAgentInstanceConfig

func (m *MockInstanceRepository) GetAgentInstanceConfig(ctx context.Context) (*models.AgentInstanceConfig, error)

GetAgentInstanceConfig mocks the GetAgentInstanceConfig method

func (*MockInstanceRepository) GetContactAccount

func (m *MockInstanceRepository) GetContactAccount(ctx context.Context) (*storage.ActorRecord, error)

GetContactAccount mocks the GetContactAccount method

func (*MockInstanceRepository) GetDailyActiveUserCount

func (m *MockInstanceRepository) GetDailyActiveUserCount(ctx context.Context) (int64, error)

GetDailyActiveUserCount mocks the GetDailyActiveUserCount method

func (*MockInstanceRepository) GetDomainStats

func (m *MockInstanceRepository) GetDomainStats(ctx context.Context, domain string) (any, error)

GetDomainStats mocks the GetDomainStats method

func (*MockInstanceRepository) GetExtendedDescription

func (m *MockInstanceRepository) GetExtendedDescription(ctx context.Context) (string, time.Time, error)

GetExtendedDescription mocks the GetExtendedDescription method

func (*MockInstanceRepository) GetInstanceRules

func (m *MockInstanceRepository) GetInstanceRules(ctx context.Context) ([]storage.InstanceRule, error)

GetInstanceRules mocks the GetInstanceRules method

func (*MockInstanceRepository) GetInstanceState

func (m *MockInstanceRepository) GetInstanceState(ctx context.Context) (*models.InstanceState, error)

GetInstanceState mocks the GetInstanceState method

func (*MockInstanceRepository) GetLocalCommentCount

func (m *MockInstanceRepository) GetLocalCommentCount(ctx context.Context) (int64, error)

GetLocalCommentCount mocks the GetLocalCommentCount method

func (*MockInstanceRepository) GetLocalPostCount

func (m *MockInstanceRepository) GetLocalPostCount(ctx context.Context) (int64, error)

GetLocalPostCount mocks the GetLocalPostCount method

func (*MockInstanceRepository) GetMetricsSummary

func (m *MockInstanceRepository) GetMetricsSummary(ctx context.Context, timeRange string) (map[string]interface{}, error)

GetMetricsSummary mocks the GetMetricsSummary method

func (*MockInstanceRepository) GetRulesByCategory

func (m *MockInstanceRepository) GetRulesByCategory(ctx context.Context, category string) ([]storage.InstanceRule, error)

GetRulesByCategory mocks the GetRulesByCategory method

func (*MockInstanceRepository) GetStorageHistory

func (m *MockInstanceRepository) GetStorageHistory(ctx context.Context, days int) ([]any, error)

GetStorageHistory mocks the GetStorageHistory method

func (*MockInstanceRepository) GetStorageUsage

func (m *MockInstanceRepository) GetStorageUsage(ctx context.Context) (any, error)

GetStorageUsage mocks the GetStorageUsage method

func (*MockInstanceRepository) GetTotalDomainCount

func (m *MockInstanceRepository) GetTotalDomainCount(ctx context.Context) (int64, error)

GetTotalDomainCount mocks the GetTotalDomainCount method

func (*MockInstanceRepository) GetTotalStatusCount

func (m *MockInstanceRepository) GetTotalStatusCount(ctx context.Context) (int64, error)

GetTotalStatusCount mocks the GetTotalStatusCount method

func (*MockInstanceRepository) GetTotalUserCount

func (m *MockInstanceRepository) GetTotalUserCount(ctx context.Context) (int64, error)

GetTotalUserCount mocks the GetTotalUserCount method

func (*MockInstanceRepository) GetUserGrowthHistory

func (m *MockInstanceRepository) GetUserGrowthHistory(ctx context.Context, days int) ([]any, error)

GetUserGrowthHistory mocks the GetUserGrowthHistory method

func (*MockInstanceRepository) GetWeeklyActivity

func (m *MockInstanceRepository) GetWeeklyActivity(ctx context.Context, weekTimestamp int64) (*storage.WeeklyActivity, error)

GetWeeklyActivity mocks the GetWeeklyActivity method

func (*MockInstanceRepository) RecordActivity

func (m *MockInstanceRepository) RecordActivity(ctx context.Context, activityType string, userID string, timestamp time.Time) error

RecordActivity mocks the RecordActivity method

func (*MockInstanceRepository) RecordDailyMetrics

func (m *MockInstanceRepository) RecordDailyMetrics(ctx context.Context, date string, metrics map[string]interface{}) error

RecordDailyMetrics mocks the RecordDailyMetrics method

func (*MockInstanceRepository) SetAgentInstanceConfig

func (m *MockInstanceRepository) SetAgentInstanceConfig(ctx context.Context, cfg *models.AgentInstanceConfig) error

SetAgentInstanceConfig mocks the SetAgentInstanceConfig method

func (*MockInstanceRepository) SetBootstrapWalletAddress

func (m *MockInstanceRepository) SetBootstrapWalletAddress(ctx context.Context, address string) error

SetBootstrapWalletAddress mocks the SetBootstrapWalletAddress method

func (*MockInstanceRepository) SetExtendedDescription

func (m *MockInstanceRepository) SetExtendedDescription(ctx context.Context, description string) error

SetExtendedDescription mocks the SetExtendedDescription method

func (*MockInstanceRepository) SetInstanceLocked

func (m *MockInstanceRepository) SetInstanceLocked(ctx context.Context, locked bool) error

SetInstanceLocked mocks the SetInstanceLocked method

func (*MockInstanceRepository) SetInstanceRules

func (m *MockInstanceRepository) SetInstanceRules(ctx context.Context, rules []storage.InstanceRule) error

SetInstanceRules mocks the SetInstanceRules method

func (*MockInstanceRepository) SetPrimaryAdminUsername

func (m *MockInstanceRepository) SetPrimaryAdminUsername(ctx context.Context, username string) error

SetPrimaryAdminUsername mocks the SetPrimaryAdminUsername method

type MockLikeRepository

type MockLikeRepository struct {
	mock.Mock
}

MockLikeRepository is a mock implementation of interfaces.LikeRepository using testify/mock for expectation-based testing.

func NewMockLikeRepository

func NewMockLikeRepository() *MockLikeRepository

NewMockLikeRepository creates a new mock like repository

func (*MockLikeRepository) CascadeDeleteLikes

func (m *MockLikeRepository) CascadeDeleteLikes(ctx context.Context, objectID string) error

CascadeDeleteLikes mocks the CascadeDeleteLikes method

func (*MockLikeRepository) CountActorLikes

func (m *MockLikeRepository) CountActorLikes(ctx context.Context, actorID string) (int64, error)

CountActorLikes mocks the CountActorLikes method

func (*MockLikeRepository) CountForObject

func (m *MockLikeRepository) CountForObject(ctx context.Context, objectID string) (int64, error)

CountForObject mocks the CountForObject method

func (*MockLikeRepository) CreateLike

func (m *MockLikeRepository) CreateLike(ctx context.Context, actor, object, statusAuthorID string) (*models.Like, error)

CreateLike mocks the CreateLike method

func (*MockLikeRepository) DeleteLike

func (m *MockLikeRepository) DeleteLike(ctx context.Context, actor, object string) error

DeleteLike mocks the DeleteLike method

func (*MockLikeRepository) GetActorLikes

func (m *MockLikeRepository) GetActorLikes(ctx context.Context, actorID string, limit int, cursor string) ([]*models.Like, string, error)

GetActorLikes mocks the GetActorLikes method

func (*MockLikeRepository) GetBoostCount

func (m *MockLikeRepository) GetBoostCount(ctx context.Context, statusID string) (int64, error)

GetBoostCount mocks the GetBoostCount method

func (*MockLikeRepository) GetForObject

func (m *MockLikeRepository) GetForObject(ctx context.Context, objectID string, limit int, cursor string) ([]*models.Like, string, error)

GetForObject mocks the GetForObject method

func (*MockLikeRepository) GetLike

func (m *MockLikeRepository) GetLike(ctx context.Context, actor, object string) (*models.Like, error)

GetLike mocks the GetLike method

func (*MockLikeRepository) GetLikeCount

func (m *MockLikeRepository) GetLikeCount(ctx context.Context, statusID string) (int64, error)

GetLikeCount mocks the GetLikeCount method

func (*MockLikeRepository) GetLikedObjects

func (m *MockLikeRepository) GetLikedObjects(ctx context.Context, actorID string, limit int, cursor string) ([]*models.Like, string, error)

GetLikedObjects mocks the GetLikedObjects method

func (*MockLikeRepository) GetObjectLikes

func (m *MockLikeRepository) GetObjectLikes(ctx context.Context, objectID string, limit int, cursor string) ([]*models.Like, string, error)

GetObjectLikes mocks the GetObjectLikes method

func (*MockLikeRepository) GetTombstone

func (m *MockLikeRepository) GetTombstone(ctx context.Context, objectID string) (*storage.Tombstone, error)

GetTombstone mocks the GetTombstone method

func (*MockLikeRepository) HasLiked

func (m *MockLikeRepository) HasLiked(ctx context.Context, actor, object string) (bool, error)

HasLiked mocks the HasLiked method

func (*MockLikeRepository) HasReblogged

func (m *MockLikeRepository) HasReblogged(ctx context.Context, actorID, statusID string) (bool, error)

HasReblogged mocks the HasReblogged method

func (*MockLikeRepository) IncrementReblogCount

func (m *MockLikeRepository) IncrementReblogCount(ctx context.Context, objectID string) error

IncrementReblogCount mocks the IncrementReblogCount method

func (*MockLikeRepository) TombstoneObject

func (m *MockLikeRepository) TombstoneObject(ctx context.Context, objectID string, deletedBy string) error

TombstoneObject mocks the TombstoneObject method

type MockListRepository

type MockListRepository struct {
	mock.Mock
}

MockListRepository is a mock implementation of interfaces.ListRepository using testify/mock for expectation-based testing.

func NewMockListRepository

func NewMockListRepository() *MockListRepository

NewMockListRepository creates a new mock list repository

func (*MockListRepository) AddAccountsToList

func (m *MockListRepository) AddAccountsToList(ctx context.Context, listID string, accountIDs []string) error

AddAccountsToList mocks the AddAccountsToList method

func (*MockListRepository) AddListMember

func (m *MockListRepository) AddListMember(ctx context.Context, listID, memberUsername string) error

AddListMember mocks the AddListMember method

func (*MockListRepository) CountListMembers

func (m *MockListRepository) CountListMembers(ctx context.Context, listID string) (int, error)

CountListMembers mocks the CountListMembers method

func (*MockListRepository) CountUserLists

func (m *MockListRepository) CountUserLists(ctx context.Context, username string) (int, error)

CountUserLists mocks the CountUserLists method

func (*MockListRepository) CreateList

func (m *MockListRepository) CreateList(ctx context.Context, list *models.List) error

CreateList mocks the CreateList method

func (*MockListRepository) DeleteList

func (m *MockListRepository) DeleteList(ctx context.Context, listID string) error

DeleteList mocks the DeleteList method

func (*MockListRepository) GetAccountLists

func (m *MockListRepository) GetAccountLists(ctx context.Context, accountID string) ([]*storage.List, error)

GetAccountLists mocks the GetAccountLists method

func (*MockListRepository) GetAccountListsForUser

func (m *MockListRepository) GetAccountListsForUser(ctx context.Context, accountID, username string) ([]*storage.List, error)

GetAccountListsForUser mocks the GetAccountListsForUser method

func (*MockListRepository) GetAccountListsPaginated

func (m *MockListRepository) GetAccountListsPaginated(ctx context.Context, accountID string, limit int, cursor string) ([]*storage.List, string, error)

GetAccountListsPaginated mocks the GetAccountListsPaginated method

func (*MockListRepository) GetExclusiveLists

func (m *MockListRepository) GetExclusiveLists(ctx context.Context, username string) ([]*storage.List, error)

GetExclusiveLists mocks the GetExclusiveLists method

func (*MockListRepository) GetList

func (m *MockListRepository) GetList(ctx context.Context, listID string) (*models.List, error)

GetList mocks the GetList method

func (*MockListRepository) GetListAccounts

func (m *MockListRepository) GetListAccounts(ctx context.Context, listID string) ([]string, error)

GetListAccounts mocks the GetListAccounts method

func (*MockListRepository) GetListMembers

GetListMembers mocks the GetListMembers method

func (*MockListRepository) GetListStatuses

GetListStatuses mocks the GetListStatuses method

func (*MockListRepository) GetListTimeline

GetListTimeline mocks the GetListTimeline method

func (*MockListRepository) GetListsByMember

func (m *MockListRepository) GetListsByMember(ctx context.Context, memberUsername string, opts interfaces.PaginationOptions) (*interfaces.PaginatedResult[*models.List], error)

GetListsByMember mocks the GetListsByMember method

func (*MockListRepository) GetListsContainingAccount

func (m *MockListRepository) GetListsContainingAccount(ctx context.Context, accountID, username string) ([]*storage.List, error)

GetListsContainingAccount mocks the GetListsContainingAccount method

func (*MockListRepository) GetListsForUser

func (m *MockListRepository) GetListsForUser(ctx context.Context, username string) ([]*storage.List, error)

GetListsForUser mocks the GetListsForUser method

func (*MockListRepository) GetListsForUserPaginated

func (m *MockListRepository) GetListsForUserPaginated(ctx context.Context, username string, limit int, cursor string) ([]*storage.List, string, error)

GetListsForUserPaginated mocks the GetListsForUserPaginated method

func (*MockListRepository) GetUserLists

GetUserLists mocks the GetUserLists method

func (*MockListRepository) IsListMember

func (m *MockListRepository) IsListMember(ctx context.Context, listID, memberUsername string) (bool, error)

IsListMember mocks the IsListMember method

func (*MockListRepository) RemoveAccountFromAllLists

func (m *MockListRepository) RemoveAccountFromAllLists(ctx context.Context, accountID string) error

RemoveAccountFromAllLists mocks the RemoveAccountFromAllLists method

func (*MockListRepository) RemoveAccountsFromList

func (m *MockListRepository) RemoveAccountsFromList(ctx context.Context, listID string, accountIDs []string) error

RemoveAccountsFromList mocks the RemoveAccountsFromList method

func (*MockListRepository) RemoveListMember

func (m *MockListRepository) RemoveListMember(ctx context.Context, listID, memberUsername string) error

RemoveListMember mocks the RemoveListMember method

func (*MockListRepository) UpdateList

func (m *MockListRepository) UpdateList(ctx context.Context, list *models.List) error

UpdateList mocks the UpdateList method

type MockMarkerRepository

type MockMarkerRepository struct {
	mock.Mock
}

MockMarkerRepository is a mock implementation of interfaces.MarkerRepository using testify/mock for expectation-based testing.

func NewMockMarkerRepository

func NewMockMarkerRepository() *MockMarkerRepository

NewMockMarkerRepository creates a new mock marker repository

func (*MockMarkerRepository) GetMarkers

func (m *MockMarkerRepository) GetMarkers(ctx context.Context, username string, timelines []string) (map[string]*storage.Marker, error)

GetMarkers mocks the GetMarkers method

func (*MockMarkerRepository) SaveMarker

func (m *MockMarkerRepository) SaveMarker(ctx context.Context, username, timeline string, lastReadID string, version int) error

SaveMarker mocks the SaveMarker method

type MockMediaAnalyticsRepository

type MockMediaAnalyticsRepository struct {
	mock.Mock
}

MockMediaAnalyticsRepository is a mock implementation of interfaces.MediaAnalyticsRepository using testify/mock for expectation-based testing.

func NewMockMediaAnalyticsRepository

func NewMockMediaAnalyticsRepository() *MockMediaAnalyticsRepository

NewMockMediaAnalyticsRepository creates a new mock media analytics repository

func (*MockMediaAnalyticsRepository) CalculatePopularityMetrics

func (m *MockMediaAnalyticsRepository) CalculatePopularityMetrics(ctx context.Context, mediaID string, days int) (map[string]interface{}, error)

CalculatePopularityMetrics mocks the CalculatePopularityMetrics method

func (*MockMediaAnalyticsRepository) CleanupOldAnalytics

func (m *MockMediaAnalyticsRepository) CleanupOldAnalytics(ctx context.Context, olderThan time.Duration) error

CleanupOldAnalytics mocks the CleanupOldAnalytics method

func (*MockMediaAnalyticsRepository) GenerateAnalyticsReport

func (m *MockMediaAnalyticsRepository) GenerateAnalyticsReport(ctx context.Context, startDate, endDate string) (map[string]interface{}, error)

GenerateAnalyticsReport mocks the GenerateAnalyticsReport method

func (*MockMediaAnalyticsRepository) GetAllMediaAnalyticsByTimeRange

func (m *MockMediaAnalyticsRepository) GetAllMediaAnalyticsByTimeRange(ctx context.Context, startTime, endTime time.Time, limit int) ([]*models.MediaAnalytics, error)

GetAllMediaAnalyticsByTimeRange mocks the GetAllMediaAnalyticsByTimeRange method

func (*MockMediaAnalyticsRepository) GetBandwidthByTimeRange

func (m *MockMediaAnalyticsRepository) GetBandwidthByTimeRange(ctx context.Context, startTime, endTime time.Time, limit int) ([]*models.MediaAnalytics, error)

GetBandwidthByTimeRange mocks the GetBandwidthByTimeRange method

func (*MockMediaAnalyticsRepository) GetContentRecommendations

func (m *MockMediaAnalyticsRepository) GetContentRecommendations(ctx context.Context, userID string, limit int) ([]map[string]interface{}, error)

GetContentRecommendations mocks the GetContentRecommendations method

func (*MockMediaAnalyticsRepository) GetDailyCostSummary

func (m *MockMediaAnalyticsRepository) GetDailyCostSummary(ctx context.Context, date string) (map[string]interface{}, error)

GetDailyCostSummary mocks the GetDailyCostSummary method

func (*MockMediaAnalyticsRepository) GetMediaAnalyticsByDate

func (m *MockMediaAnalyticsRepository) GetMediaAnalyticsByDate(ctx context.Context, date string) ([]*models.MediaAnalytics, error)

GetMediaAnalyticsByDate mocks the GetMediaAnalyticsByDate method

func (*MockMediaAnalyticsRepository) GetMediaAnalyticsByID

func (m *MockMediaAnalyticsRepository) GetMediaAnalyticsByID(ctx context.Context, format string, timestamp time.Time, mediaID string) (*models.MediaAnalytics, error)

GetMediaAnalyticsByID mocks the GetMediaAnalyticsByID method

func (*MockMediaAnalyticsRepository) GetMediaAnalyticsByTimeRange

func (m *MockMediaAnalyticsRepository) GetMediaAnalyticsByTimeRange(ctx context.Context, mediaID string, startTime, endTime time.Time, limit int) ([]*models.MediaAnalytics, error)

GetMediaAnalyticsByTimeRange mocks the GetMediaAnalyticsByTimeRange method

func (*MockMediaAnalyticsRepository) GetMediaAnalyticsByVariant

func (m *MockMediaAnalyticsRepository) GetMediaAnalyticsByVariant(ctx context.Context, variantKey string) ([]*models.MediaAnalytics, error)

GetMediaAnalyticsByVariant mocks the GetMediaAnalyticsByVariant method

func (*MockMediaAnalyticsRepository) GetMediaMetricsForDate

func (m *MockMediaAnalyticsRepository) GetMediaMetricsForDate(ctx context.Context, mediaID, date string) (map[string]interface{}, error)

GetMediaMetricsForDate mocks the GetMediaMetricsForDate method

func (*MockMediaAnalyticsRepository) GetPopularMedia

func (m *MockMediaAnalyticsRepository) GetPopularMedia(ctx context.Context, startTime, endTime time.Time, limit int, cursor *string) ([]*models.MediaAnalytics, error)

GetPopularMedia mocks the GetPopularMedia method

func (*MockMediaAnalyticsRepository) GetTopVariantsByDemand

func (m *MockMediaAnalyticsRepository) GetTopVariantsByDemand(ctx context.Context, date string, limit int) ([]map[string]interface{}, error)

GetTopVariantsByDemand mocks the GetTopVariantsByDemand method

func (*MockMediaAnalyticsRepository) RecordMediaAnalytics

func (m *MockMediaAnalyticsRepository) RecordMediaAnalytics(ctx context.Context, analytics *models.MediaAnalytics) error

RecordMediaAnalytics mocks the RecordMediaAnalytics method

func (*MockMediaAnalyticsRepository) RecordMediaView

func (m *MockMediaAnalyticsRepository) RecordMediaView(ctx context.Context, mediaID, userID string, duration time.Duration, quality string) error

RecordMediaView mocks the RecordMediaView method

func (*MockMediaAnalyticsRepository) StoreMediaAnalytics

func (m *MockMediaAnalyticsRepository) StoreMediaAnalytics(ctx context.Context, analytics *models.MediaAnalytics) error

StoreMediaAnalytics mocks the StoreMediaAnalytics method

func (*MockMediaAnalyticsRepository) TrackUserBehavior

func (m *MockMediaAnalyticsRepository) TrackUserBehavior(ctx context.Context, userID string, behaviorData map[string]interface{}) error

TrackUserBehavior mocks the TrackUserBehavior method

func (*MockMediaAnalyticsRepository) UpdateMediaAnalytics

func (m *MockMediaAnalyticsRepository) UpdateMediaAnalytics(ctx context.Context, analytics *models.MediaAnalytics) error

UpdateMediaAnalytics mocks the UpdateMediaAnalytics method

type MockMediaMetadataRepository

type MockMediaMetadataRepository struct {
	mock.Mock
}

MockMediaMetadataRepository is a mock implementation of interfaces.MediaMetadataRepository using testify/mock for expectation-based testing.

func NewMockMediaMetadataRepository

func NewMockMediaMetadataRepository() *MockMediaMetadataRepository

NewMockMediaMetadataRepository creates a new mock media metadata repository

func (*MockMediaMetadataRepository) CleanupExpiredMetadata

func (m *MockMediaMetadataRepository) CleanupExpiredMetadata(ctx context.Context) error

CleanupExpiredMetadata mocks the CleanupExpiredMetadata method

func (*MockMediaMetadataRepository) CreateMediaMetadata

func (m *MockMediaMetadataRepository) CreateMediaMetadata(ctx context.Context, metadata *models.MediaMetadata) error

CreateMediaMetadata mocks the CreateMediaMetadata method

func (*MockMediaMetadataRepository) DeleteMediaMetadata

func (m *MockMediaMetadataRepository) DeleteMediaMetadata(ctx context.Context, mediaID string) error

DeleteMediaMetadata mocks the DeleteMediaMetadata method

func (*MockMediaMetadataRepository) GetMediaMetadata

func (m *MockMediaMetadataRepository) GetMediaMetadata(ctx context.Context, mediaID string) (*models.MediaMetadata, error)

GetMediaMetadata mocks the GetMediaMetadata method

func (*MockMediaMetadataRepository) GetMediaMetadataByStatus

func (m *MockMediaMetadataRepository) GetMediaMetadataByStatus(ctx context.Context, status string, limit int) ([]*models.MediaMetadata, error)

GetMediaMetadataByStatus mocks the GetMediaMetadataByStatus method

func (*MockMediaMetadataRepository) GetPendingMediaMetadata

func (m *MockMediaMetadataRepository) GetPendingMediaMetadata(ctx context.Context, limit int) ([]*models.MediaMetadata, error)

GetPendingMediaMetadata mocks the GetPendingMediaMetadata method

func (*MockMediaMetadataRepository) GetProcessingMediaMetadata

func (m *MockMediaMetadataRepository) GetProcessingMediaMetadata(ctx context.Context, limit int) ([]*models.MediaMetadata, error)

GetProcessingMediaMetadata mocks the GetProcessingMediaMetadata method

func (*MockMediaMetadataRepository) MarkProcessingComplete

func (m *MockMediaMetadataRepository) MarkProcessingComplete(ctx context.Context, mediaID string, result interfaces.ProcessingResult) error

MarkProcessingComplete mocks the MarkProcessingComplete method

func (*MockMediaMetadataRepository) MarkProcessingFailed

func (m *MockMediaMetadataRepository) MarkProcessingFailed(ctx context.Context, mediaID string, errorMsg string) error

MarkProcessingFailed mocks the MarkProcessingFailed method

func (*MockMediaMetadataRepository) MarkProcessingStarted

func (m *MockMediaMetadataRepository) MarkProcessingStarted(ctx context.Context, mediaID string) error

MarkProcessingStarted mocks the MarkProcessingStarted method

func (*MockMediaMetadataRepository) UpdateMediaMetadata

func (m *MockMediaMetadataRepository) UpdateMediaMetadata(ctx context.Context, metadata *models.MediaMetadata) error

UpdateMediaMetadata mocks the UpdateMediaMetadata method

type MockMediaPopularityRepository

type MockMediaPopularityRepository struct {
	mock.Mock
}

MockMediaPopularityRepository is a mock implementation of interfaces.MediaPopularityRepository using testify/mock for expectation-based testing.

func NewMockMediaPopularityRepository

func NewMockMediaPopularityRepository() *MockMediaPopularityRepository

NewMockMediaPopularityRepository creates a new mock media popularity repository

func (*MockMediaPopularityRepository) GetPopularMediaByPeriod

func (m *MockMediaPopularityRepository) GetPopularMediaByPeriod(ctx context.Context, period string, limit int, cursor *string) ([]*models.MediaPopularity, error)

GetPopularMediaByPeriod mocks the GetPopularMediaByPeriod method

func (*MockMediaPopularityRepository) GetPopularityForMedia

func (m *MockMediaPopularityRepository) GetPopularityForMedia(ctx context.Context, mediaID, period string) (*models.MediaPopularity, error)

GetPopularityForMedia mocks the GetPopularityForMedia method

func (*MockMediaPopularityRepository) IncrementViewCount

func (m *MockMediaPopularityRepository) IncrementViewCount(ctx context.Context, mediaID, period string, incrementBy int64) error

IncrementViewCount mocks the IncrementViewCount method

func (*MockMediaPopularityRepository) UpsertPopularity

func (m *MockMediaPopularityRepository) UpsertPopularity(ctx context.Context, popularity *models.MediaPopularity) error

UpsertPopularity mocks the UpsertPopularity method

type MockMediaRepository

type MockMediaRepository struct {
	mock.Mock
}

MockMediaRepository is a mock implementation of interfaces.MediaRepository using testify/mock for expectation-based testing.

func NewMockMediaRepository

func NewMockMediaRepository() *MockMediaRepository

NewMockMediaRepository creates a new mock media repository

func (*MockMediaRepository) AddMediaVariant

func (m *MockMediaRepository) AddMediaVariant(ctx context.Context, mediaID, variantName string, variant models.MediaVariant) error

AddMediaVariant mocks the AddMediaVariant method

func (*MockMediaRepository) AddSpendingTransaction

func (m *MockMediaRepository) AddSpendingTransaction(ctx context.Context, transaction *models.MediaSpendingTransaction) error

AddSpendingTransaction mocks the AddSpendingTransaction method

func (*MockMediaRepository) CreateMedia

func (m *MockMediaRepository) CreateMedia(ctx context.Context, media *models.Media) error

CreateMedia mocks the CreateMedia method

func (*MockMediaRepository) CreateMediaJob

func (m *MockMediaRepository) CreateMediaJob(ctx context.Context, job *models.MediaJob) error

CreateMediaJob mocks the CreateMediaJob method

func (*MockMediaRepository) CreateMediaSpending

func (m *MockMediaRepository) CreateMediaSpending(ctx context.Context, spending *models.MediaSpending) error

CreateMediaSpending mocks the CreateMediaSpending method

func (*MockMediaRepository) CreateMediaSpendingTransaction

func (m *MockMediaRepository) CreateMediaSpendingTransaction(ctx context.Context, transaction *models.MediaSpendingTransaction) error

CreateMediaSpendingTransaction mocks the CreateMediaSpendingTransaction method

func (*MockMediaRepository) CreateTranscodingJob

func (m *MockMediaRepository) CreateTranscodingJob(ctx context.Context, job *models.TranscodingJob) error

CreateTranscodingJob mocks the CreateTranscodingJob method

func (*MockMediaRepository) CreateUserMediaConfig

func (m *MockMediaRepository) CreateUserMediaConfig(ctx context.Context, config *models.UserMediaConfig) error

CreateUserMediaConfig mocks the CreateUserMediaConfig method

func (*MockMediaRepository) DeleteExpiredMedia

func (m *MockMediaRepository) DeleteExpiredMedia(ctx context.Context, expiredBefore time.Time) (int64, error)

DeleteExpiredMedia mocks the DeleteExpiredMedia method

func (*MockMediaRepository) DeleteMedia

func (m *MockMediaRepository) DeleteMedia(ctx context.Context, mediaID string) error

DeleteMedia mocks the DeleteMedia method

func (*MockMediaRepository) DeleteMediaJob

func (m *MockMediaRepository) DeleteMediaJob(ctx context.Context, jobID string) error

DeleteMediaJob mocks the DeleteMediaJob method

func (*MockMediaRepository) DeleteMediaVariant

func (m *MockMediaRepository) DeleteMediaVariant(ctx context.Context, mediaID, variantName string) error

DeleteMediaVariant mocks the DeleteMediaVariant method

func (*MockMediaRepository) DeleteTranscodingJob

func (m *MockMediaRepository) DeleteTranscodingJob(ctx context.Context, jobID string) error

DeleteTranscodingJob mocks the DeleteTranscodingJob method

func (*MockMediaRepository) DeleteUserMediaConfig

func (m *MockMediaRepository) DeleteUserMediaConfig(ctx context.Context, userID string) error

DeleteUserMediaConfig mocks the DeleteUserMediaConfig method

func (*MockMediaRepository) GetJobsByStatus

func (m *MockMediaRepository) GetJobsByStatus(ctx context.Context, status string, limit int) ([]*models.MediaJob, error)

GetJobsByStatus mocks the GetJobsByStatus method

func (*MockMediaRepository) GetJobsByUser

func (m *MockMediaRepository) GetJobsByUser(ctx context.Context, username string, limit int) ([]*models.MediaJob, error)

GetJobsByUser mocks the GetJobsByUser method

func (*MockMediaRepository) GetMedia

func (m *MockMediaRepository) GetMedia(ctx context.Context, mediaID string) (*models.Media, error)

GetMedia mocks the GetMedia method

func (*MockMediaRepository) GetMediaByContentType

func (m *MockMediaRepository) GetMediaByContentType(ctx context.Context, contentType string, limit int) ([]*models.Media, error)

GetMediaByContentType mocks the GetMediaByContentType method

func (*MockMediaRepository) GetMediaByIDs

func (m *MockMediaRepository) GetMediaByIDs(ctx context.Context, mediaIDs []string) ([]*models.Media, error)

GetMediaByIDs mocks the GetMediaByIDs method

func (*MockMediaRepository) GetMediaByStatus

func (m *MockMediaRepository) GetMediaByStatus(ctx context.Context, status string, limit int) ([]*models.Media, error)

GetMediaByStatus mocks the GetMediaByStatus method

func (*MockMediaRepository) GetMediaByUser

func (m *MockMediaRepository) GetMediaByUser(ctx context.Context, userID string, limit int) ([]*models.Media, error)

GetMediaByUser mocks the GetMediaByUser method

func (*MockMediaRepository) GetMediaJob

func (m *MockMediaRepository) GetMediaJob(ctx context.Context, jobID string) (*models.MediaJob, error)

GetMediaJob mocks the GetMediaJob method

func (*MockMediaRepository) GetMediaSpending

func (m *MockMediaRepository) GetMediaSpending(ctx context.Context, userID, period string) (*models.MediaSpending, error)

GetMediaSpending mocks the GetMediaSpending method

func (*MockMediaRepository) GetMediaSpendingByTimeRange

func (m *MockMediaRepository) GetMediaSpendingByTimeRange(ctx context.Context, userID string, periodType string, limit int) ([]*models.MediaSpending, error)

GetMediaSpendingByTimeRange mocks the GetMediaSpendingByTimeRange method

func (*MockMediaRepository) GetMediaSpendingTransactions

func (m *MockMediaRepository) GetMediaSpendingTransactions(ctx context.Context, userID string, limit int) ([]*models.MediaSpendingTransaction, error)

GetMediaSpendingTransactions mocks the GetMediaSpendingTransactions method

func (*MockMediaRepository) GetMediaStorageUsage

func (m *MockMediaRepository) GetMediaStorageUsage(ctx context.Context, userID string) (int64, error)

GetMediaStorageUsage mocks the GetMediaStorageUsage method

func (*MockMediaRepository) GetMediaUsageStats

func (m *MockMediaRepository) GetMediaUsageStats(ctx context.Context, mediaID string) (int, *time.Time, error)

GetMediaUsageStats mocks the GetMediaUsageStats method

func (*MockMediaRepository) GetMediaVariant

func (m *MockMediaRepository) GetMediaVariant(ctx context.Context, mediaID, variantName string) (*models.MediaVariant, error)

GetMediaVariant mocks the GetMediaVariant method

func (*MockMediaRepository) GetModerationPendingMedia

GetModerationPendingMedia mocks the GetModerationPendingMedia method

func (*MockMediaRepository) GetOrCreateMediaSpending

func (m *MockMediaRepository) GetOrCreateMediaSpending(ctx context.Context, userID, period, periodType string) (*models.MediaSpending, error)

GetOrCreateMediaSpending mocks the GetOrCreateMediaSpending method

func (*MockMediaRepository) GetPendingMedia

GetPendingMedia mocks the GetPendingMedia method

func (*MockMediaRepository) GetProcessingMedia

GetProcessingMedia mocks the GetProcessingMedia method

func (*MockMediaRepository) GetTotalStorageUsage

func (m *MockMediaRepository) GetTotalStorageUsage(ctx context.Context) (int64, error)

GetTotalStorageUsage mocks the GetTotalStorageUsage method

func (*MockMediaRepository) GetTranscodingCostsByUser

func (m *MockMediaRepository) GetTranscodingCostsByUser(ctx context.Context, userID string, timeRange string) (map[string]int64, error)

GetTranscodingCostsByUser mocks the GetTranscodingCostsByUser method

func (*MockMediaRepository) GetTranscodingJob

func (m *MockMediaRepository) GetTranscodingJob(ctx context.Context, jobID string) (*models.TranscodingJob, error)

GetTranscodingJob mocks the GetTranscodingJob method

func (*MockMediaRepository) GetTranscodingJobsByMedia

func (m *MockMediaRepository) GetTranscodingJobsByMedia(ctx context.Context, mediaID string, limit int) ([]*models.TranscodingJob, error)

GetTranscodingJobsByMedia mocks the GetTranscodingJobsByMedia method

func (*MockMediaRepository) GetTranscodingJobsByStatus

func (m *MockMediaRepository) GetTranscodingJobsByStatus(ctx context.Context, status string, limit int) ([]*models.TranscodingJob, error)

GetTranscodingJobsByStatus mocks the GetTranscodingJobsByStatus method

func (*MockMediaRepository) GetTranscodingJobsByUser

func (m *MockMediaRepository) GetTranscodingJobsByUser(ctx context.Context, userID string, limit int) ([]*models.TranscodingJob, error)

GetTranscodingJobsByUser mocks the GetTranscodingJobsByUser method

func (*MockMediaRepository) GetUnusedMedia

GetUnusedMedia mocks the GetUnusedMedia method

func (*MockMediaRepository) GetUserMedia

GetUserMedia mocks the GetUserMedia method

func (*MockMediaRepository) GetUserMediaByType

func (m *MockMediaRepository) GetUserMediaByType(ctx context.Context, userID, contentType string, opts interfaces.PaginationOptions) (*interfaces.PaginatedResult[*models.Media], error)

GetUserMediaByType mocks the GetUserMediaByType method

func (*MockMediaRepository) GetUserMediaConfig

func (m *MockMediaRepository) GetUserMediaConfig(ctx context.Context, userID string) (*models.UserMediaConfig, error)

GetUserMediaConfig mocks the GetUserMediaConfig method

func (*MockMediaRepository) GetUserMediaConfigByUsername

func (m *MockMediaRepository) GetUserMediaConfigByUsername(ctx context.Context, username string) (*models.UserMediaConfig, error)

GetUserMediaConfigByUsername mocks the GetUserMediaConfigByUsername method

func (*MockMediaRepository) GetUserMediaLegacy

func (m *MockMediaRepository) GetUserMediaLegacy(ctx context.Context, username string) ([]any, error)

GetUserMediaLegacy mocks the GetUserMediaLegacy method

func (*MockMediaRepository) MarkMediaFailed

func (m *MockMediaRepository) MarkMediaFailed(ctx context.Context, mediaID, errorMsg string) error

MarkMediaFailed mocks the MarkMediaFailed method

func (*MockMediaRepository) MarkMediaProcessing

func (m *MockMediaRepository) MarkMediaProcessing(ctx context.Context, mediaID string) error

MarkMediaProcessing mocks the MarkMediaProcessing method

func (*MockMediaRepository) MarkMediaReady

func (m *MockMediaRepository) MarkMediaReady(ctx context.Context, mediaID string) error

MarkMediaReady mocks the MarkMediaReady method

func (*MockMediaRepository) MarkMediaUsed

func (m *MockMediaRepository) MarkMediaUsed(ctx context.Context, mediaID string) error

MarkMediaUsed mocks the MarkMediaUsed method

func (*MockMediaRepository) SetDependencies

func (m *MockMediaRepository) SetDependencies(deps map[string]interface{})

SetDependencies mocks the SetDependencies method

func (*MockMediaRepository) SetMediaModeration

func (m *MockMediaRepository) SetMediaModeration(ctx context.Context, mediaID string, isNSFW bool, score float64, labels []string) error

SetMediaModeration mocks the SetMediaModeration method

func (*MockMediaRepository) UnmarkAllMediaAsSensitive

func (m *MockMediaRepository) UnmarkAllMediaAsSensitive(ctx context.Context, username string) error

UnmarkAllMediaAsSensitive mocks the UnmarkAllMediaAsSensitive method

func (*MockMediaRepository) UpdateMedia

func (m *MockMediaRepository) UpdateMedia(ctx context.Context, media *models.Media) error

UpdateMedia mocks the UpdateMedia method

func (*MockMediaRepository) UpdateMediaAttachment

func (m *MockMediaRepository) UpdateMediaAttachment(ctx context.Context, mediaID string, updates map[string]any) error

UpdateMediaAttachment mocks the UpdateMediaAttachment method

func (*MockMediaRepository) UpdateMediaJob

func (m *MockMediaRepository) UpdateMediaJob(ctx context.Context, job *models.MediaJob) error

UpdateMediaJob mocks the UpdateMediaJob method

func (*MockMediaRepository) UpdateMediaSpending

func (m *MockMediaRepository) UpdateMediaSpending(ctx context.Context, spending *models.MediaSpending) error

UpdateMediaSpending mocks the UpdateMediaSpending method

func (*MockMediaRepository) UpdateTranscodingJob

func (m *MockMediaRepository) UpdateTranscodingJob(ctx context.Context, job *models.TranscodingJob) error

UpdateTranscodingJob mocks the UpdateTranscodingJob method

func (*MockMediaRepository) UpdateUserMediaConfig

func (m *MockMediaRepository) UpdateUserMediaConfig(ctx context.Context, config *models.UserMediaConfig) error

UpdateUserMediaConfig mocks the UpdateUserMediaConfig method

type MockMediaSessionRepository

type MockMediaSessionRepository struct {
	mock.Mock
}

MockMediaSessionRepository is a mock implementation of interfaces.MediaSessionRepository using testify/mock for expectation-based testing.

func NewMockMediaSessionRepository

func NewMockMediaSessionRepository() *MockMediaSessionRepository

NewMockMediaSessionRepository creates a new mock media session repository

func (*MockMediaSessionRepository) CleanupExpiredSessions

func (m *MockMediaSessionRepository) CleanupExpiredSessions(ctx context.Context, maxAge time.Duration) error

CleanupExpiredSessions mocks the CleanupExpiredSessions method

func (*MockMediaSessionRepository) CreateSession

func (m *MockMediaSessionRepository) CreateSession(ctx context.Context, session *types.StreamingSession) error

CreateSession mocks the CreateSession method

func (*MockMediaSessionRepository) EndSession

func (m *MockMediaSessionRepository) EndSession(ctx context.Context, sessionID string) error

EndSession mocks the EndSession method

func (*MockMediaSessionRepository) EndStreamingSession

func (m *MockMediaSessionRepository) EndStreamingSession(ctx context.Context, sessionID string) error

EndStreamingSession mocks the EndStreamingSession method

func (*MockMediaSessionRepository) GetActiveSessionsCount

func (m *MockMediaSessionRepository) GetActiveSessionsCount(ctx context.Context) (int, error)

GetActiveSessionsCount mocks the GetActiveSessionsCount method

func (*MockMediaSessionRepository) GetActiveStreams

func (m *MockMediaSessionRepository) GetActiveStreams(ctx context.Context, limit int) ([]*types.StreamingSession, error)

GetActiveStreams mocks the GetActiveStreams method

func (*MockMediaSessionRepository) GetMediaSessions

func (m *MockMediaSessionRepository) GetMediaSessions(ctx context.Context, mediaID string, limit int32) ([]*types.StreamingSession, error)

GetMediaSessions mocks the GetMediaSessions method

func (*MockMediaSessionRepository) GetSession

func (m *MockMediaSessionRepository) GetSession(ctx context.Context, sessionID string) (*types.StreamingSession, error)

GetSession mocks the GetSession method

func (*MockMediaSessionRepository) GetSessionsByTimeRange

func (m *MockMediaSessionRepository) GetSessionsByTimeRange(ctx context.Context, startTime, endTime time.Time, limit int32) ([]*types.StreamingSession, error)

GetSessionsByTimeRange mocks the GetSessionsByTimeRange method

func (*MockMediaSessionRepository) GetUserSessions

func (m *MockMediaSessionRepository) GetUserSessions(ctx context.Context, userID string) ([]*types.StreamingSession, error)

GetUserSessions mocks the GetUserSessions method

func (*MockMediaSessionRepository) SetSessionTTL

func (m *MockMediaSessionRepository) SetSessionTTL(ttl time.Duration)

SetSessionTTL mocks the SetSessionTTL method

func (*MockMediaSessionRepository) StartStreamingSession

func (m *MockMediaSessionRepository) StartStreamingSession(ctx context.Context, userID, mediaID string, format types.MediaFormat, quality types.Quality) (*types.StreamingSession, error)

StartStreamingSession mocks the StartStreamingSession method

func (*MockMediaSessionRepository) UpdateSession

func (m *MockMediaSessionRepository) UpdateSession(ctx context.Context, session *types.StreamingSession) error

UpdateSession mocks the UpdateSession method

func (*MockMediaSessionRepository) UpdateStreamingMetrics

func (m *MockMediaSessionRepository) UpdateStreamingMetrics(ctx context.Context, sessionID string, segmentIndex int, bytesTransferred int64, bufferHealth float64, currentQuality types.Quality) error

UpdateStreamingMetrics mocks the UpdateStreamingMetrics method

func (*MockMediaSessionRepository) ValidateSessionAccess

func (m *MockMediaSessionRepository) ValidateSessionAccess(ctx context.Context, sessionID, userID string) (bool, error)

ValidateSessionAccess mocks the ValidateSessionAccess method

type MockMetricRecordRepository

type MockMetricRecordRepository struct {
	mock.Mock
}

MockMetricRecordRepository is a mock implementation of interfaces.MetricRecordRepository using testify/mock for expectation-based testing.

func NewMockMetricRecordRepository

func NewMockMetricRecordRepository() *MockMetricRecordRepository

NewMockMetricRecordRepository creates a new mock metric record repository

func (*MockMetricRecordRepository) BatchCreateMetricRecords

func (m *MockMetricRecordRepository) BatchCreateMetricRecords(ctx context.Context, records []*models.MetricRecord) error

BatchCreateMetricRecords mocks the BatchCreateMetricRecords method

func (*MockMetricRecordRepository) CreateMetricRecord

func (m *MockMetricRecordRepository) CreateMetricRecord(ctx context.Context, record *models.MetricRecord) error

CreateMetricRecord mocks the CreateMetricRecord method

func (*MockMetricRecordRepository) DeleteMetricRecord

func (m *MockMetricRecordRepository) DeleteMetricRecord(ctx context.Context, metricType, bucket, timestamp string) error

DeleteMetricRecord mocks the DeleteMetricRecord method

func (*MockMetricRecordRepository) GetMetricRecord

func (m *MockMetricRecordRepository) GetMetricRecord(ctx context.Context, metricType, bucket, timestamp string) (*models.MetricRecord, error)

GetMetricRecord mocks the GetMetricRecord method

func (*MockMetricRecordRepository) GetMetricsByAggregationLevel

func (m *MockMetricRecordRepository) GetMetricsByAggregationLevel(ctx context.Context, level string, startTime, endTime time.Time) ([]*models.MetricRecord, error)

GetMetricsByAggregationLevel mocks the GetMetricsByAggregationLevel method

func (*MockMetricRecordRepository) GetMetricsByDate

func (m *MockMetricRecordRepository) GetMetricsByDate(ctx context.Context, date time.Time, serviceName string) ([]*models.MetricRecord, error)

GetMetricsByDate mocks the GetMetricsByDate method

func (*MockMetricRecordRepository) GetMetricsByService

func (m *MockMetricRecordRepository) GetMetricsByService(ctx context.Context, serviceName string, startTime, endTime time.Time) ([]*models.MetricRecord, error)

GetMetricsByService mocks the GetMetricsByService method

func (*MockMetricRecordRepository) GetMetricsByType

func (m *MockMetricRecordRepository) GetMetricsByType(ctx context.Context, metricType string, startTime, endTime time.Time) ([]*models.MetricRecord, error)

GetMetricsByType mocks the GetMetricsByType method

func (*MockMetricRecordRepository) GetServiceMetricsStats

func (m *MockMetricRecordRepository) GetServiceMetricsStats(ctx context.Context, serviceName string, metricType string, startTime, endTime time.Time) (*interfaces.MetricRecordStats, error)

GetServiceMetricsStats mocks the GetServiceMetricsStats method

func (*MockMetricRecordRepository) UpdateMetricRecord

func (m *MockMetricRecordRepository) UpdateMetricRecord(ctx context.Context, record *models.MetricRecord) error

UpdateMetricRecord mocks the UpdateMetricRecord method

type MockModerationMLRepository

type MockModerationMLRepository struct {
	mock.Mock
}

MockModerationMLRepository is a mock implementation of interfaces.ModerationMLRepository using testify/mock for expectation-based testing.

func NewMockModerationMLRepository

func NewMockModerationMLRepository() *MockModerationMLRepository

NewMockModerationMLRepository creates a new mock moderation ML repository

func (*MockModerationMLRepository) CreateEffectivenessMetric

func (m *MockModerationMLRepository) CreateEffectivenessMetric(ctx context.Context, metric *models.ModerationEffectivenessMetric) error

CreateEffectivenessMetric mocks the CreateEffectivenessMetric method

func (*MockModerationMLRepository) CreateModelVersion

func (m *MockModerationMLRepository) CreateModelVersion(ctx context.Context, version *models.ModerationModelVersion) error

CreateModelVersion mocks the CreateModelVersion method

func (*MockModerationMLRepository) CreateSample

CreateSample mocks the CreateSample method

func (*MockModerationMLRepository) GetActiveModelVersion

GetActiveModelVersion mocks the GetActiveModelVersion method

func (*MockModerationMLRepository) GetEffectivenessMetric

func (m *MockModerationMLRepository) GetEffectivenessMetric(ctx context.Context, patternID, period string, startTime time.Time) (*models.ModerationEffectivenessMetric, error)

GetEffectivenessMetric mocks the GetEffectivenessMetric method

func (*MockModerationMLRepository) GetModelVersion

func (m *MockModerationMLRepository) GetModelVersion(ctx context.Context, versionID string) (*models.ModerationModelVersion, error)

GetModelVersion mocks the GetModelVersion method

func (*MockModerationMLRepository) GetSample

GetSample mocks the GetSample method

func (*MockModerationMLRepository) ListEffectivenessMetricsByPattern

func (m *MockModerationMLRepository) ListEffectivenessMetricsByPattern(ctx context.Context, patternID string, limit int) ([]*models.ModerationEffectivenessMetric, error)

ListEffectivenessMetricsByPattern mocks the ListEffectivenessMetricsByPattern method

func (*MockModerationMLRepository) ListEffectivenessMetricsByPeriod

func (m *MockModerationMLRepository) ListEffectivenessMetricsByPeriod(ctx context.Context, period string, limit int) ([]*models.ModerationEffectivenessMetric, error)

ListEffectivenessMetricsByPeriod mocks the ListEffectivenessMetricsByPeriod method

func (*MockModerationMLRepository) ListSamplesByLabel

func (m *MockModerationMLRepository) ListSamplesByLabel(ctx context.Context, label string, limit int) ([]*models.ModerationSample, error)

ListSamplesByLabel mocks the ListSamplesByLabel method

func (*MockModerationMLRepository) ListSamplesByReviewer

func (m *MockModerationMLRepository) ListSamplesByReviewer(ctx context.Context, reviewerID string, limit int) ([]*models.ModerationSample, error)

ListSamplesByReviewer mocks the ListSamplesByReviewer method

func (*MockModerationMLRepository) UpdateModelVersion

func (m *MockModerationMLRepository) UpdateModelVersion(ctx context.Context, version *models.ModerationModelVersion) error

UpdateModelVersion mocks the UpdateModelVersion method

type MockModerationRepository

type MockModerationRepository struct {
	mock.Mock
}

MockModerationRepository is a mock implementation of interfaces.ModerationRepository using testify/mock for expectation-based testing.

func NewMockModerationRepository

func NewMockModerationRepository() *MockModerationRepository

NewMockModerationRepository creates a new mock moderation repository

func (*MockModerationRepository) AddFilterKeyword

func (m *MockModerationRepository) AddFilterKeyword(ctx context.Context, filterID string, keyword *storage.FilterKeyword) error

AddFilterKeyword mocks the AddFilterKeyword method

func (*MockModerationRepository) AddFilterStatus

func (m *MockModerationRepository) AddFilterStatus(ctx context.Context, filterID string, status *storage.FilterStatus) error

AddFilterStatus mocks the AddFilterStatus method

func (*MockModerationRepository) AddModerationReview

func (m *MockModerationRepository) AddModerationReview(ctx context.Context, review *storage.ModerationReview) error

AddModerationReview mocks the AddModerationReview method

func (*MockModerationRepository) AssignReport

func (m *MockModerationRepository) AssignReport(ctx context.Context, reportID string, assignedTo string) error

AssignReport mocks the AssignReport method

func (*MockModerationRepository) CountPendingFlags

func (m *MockModerationRepository) CountPendingFlags(ctx context.Context) (int, error)

CountPendingFlags mocks the CountPendingFlags method

func (*MockModerationRepository) CreateAdminReview

func (m *MockModerationRepository) CreateAdminReview(ctx context.Context, eventID string, adminID string, action storage.ActionType, reason string) error

CreateAdminReview mocks the CreateAdminReview method

func (*MockModerationRepository) CreateAuditLog

func (m *MockModerationRepository) CreateAuditLog(ctx context.Context, auditLog *storage.AuditLog) error

CreateAuditLog mocks the CreateAuditLog method

func (*MockModerationRepository) CreateFilter

func (m *MockModerationRepository) CreateFilter(ctx context.Context, filter *storage.Filter) error

CreateFilter mocks the CreateFilter method

func (*MockModerationRepository) CreateFlag

func (m *MockModerationRepository) CreateFlag(ctx context.Context, flag *storage.Flag) error

CreateFlag mocks the CreateFlag method

func (*MockModerationRepository) CreateModerationDecision

func (m *MockModerationRepository) CreateModerationDecision(ctx context.Context, decision *storage.ModerationDecision) error

CreateModerationDecision mocks the CreateModerationDecision method

func (*MockModerationRepository) CreateModerationEvent

func (m *MockModerationRepository) CreateModerationEvent(ctx context.Context, event *storage.ModerationEvent) error

CreateModerationEvent mocks the CreateModerationEvent method

func (*MockModerationRepository) CreateModerationPattern

func (m *MockModerationRepository) CreateModerationPattern(ctx context.Context, pattern *storage.ModerationPattern) error

CreateModerationPattern mocks the CreateModerationPattern method

func (*MockModerationRepository) CreateReport

func (m *MockModerationRepository) CreateReport(ctx context.Context, report *storage.Report) error

CreateReport mocks the CreateReport method

func (*MockModerationRepository) DeleteFilter

func (m *MockModerationRepository) DeleteFilter(ctx context.Context, filterID string) error

DeleteFilter mocks the DeleteFilter method

func (*MockModerationRepository) DeleteFilterKeyword

func (m *MockModerationRepository) DeleteFilterKeyword(ctx context.Context, keywordID string) error

DeleteFilterKeyword mocks the DeleteFilterKeyword method

func (*MockModerationRepository) DeleteFilterStatus

func (m *MockModerationRepository) DeleteFilterStatus(ctx context.Context, statusID string) error

DeleteFilterStatus mocks the DeleteFilterStatus method

func (*MockModerationRepository) DeleteFlag

func (m *MockModerationRepository) DeleteFlag(ctx context.Context, id string) error

DeleteFlag mocks the DeleteFlag method

func (*MockModerationRepository) DeleteModerationPattern

func (m *MockModerationRepository) DeleteModerationPattern(ctx context.Context, patternID string) error

DeleteModerationPattern mocks the DeleteModerationPattern method

func (*MockModerationRepository) GetAuditLogs

func (m *MockModerationRepository) GetAuditLogs(ctx context.Context, limit int, cursor string) ([]*storage.AuditLog, string, error)

GetAuditLogs mocks the GetAuditLogs method

func (*MockModerationRepository) GetAuditLogsByAdmin

func (m *MockModerationRepository) GetAuditLogsByAdmin(ctx context.Context, adminID string, limit int, cursor string) ([]*storage.AuditLog, string, error)

GetAuditLogsByAdmin mocks the GetAuditLogsByAdmin method

func (*MockModerationRepository) GetAuditLogsByTarget

func (m *MockModerationRepository) GetAuditLogsByTarget(ctx context.Context, targetID string, limit int, cursor string) ([]*storage.AuditLog, string, error)

GetAuditLogsByTarget mocks the GetAuditLogsByTarget method

func (*MockModerationRepository) GetDecisionHistory

func (m *MockModerationRepository) GetDecisionHistory(ctx context.Context, contentID string) ([]*models.ModerationDecisionResult, error)

GetDecisionHistory mocks the GetDecisionHistory method

func (*MockModerationRepository) GetFilter

func (m *MockModerationRepository) GetFilter(ctx context.Context, filterID string) (*storage.Filter, error)

GetFilter mocks the GetFilter method

func (*MockModerationRepository) GetFilterKeywords

func (m *MockModerationRepository) GetFilterKeywords(ctx context.Context, filterID string) ([]*storage.FilterKeyword, error)

GetFilterKeywords mocks the GetFilterKeywords method

func (*MockModerationRepository) GetFilterStatuses

func (m *MockModerationRepository) GetFilterStatuses(ctx context.Context, filterID string) ([]*storage.FilterStatus, error)

GetFilterStatuses mocks the GetFilterStatuses method

func (*MockModerationRepository) GetFiltersForUser

func (m *MockModerationRepository) GetFiltersForUser(ctx context.Context, username string) ([]*storage.Filter, error)

GetFiltersForUser mocks the GetFiltersForUser method

func (*MockModerationRepository) GetFlag

GetFlag mocks the GetFlag method

func (*MockModerationRepository) GetFlagsByActor

func (m *MockModerationRepository) GetFlagsByActor(ctx context.Context, actorID string, limit int, cursor string) ([]*storage.Flag, string, error)

GetFlagsByActor mocks the GetFlagsByActor method

func (*MockModerationRepository) GetFlagsByObject

func (m *MockModerationRepository) GetFlagsByObject(ctx context.Context, objectID string, limit int, cursor string) ([]*storage.Flag, string, error)

GetFlagsByObject mocks the GetFlagsByObject method

func (*MockModerationRepository) GetModerationDecision

func (m *MockModerationRepository) GetModerationDecision(ctx context.Context, objectID string) (*storage.ModerationDecision, error)

GetModerationDecision mocks the GetModerationDecision method

func (*MockModerationRepository) GetModerationDecisionsByModerator

func (m *MockModerationRepository) GetModerationDecisionsByModerator(ctx context.Context, moderatorUsername string, limit int) ([]*models.ModerationReview, error)

GetModerationDecisionsByModerator mocks the GetModerationDecisionsByModerator method

func (*MockModerationRepository) GetModerationEvent

func (m *MockModerationRepository) GetModerationEvent(ctx context.Context, eventID string) (*storage.ModerationEvent, error)

GetModerationEvent mocks the GetModerationEvent method

func (*MockModerationRepository) GetModerationEvents

func (m *MockModerationRepository) GetModerationEvents(ctx context.Context, filter *storage.ModerationEventFilter, limit int, cursor string) ([]*storage.ModerationEvent, string, error)

GetModerationEvents mocks the GetModerationEvents method

func (*MockModerationRepository) GetModerationEventsByActor

func (m *MockModerationRepository) GetModerationEventsByActor(ctx context.Context, actorID string, limit int, cursor string) ([]*storage.ModerationEvent, string, error)

GetModerationEventsByActor mocks the GetModerationEventsByActor method

func (*MockModerationRepository) GetModerationEventsByObject

func (m *MockModerationRepository) GetModerationEventsByObject(ctx context.Context, objectID string, limit int, cursor string) ([]*storage.ModerationEvent, string, error)

GetModerationEventsByObject mocks the GetModerationEventsByObject method

func (*MockModerationRepository) GetModerationHistory

func (m *MockModerationRepository) GetModerationHistory(ctx context.Context, objectID string) (*storage.ModerationHistory, error)

GetModerationHistory mocks the GetModerationHistory method

func (*MockModerationRepository) GetModerationPattern

func (m *MockModerationRepository) GetModerationPattern(ctx context.Context, patternID string) (*storage.ModerationPattern, error)

GetModerationPattern mocks the GetModerationPattern method

func (*MockModerationRepository) GetModerationPatterns

func (m *MockModerationRepository) GetModerationPatterns(ctx context.Context, active bool, severity string, limit int) ([]*storage.ModerationPattern, error)

GetModerationPatterns mocks the GetModerationPatterns method

func (*MockModerationRepository) GetModerationQueue

GetModerationQueue mocks the GetModerationQueue method

func (*MockModerationRepository) GetModerationQueueCount

func (m *MockModerationRepository) GetModerationQueueCount(ctx context.Context) (int, error)

GetModerationQueueCount mocks the GetModerationQueueCount method

func (*MockModerationRepository) GetModerationQueuePaginated

func (m *MockModerationRepository) GetModerationQueuePaginated(ctx context.Context, limit int, cursor string) ([]*storage.ModerationQueueItem, string, error)

GetModerationQueuePaginated mocks the GetModerationQueuePaginated method

func (*MockModerationRepository) GetModerationReviews

func (m *MockModerationRepository) GetModerationReviews(ctx context.Context, eventID string) ([]*storage.ModerationReview, error)

GetModerationReviews mocks the GetModerationReviews method

func (*MockModerationRepository) GetOpenReportsCount

func (m *MockModerationRepository) GetOpenReportsCount(ctx context.Context) (int, error)

GetOpenReportsCount mocks the GetOpenReportsCount method

func (*MockModerationRepository) GetPendingFlags

func (m *MockModerationRepository) GetPendingFlags(ctx context.Context, limit int, cursor string) ([]*storage.Flag, string, error)

GetPendingFlags mocks the GetPendingFlags method

func (*MockModerationRepository) GetPendingModerationCount

func (m *MockModerationRepository) GetPendingModerationCount(ctx context.Context, moderatorID string) (int, error)

GetPendingModerationCount mocks the GetPendingModerationCount method

func (*MockModerationRepository) GetReport

GetReport mocks the GetReport method

func (*MockModerationRepository) GetReportStats

func (m *MockModerationRepository) GetReportStats(ctx context.Context, username string) (*storage.ReportStats, error)

GetReportStats mocks the GetReportStats method

func (*MockModerationRepository) GetReportedStatuses

func (m *MockModerationRepository) GetReportedStatuses(ctx context.Context, reportID string) ([]any, error)

GetReportedStatuses mocks the GetReportedStatuses method

func (*MockModerationRepository) GetReportsByStatus

func (m *MockModerationRepository) GetReportsByStatus(ctx context.Context, status storage.ReportStatus, limit int, cursor string) ([]*storage.Report, string, error)

GetReportsByStatus mocks the GetReportsByStatus method

func (*MockModerationRepository) GetReportsByTarget

func (m *MockModerationRepository) GetReportsByTarget(ctx context.Context, targetAccountID string, limit int, cursor string) ([]*storage.Report, string, error)

GetReportsByTarget mocks the GetReportsByTarget method

func (*MockModerationRepository) GetReviewQueue

func (m *MockModerationRepository) GetReviewQueue(ctx context.Context, filters map[string]interface{}) ([]*models.ModerationReviewQueue, error)

GetReviewQueue mocks the GetReviewQueue method

func (*MockModerationRepository) GetReviewerStats

func (m *MockModerationRepository) GetReviewerStats(ctx context.Context, reviewerID string) (*storage.ReviewerStats, error)

GetReviewerStats mocks the GetReviewerStats method

func (*MockModerationRepository) GetUserReports

func (m *MockModerationRepository) GetUserReports(ctx context.Context, username string, limit int, cursor string) ([]*storage.Report, string, error)

GetUserReports mocks the GetUserReports method

func (*MockModerationRepository) IncrementFalseReports

func (m *MockModerationRepository) IncrementFalseReports(ctx context.Context, username string) error

IncrementFalseReports mocks the IncrementFalseReports method

func (*MockModerationRepository) RecordPatternMatch

func (m *MockModerationRepository) RecordPatternMatch(ctx context.Context, patternID string, matched bool, timestamp time.Time) error

RecordPatternMatch mocks the RecordPatternMatch method

func (*MockModerationRepository) StoreAnalysisResult

func (m *MockModerationRepository) StoreAnalysisResult(ctx context.Context, analysisData map[string]interface{}) error

StoreAnalysisResult mocks the StoreAnalysisResult method

func (*MockModerationRepository) StoreDecision

func (m *MockModerationRepository) StoreDecision(ctx context.Context, decisionData map[string]interface{}) error

StoreDecision mocks the StoreDecision method

func (*MockModerationRepository) StoreModerationDecision

func (m *MockModerationRepository) StoreModerationDecision(ctx context.Context, decision *storage.ModerationDecision) error

StoreModerationDecision mocks the StoreModerationDecision method

func (*MockModerationRepository) UnassignReport

func (m *MockModerationRepository) UnassignReport(ctx context.Context, reportID string) error

UnassignReport mocks the UnassignReport method

func (*MockModerationRepository) UpdateEnforcementStatus

func (m *MockModerationRepository) UpdateEnforcementStatus(ctx context.Context, contentID, status string) error

UpdateEnforcementStatus mocks the UpdateEnforcementStatus method

func (*MockModerationRepository) UpdateFilter

func (m *MockModerationRepository) UpdateFilter(ctx context.Context, filterID string, updates map[string]any) error

UpdateFilter mocks the UpdateFilter method

func (*MockModerationRepository) UpdateFilterKeyword

func (m *MockModerationRepository) UpdateFilterKeyword(ctx context.Context, keywordID string, updates map[string]any) error

UpdateFilterKeyword mocks the UpdateFilterKeyword method

func (*MockModerationRepository) UpdateFlagStatus

func (m *MockModerationRepository) UpdateFlagStatus(ctx context.Context, id string, status storage.FlagStatus, reviewedBy string, reviewNote string) error

UpdateFlagStatus mocks the UpdateFlagStatus method

func (*MockModerationRepository) UpdateModerationDecision

func (m *MockModerationRepository) UpdateModerationDecision(ctx context.Context, contentID string, review *storage.ModerationReview) error

UpdateModerationDecision mocks the UpdateModerationDecision method

func (*MockModerationRepository) UpdateModerationPattern

func (m *MockModerationRepository) UpdateModerationPattern(ctx context.Context, pattern *storage.ModerationPattern) error

UpdateModerationPattern mocks the UpdateModerationPattern method

func (*MockModerationRepository) UpdateReportStatus

func (m *MockModerationRepository) UpdateReportStatus(ctx context.Context, id string, status storage.ReportStatus, actionTaken string, moderatorID string) error

UpdateReportStatus mocks the UpdateReportStatus method

type MockNotificationRepository

type MockNotificationRepository struct {
	mock.Mock
}

MockNotificationRepository is a mock implementation of interfaces.NotificationRepository using testify/mock for expectation-based testing.

func NewMockNotificationRepository

func NewMockNotificationRepository() *MockNotificationRepository

NewMockNotificationRepository creates a new mock notification repository

func (*MockNotificationRepository) ClearOldNotifications

func (m *MockNotificationRepository) ClearOldNotifications(ctx context.Context, username string, olderThan time.Time) (int, error)

ClearOldNotifications mocks the ClearOldNotifications method

func (*MockNotificationRepository) ConsolidateNotifications

func (m *MockNotificationRepository) ConsolidateNotifications(ctx context.Context, groupKey string) error

ConsolidateNotifications mocks the ConsolidateNotifications method

func (*MockNotificationRepository) CreateNotification

func (m *MockNotificationRepository) CreateNotification(ctx context.Context, notification *models.Notification) error

CreateNotification mocks the CreateNotification method

func (*MockNotificationRepository) CreateNotifications

func (m *MockNotificationRepository) CreateNotifications(ctx context.Context, notifications []*models.Notification) error

CreateNotifications mocks the CreateNotifications method

func (*MockNotificationRepository) DeleteExpiredNotifications

func (m *MockNotificationRepository) DeleteExpiredNotifications(ctx context.Context, expiredBefore time.Time) (int64, error)

DeleteExpiredNotifications mocks the DeleteExpiredNotifications method

func (*MockNotificationRepository) DeleteNotification

func (m *MockNotificationRepository) DeleteNotification(ctx context.Context, notificationID string) error

DeleteNotification mocks the DeleteNotification method

func (*MockNotificationRepository) DeleteNotificationsByObject

func (m *MockNotificationRepository) DeleteNotificationsByObject(ctx context.Context, objectID string) error

DeleteNotificationsByObject mocks the DeleteNotificationsByObject method

func (*MockNotificationRepository) DeleteNotificationsByType

func (m *MockNotificationRepository) DeleteNotificationsByType(ctx context.Context, userID, notificationType string) error

DeleteNotificationsByType mocks the DeleteNotificationsByType method

func (*MockNotificationRepository) GetNotification

func (m *MockNotificationRepository) GetNotification(ctx context.Context, notificationID string) (*models.Notification, error)

GetNotification mocks the GetNotification method

func (*MockNotificationRepository) GetNotificationCountsByType

func (m *MockNotificationRepository) GetNotificationCountsByType(ctx context.Context, userID string) (map[string]int64, error)

GetNotificationCountsByType mocks the GetNotificationCountsByType method

func (*MockNotificationRepository) GetNotificationGroups

GetNotificationGroups mocks the GetNotificationGroups method

func (*MockNotificationRepository) GetNotificationPreferences

func (m *MockNotificationRepository) GetNotificationPreferences(ctx context.Context, userID string) (*models.NotificationPreferences, error)

GetNotificationPreferences mocks the GetNotificationPreferences method

func (*MockNotificationRepository) GetNotificationsAdvanced

func (m *MockNotificationRepository) GetNotificationsAdvanced(ctx context.Context, userID string, filters map[string]interface{}, pagination interfaces.PaginationOptions) (*interfaces.PaginatedResult[*models.Notification], error)

GetNotificationsAdvanced mocks the GetNotificationsAdvanced method

func (*MockNotificationRepository) GetNotificationsByType

func (m *MockNotificationRepository) GetNotificationsByType(ctx context.Context, userID, notificationType string, opts interfaces.PaginationOptions) (*interfaces.PaginatedResult[*models.Notification], error)

GetNotificationsByType mocks the GetNotificationsByType method

func (*MockNotificationRepository) GetNotificationsFiltered

func (m *MockNotificationRepository) GetNotificationsFiltered(ctx context.Context, username string, filter map[string]interface{}) ([]*models.Notification, string, error)

GetNotificationsFiltered mocks the GetNotificationsFiltered method

func (*MockNotificationRepository) GetPendingPushNotifications

GetPendingPushNotifications mocks the GetPendingPushNotifications method

func (*MockNotificationRepository) GetUnreadNotificationCount

func (m *MockNotificationRepository) GetUnreadNotificationCount(ctx context.Context, userID string) (int64, error)

GetUnreadNotificationCount mocks the GetUnreadNotificationCount method

func (*MockNotificationRepository) GetUnreadNotifications

GetUnreadNotifications mocks the GetUnreadNotifications method

func (*MockNotificationRepository) GetUserNotifications

GetUserNotifications mocks the GetUserNotifications method

func (*MockNotificationRepository) MarkAllNotificationsRead

func (m *MockNotificationRepository) MarkAllNotificationsRead(ctx context.Context, userID string) error

MarkAllNotificationsRead mocks the MarkAllNotificationsRead method

func (*MockNotificationRepository) MarkNotificationPushFailed

func (m *MockNotificationRepository) MarkNotificationPushFailed(ctx context.Context, notificationID, errorMsg string) error

MarkNotificationPushFailed mocks the MarkNotificationPushFailed method

func (*MockNotificationRepository) MarkNotificationPushSent

func (m *MockNotificationRepository) MarkNotificationPushSent(ctx context.Context, notificationID string) error

MarkNotificationPushSent mocks the MarkNotificationPushSent method

func (*MockNotificationRepository) MarkNotificationRead

func (m *MockNotificationRepository) MarkNotificationRead(ctx context.Context, notificationID string) error

MarkNotificationRead mocks the MarkNotificationRead method

func (*MockNotificationRepository) MarkNotificationUnread

func (m *MockNotificationRepository) MarkNotificationUnread(ctx context.Context, notificationID string) error

MarkNotificationUnread mocks the MarkNotificationUnread method

func (*MockNotificationRepository) MarkNotificationsReadByType

func (m *MockNotificationRepository) MarkNotificationsReadByType(ctx context.Context, userID, notificationType string) error

MarkNotificationsReadByType mocks the MarkNotificationsReadByType method

func (*MockNotificationRepository) SetDispatcher

func (m *MockNotificationRepository) SetDispatcher(dispatcher interfaces.NotificationDispatcher)

SetDispatcher mocks the SetDispatcher method

func (*MockNotificationRepository) SetNotificationPreference

func (m *MockNotificationRepository) SetNotificationPreference(ctx context.Context, userID string, preferenceType string, enabled bool) error

SetNotificationPreference mocks the SetNotificationPreference method

func (*MockNotificationRepository) UpdateNotification

func (m *MockNotificationRepository) UpdateNotification(ctx context.Context, notification *models.Notification) error

UpdateNotification mocks the UpdateNotification method

func (*MockNotificationRepository) UpdateNotificationPreferences

func (m *MockNotificationRepository) UpdateNotificationPreferences(ctx context.Context, prefs *models.NotificationPreferences) error

UpdateNotificationPreferences mocks the UpdateNotificationPreferences method

type MockOAuthRepository

type MockOAuthRepository struct {
	mock.Mock
}

MockOAuthRepository is a mock implementation of interfaces.OAuthRepository using testify/mock for expectation-based testing.

func NewMockOAuthRepository

func NewMockOAuthRepository() *MockOAuthRepository

NewMockOAuthRepository creates a new mock OAuth repository

func (*MockOAuthRepository) CreateAuthorizationCode

func (m *MockOAuthRepository) CreateAuthorizationCode(ctx context.Context, code *storage.AuthorizationCode) error

CreateAuthorizationCode mocks the CreateAuthorizationCode method

func (*MockOAuthRepository) CreateOAuthClient

func (m *MockOAuthRepository) CreateOAuthClient(ctx context.Context, client *storage.OAuthClient) error

CreateOAuthClient mocks the CreateOAuthClient method

func (*MockOAuthRepository) CreateRefreshToken

func (m *MockOAuthRepository) CreateRefreshToken(ctx context.Context, token *storage.RefreshToken) error

CreateRefreshToken mocks the CreateRefreshToken method

func (*MockOAuthRepository) DeleteAuthorizationCode

func (m *MockOAuthRepository) DeleteAuthorizationCode(ctx context.Context, code string) error

DeleteAuthorizationCode mocks the DeleteAuthorizationCode method

func (*MockOAuthRepository) DeleteExpiredTokens

func (m *MockOAuthRepository) DeleteExpiredTokens(ctx context.Context) error

DeleteExpiredTokens mocks the DeleteExpiredTokens method

func (*MockOAuthRepository) DeleteOAuthClient

func (m *MockOAuthRepository) DeleteOAuthClient(ctx context.Context, clientID string) error

DeleteOAuthClient mocks the DeleteOAuthClient method

func (*MockOAuthRepository) DeleteOAuthState

func (m *MockOAuthRepository) DeleteOAuthState(ctx context.Context, state string) error

DeleteOAuthState mocks the DeleteOAuthState method

func (*MockOAuthRepository) DeleteRefreshToken

func (m *MockOAuthRepository) DeleteRefreshToken(ctx context.Context, token string) error

DeleteRefreshToken mocks the DeleteRefreshToken method

func (*MockOAuthRepository) GetAuthorizationCode

func (m *MockOAuthRepository) GetAuthorizationCode(ctx context.Context, code string) (*storage.AuthorizationCode, error)

GetAuthorizationCode mocks the GetAuthorizationCode method

func (*MockOAuthRepository) GetOAuthClient

func (m *MockOAuthRepository) GetOAuthClient(ctx context.Context, clientID string) (*storage.OAuthClient, error)

GetOAuthClient mocks the GetOAuthClient method

func (*MockOAuthRepository) GetOAuthState

func (m *MockOAuthRepository) GetOAuthState(ctx context.Context, state string) (*storage.OAuthState, error)

GetOAuthState mocks the GetOAuthState method

func (*MockOAuthRepository) GetRefreshToken

func (m *MockOAuthRepository) GetRefreshToken(ctx context.Context, token string) (*storage.RefreshToken, error)

GetRefreshToken mocks the GetRefreshToken method

func (*MockOAuthRepository) GetUserAppConsent

func (m *MockOAuthRepository) GetUserAppConsent(ctx context.Context, userID, appID string) (*storage.UserAppConsent, error)

GetUserAppConsent mocks the GetUserAppConsent method

func (*MockOAuthRepository) ListOAuthClients

func (m *MockOAuthRepository) ListOAuthClients(ctx context.Context, limit int32, cursor string) ([]*storage.OAuthClient, string, error)

ListOAuthClients mocks the ListOAuthClients method

func (*MockOAuthRepository) SaveUserAppConsent

func (m *MockOAuthRepository) SaveUserAppConsent(ctx context.Context, consent *storage.UserAppConsent) error

SaveUserAppConsent mocks the SaveUserAppConsent method

func (*MockOAuthRepository) StoreOAuthState

func (m *MockOAuthRepository) StoreOAuthState(ctx context.Context, state string, data *storage.OAuthState) error

StoreOAuthState mocks the StoreOAuthState method

func (*MockOAuthRepository) UpdateOAuthClient

func (m *MockOAuthRepository) UpdateOAuthClient(ctx context.Context, clientID string, updates map[string]any) error

UpdateOAuthClient mocks the UpdateOAuthClient method

type MockObjectRepository

type MockObjectRepository struct {
	mock.Mock
}

MockObjectRepository is a mock implementation of interfaces.ObjectRepository using testify/mock for expectation-based testing.

func NewMockObjectRepository

func NewMockObjectRepository() *MockObjectRepository

NewMockObjectRepository creates a new mock object repository

func (*MockObjectRepository) AddToCollection

func (m *MockObjectRepository) AddToCollection(ctx context.Context, collection string, item *storage.CollectionItem) error

AddToCollection mocks the AddToCollection method

func (*MockObjectRepository) CleanupExpiredTombstones

func (m *MockObjectRepository) CleanupExpiredTombstones(ctx context.Context, batchSize int) (int, error)

CleanupExpiredTombstones mocks the CleanupExpiredTombstones method

func (*MockObjectRepository) CountCollectionItems

func (m *MockObjectRepository) CountCollectionItems(ctx context.Context, collection string) (int, error)

CountCollectionItems mocks the CountCollectionItems method

func (*MockObjectRepository) CountObjectReplies

func (m *MockObjectRepository) CountObjectReplies(ctx context.Context, objectID string) (int, error)

CountObjectReplies mocks the CountObjectReplies method

func (*MockObjectRepository) CountQuotes

func (m *MockObjectRepository) CountQuotes(ctx context.Context, noteID string) (int, error)

CountQuotes mocks the CountQuotes method

func (*MockObjectRepository) CountReplies

func (m *MockObjectRepository) CountReplies(ctx context.Context, objectID string) (int, error)

CountReplies mocks the CountReplies method

func (*MockObjectRepository) CountWithdrawnQuotes

func (m *MockObjectRepository) CountWithdrawnQuotes(ctx context.Context, noteID string) (int, error)

CountWithdrawnQuotes mocks the CountWithdrawnQuotes method

func (*MockObjectRepository) CreateObject

func (m *MockObjectRepository) CreateObject(ctx context.Context, object any) error

CreateObject mocks the CreateObject method

func (*MockObjectRepository) CreateQuoteRelationship

func (m *MockObjectRepository) CreateQuoteRelationship(ctx context.Context, quote *storage.QuoteRelationship) error

CreateQuoteRelationship mocks the CreateQuoteRelationship method

func (*MockObjectRepository) CreateTombstone

func (m *MockObjectRepository) CreateTombstone(ctx context.Context, tombstone *models.Tombstone) error

CreateTombstone mocks the CreateTombstone method

func (*MockObjectRepository) CreateUpdateHistory

func (m *MockObjectRepository) CreateUpdateHistory(ctx context.Context, history *storage.UpdateHistory) error

CreateUpdateHistory mocks the CreateUpdateHistory method

func (*MockObjectRepository) DeleteObject

func (m *MockObjectRepository) DeleteObject(ctx context.Context, objectID string) error

DeleteObject mocks the DeleteObject method

func (*MockObjectRepository) GetCollectionItems

func (m *MockObjectRepository) GetCollectionItems(ctx context.Context, collection string, limit int, cursor string) ([]*storage.CollectionItem, string, error)

GetCollectionItems mocks the GetCollectionItems method

func (*MockObjectRepository) GetMissingReplies

func (m *MockObjectRepository) GetMissingReplies(ctx context.Context, statusID string) ([]*storage.StatusSearchResult, error)

GetMissingReplies mocks the GetMissingReplies method

func (*MockObjectRepository) GetObject

func (m *MockObjectRepository) GetObject(ctx context.Context, id string) (any, error)

GetObject mocks the GetObject method

func (*MockObjectRepository) GetObjectHistory

func (m *MockObjectRepository) GetObjectHistory(ctx context.Context, objectID string) ([]*storage.UpdateHistory, error)

GetObjectHistory mocks the GetObjectHistory method

func (*MockObjectRepository) GetObjectsByActor

func (m *MockObjectRepository) GetObjectsByActor(ctx context.Context, actorID string, cursor string, limit int) ([]any, string, error)

GetObjectsByActor mocks the GetObjectsByActor method

func (*MockObjectRepository) GetQuoteType

func (m *MockObjectRepository) GetQuoteType(ctx context.Context, statusID string) (string, error)

GetQuoteType mocks the GetQuoteType method

func (*MockObjectRepository) GetQuotesForNote

func (m *MockObjectRepository) GetQuotesForNote(ctx context.Context, noteID string, limit int, cursor string) ([]*storage.QuoteRelationship, string, error)

GetQuotesForNote mocks the GetQuotesForNote method

func (*MockObjectRepository) GetQuotesOfStatus

func (m *MockObjectRepository) GetQuotesOfStatus(ctx context.Context, statusID string, limit int) ([]*storage.StatusSearchResult, error)

GetQuotesOfStatus mocks the GetQuotesOfStatus method

func (*MockObjectRepository) GetReplies

func (m *MockObjectRepository) GetReplies(ctx context.Context, objectID string, limit int, cursor string) ([]any, string, error)

GetReplies mocks the GetReplies method

func (*MockObjectRepository) GetReplyCount

func (m *MockObjectRepository) GetReplyCount(ctx context.Context, statusID string) (int64, error)

GetReplyCount mocks the GetReplyCount method

func (*MockObjectRepository) GetStatus

func (m *MockObjectRepository) GetStatus(ctx context.Context, statusID string) (any, error)

GetStatus mocks the GetStatus method

func (*MockObjectRepository) GetStatusReplyCount

func (m *MockObjectRepository) GetStatusReplyCount(ctx context.Context, statusID string) (int, error)

GetStatusReplyCount mocks the GetStatusReplyCount method

func (*MockObjectRepository) GetThreadContext

func (m *MockObjectRepository) GetThreadContext(ctx context.Context, statusID string) (*storage.ThreadContext, error)

GetThreadContext mocks the GetThreadContext method

func (*MockObjectRepository) GetTombstone

func (m *MockObjectRepository) GetTombstone(ctx context.Context, objectID string) (*models.Tombstone, error)

GetTombstone mocks the GetTombstone method

func (*MockObjectRepository) GetTombstonesByActor

func (m *MockObjectRepository) GetTombstonesByActor(ctx context.Context, actorID string, limit int, cursor string) ([]*models.Tombstone, string, error)

GetTombstonesByActor mocks the GetTombstonesByActor method

func (*MockObjectRepository) GetTombstonesByType

func (m *MockObjectRepository) GetTombstonesByType(ctx context.Context, formerType string, limit int, cursor string) ([]*models.Tombstone, string, error)

GetTombstonesByType mocks the GetTombstonesByType method

func (*MockObjectRepository) GetUpdateHistory

func (m *MockObjectRepository) GetUpdateHistory(ctx context.Context, objectID string, limit int) ([]*storage.UpdateHistory, error)

GetUpdateHistory mocks the GetUpdateHistory method

func (*MockObjectRepository) GetUserStatusCount

func (m *MockObjectRepository) GetUserStatusCount(ctx context.Context, userID string) (int, error)

GetUserStatusCount mocks the GetUserStatusCount method

func (*MockObjectRepository) IncrementReplyCount

func (m *MockObjectRepository) IncrementReplyCount(ctx context.Context, objectID string) error

IncrementReplyCount mocks the IncrementReplyCount method

func (*MockObjectRepository) IsInCollection

func (m *MockObjectRepository) IsInCollection(ctx context.Context, collection, itemID string) (bool, error)

IsInCollection mocks the IsInCollection method

func (*MockObjectRepository) IsQuoteAllowed

func (m *MockObjectRepository) IsQuoteAllowed(ctx context.Context, statusID, quoterID string) (bool, error)

IsQuoteAllowed mocks the IsQuoteAllowed method

func (*MockObjectRepository) IsQuoted

func (m *MockObjectRepository) IsQuoted(ctx context.Context, actorID, noteID string) (bool, error)

IsQuoted mocks the IsQuoted method

func (*MockObjectRepository) IsTombstoned

func (m *MockObjectRepository) IsTombstoned(ctx context.Context, objectID string) (bool, error)

IsTombstoned mocks the IsTombstoned method

func (*MockObjectRepository) IsWithdrawnFromQuotes

func (m *MockObjectRepository) IsWithdrawnFromQuotes(ctx context.Context, statusID string) (bool, error)

IsWithdrawnFromQuotes mocks the IsWithdrawnFromQuotes method

func (*MockObjectRepository) MarkThreadAsSynced

func (m *MockObjectRepository) MarkThreadAsSynced(ctx context.Context, statusID string) error

MarkThreadAsSynced mocks the MarkThreadAsSynced method

func (*MockObjectRepository) RemoveFromCollection

func (m *MockObjectRepository) RemoveFromCollection(ctx context.Context, collection, itemID string) error

RemoveFromCollection mocks the RemoveFromCollection method

func (*MockObjectRepository) ReplaceObjectWithTombstone

func (m *MockObjectRepository) ReplaceObjectWithTombstone(ctx context.Context, objectID, formerType, deletedBy string) error

ReplaceObjectWithTombstone mocks the ReplaceObjectWithTombstone method

func (*MockObjectRepository) SyncMissingRepliesFromRemote

func (m *MockObjectRepository) SyncMissingRepliesFromRemote(ctx context.Context, statusID string) ([]*storage.StatusSearchResult, error)

SyncMissingRepliesFromRemote mocks the SyncMissingRepliesFromRemote method

func (*MockObjectRepository) SyncThreadFromRemote

func (m *MockObjectRepository) SyncThreadFromRemote(ctx context.Context, statusID string) (*storage.StatusSearchResult, error)

SyncThreadFromRemote mocks the SyncThreadFromRemote method

func (*MockObjectRepository) TombstoneObject

func (m *MockObjectRepository) TombstoneObject(ctx context.Context, objectID string, deletedBy string) error

TombstoneObject mocks the TombstoneObject method

func (*MockObjectRepository) UpdateObject

func (m *MockObjectRepository) UpdateObject(ctx context.Context, object any) error

UpdateObject mocks the UpdateObject method

func (*MockObjectRepository) UpdateObjectWithHistory

func (m *MockObjectRepository) UpdateObjectWithHistory(ctx context.Context, object any, updatedBy string) error

UpdateObjectWithHistory mocks the UpdateObjectWithHistory method

func (*MockObjectRepository) UpdateQuotePermissions

func (m *MockObjectRepository) UpdateQuotePermissions(ctx context.Context, statusID string, permissions *storage.QuotePermissions) error

UpdateQuotePermissions mocks the UpdateQuotePermissions method

func (*MockObjectRepository) WithdrawQuote

func (m *MockObjectRepository) WithdrawQuote(ctx context.Context, quoteNoteID string) error

WithdrawQuote mocks the WithdrawQuote method

func (*MockObjectRepository) WithdrawStatusFromQuotes

func (m *MockObjectRepository) WithdrawStatusFromQuotes(ctx context.Context, statusID string) error

WithdrawStatusFromQuotes mocks the WithdrawStatusFromQuotes method

type MockPollRepository

type MockPollRepository struct {
	mock.Mock
}

MockPollRepository is a mock implementation of interfaces.PollRepository using testify/mock for expectation-based testing.

func NewMockPollRepository

func NewMockPollRepository() *MockPollRepository

NewMockPollRepository creates a new mock poll repository

func (*MockPollRepository) CreatePoll

func (m *MockPollRepository) CreatePoll(ctx context.Context, poll *storage.Poll) error

CreatePoll mocks the CreatePoll method

func (*MockPollRepository) GetPoll

func (m *MockPollRepository) GetPoll(ctx context.Context, pollID string) (*storage.Poll, error)

GetPoll mocks the GetPoll method

func (*MockPollRepository) GetPollByStatusID

func (m *MockPollRepository) GetPollByStatusID(ctx context.Context, statusID string) (*storage.Poll, error)

GetPollByStatusID mocks the GetPollByStatusID method

func (*MockPollRepository) GetPollVotes

func (m *MockPollRepository) GetPollVotes(ctx context.Context, pollID string) (map[string][]int, error)

GetPollVotes mocks the GetPollVotes method

func (*MockPollRepository) HasUserVoted

func (m *MockPollRepository) HasUserVoted(ctx context.Context, pollID string, userID string) (bool, []int, error)

HasUserVoted mocks the HasUserVoted method

func (*MockPollRepository) VoteOnPoll

func (m *MockPollRepository) VoteOnPoll(ctx context.Context, pollID string, voterID string, choices []int) error

VoteOnPoll mocks the VoteOnPoll method

type MockPublicationMemberRepository

type MockPublicationMemberRepository struct {
	mock.Mock
}

MockPublicationMemberRepository is a mock implementation of interfaces.PublicationMemberRepository using testify/mock for expectation-based testing.

func NewMockPublicationMemberRepository

func NewMockPublicationMemberRepository() *MockPublicationMemberRepository

NewMockPublicationMemberRepository creates a new mock publication member repository

func (*MockPublicationMemberRepository) CreateMember

CreateMember mocks the CreateMember method

func (*MockPublicationMemberRepository) DeleteMember

func (m *MockPublicationMemberRepository) DeleteMember(ctx context.Context, publicationID, userID string) error

DeleteMember mocks the DeleteMember method

func (*MockPublicationMemberRepository) GetMember

func (m *MockPublicationMemberRepository) GetMember(ctx context.Context, publicationID, userID string) (*models.PublicationMember, error)

GetMember mocks the GetMember method

func (*MockPublicationMemberRepository) ListMembers

func (m *MockPublicationMemberRepository) ListMembers(ctx context.Context, publicationID string) ([]*models.PublicationMember, error)

ListMembers mocks the ListMembers method

func (*MockPublicationMemberRepository) ListMembershipsForUserPaginated

func (m *MockPublicationMemberRepository) ListMembershipsForUserPaginated(ctx context.Context, userID string, limit int, cursor string) ([]*models.PublicationMember, string, error)

ListMembershipsForUserPaginated mocks the ListMembershipsForUserPaginated method

func (*MockPublicationMemberRepository) Update

Update mocks the Update method

type MockPublicationRepository

type MockPublicationRepository struct {
	mock.Mock
}

MockPublicationRepository is a mock implementation of interfaces.PublicationRepository using testify/mock for expectation-based testing.

func NewMockPublicationRepository

func NewMockPublicationRepository() *MockPublicationRepository

NewMockPublicationRepository creates a new mock publication repository

func (*MockPublicationRepository) CreatePublication

func (m *MockPublicationRepository) CreatePublication(ctx context.Context, publication *models.Publication) error

CreatePublication mocks the CreatePublication method

func (*MockPublicationRepository) Delete

func (m *MockPublicationRepository) Delete(ctx context.Context, pk, sk string) error

Delete mocks the Delete method

func (*MockPublicationRepository) GetDB

GetDB mocks the GetDB method

func (*MockPublicationRepository) GetPublication

func (m *MockPublicationRepository) GetPublication(ctx context.Context, id string) (*models.Publication, error)

GetPublication mocks the GetPublication method

func (*MockPublicationRepository) Update

func (m *MockPublicationRepository) Update(ctx context.Context, publication *models.Publication) error

Update mocks the Update method

type MockPushSubscriptionRepository

type MockPushSubscriptionRepository struct {
	mock.Mock
}

MockPushSubscriptionRepository is a mock implementation of interfaces.PushSubscriptionRepository using testify/mock for expectation-based testing.

func NewMockPushSubscriptionRepository

func NewMockPushSubscriptionRepository() *MockPushSubscriptionRepository

NewMockPushSubscriptionRepository creates a new mock push subscription repository

func (*MockPushSubscriptionRepository) CreatePushSubscription

func (m *MockPushSubscriptionRepository) CreatePushSubscription(ctx context.Context, username string, subscription *storage.PushSubscription) error

CreatePushSubscription mocks the CreatePushSubscription method

func (*MockPushSubscriptionRepository) DeleteAllPushSubscriptions

func (m *MockPushSubscriptionRepository) DeleteAllPushSubscriptions(ctx context.Context, username string) error

DeleteAllPushSubscriptions mocks the DeleteAllPushSubscriptions method

func (*MockPushSubscriptionRepository) DeletePushSubscription

func (m *MockPushSubscriptionRepository) DeletePushSubscription(ctx context.Context, username, subscriptionID string) error

DeletePushSubscription mocks the DeletePushSubscription method

func (*MockPushSubscriptionRepository) GetPushSubscription

func (m *MockPushSubscriptionRepository) GetPushSubscription(ctx context.Context, username, subscriptionID string) (*storage.PushSubscription, error)

GetPushSubscription mocks the GetPushSubscription method

func (*MockPushSubscriptionRepository) GetUserPushSubscriptions

func (m *MockPushSubscriptionRepository) GetUserPushSubscriptions(ctx context.Context, username string) ([]*storage.PushSubscription, error)

GetUserPushSubscriptions mocks the GetUserPushSubscriptions method

func (*MockPushSubscriptionRepository) GetVAPIDKeys

GetVAPIDKeys mocks the GetVAPIDKeys method

func (*MockPushSubscriptionRepository) SetVAPIDKeys

SetVAPIDKeys mocks the SetVAPIDKeys method

func (*MockPushSubscriptionRepository) UpdatePushSubscription

func (m *MockPushSubscriptionRepository) UpdatePushSubscription(ctx context.Context, username, subscriptionID string, alerts storage.PushSubscriptionAlerts) error

UpdatePushSubscription mocks the UpdatePushSubscription method

type MockQuoteRepository

type MockQuoteRepository struct {
	mock.Mock
}

MockQuoteRepository is a mock implementation of interfaces.QuoteRepository using testify/mock for expectation-based testing.

func NewMockQuoteRepository

func NewMockQuoteRepository() *MockQuoteRepository

NewMockQuoteRepository creates a new mock quote repository

func (*MockQuoteRepository) CreateQuotePermissions

func (m *MockQuoteRepository) CreateQuotePermissions(ctx context.Context, permissions *models.QuotePermissions) error

CreateQuotePermissions mocks the CreateQuotePermissions method

func (*MockQuoteRepository) CreateQuoteRelationship

func (m *MockQuoteRepository) CreateQuoteRelationship(ctx context.Context, relationship *models.QuoteRelationship) error

CreateQuoteRelationship mocks the CreateQuoteRelationship method

func (*MockQuoteRepository) DecrementQuoteCount

func (m *MockQuoteRepository) DecrementQuoteCount(ctx context.Context, statusID string) error

DecrementQuoteCount mocks the DecrementQuoteCount method

func (*MockQuoteRepository) DeleteQuotePermissions

func (m *MockQuoteRepository) DeleteQuotePermissions(ctx context.Context, username string) error

DeleteQuotePermissions mocks the DeleteQuotePermissions method

func (*MockQuoteRepository) DeleteQuoteRelationship

func (m *MockQuoteRepository) DeleteQuoteRelationship(ctx context.Context, quoteStatusID, targetStatusID string) error

DeleteQuoteRelationship mocks the DeleteQuoteRelationship method

func (*MockQuoteRepository) GetQuoteCount

func (m *MockQuoteRepository) GetQuoteCount(ctx context.Context, statusID string) (int64, error)

GetQuoteCount mocks the GetQuoteCount method

func (*MockQuoteRepository) GetQuotePermissions

func (m *MockQuoteRepository) GetQuotePermissions(ctx context.Context, username string) (*models.QuotePermissions, error)

GetQuotePermissions mocks the GetQuotePermissions method

func (*MockQuoteRepository) GetQuoteRelationship

func (m *MockQuoteRepository) GetQuoteRelationship(ctx context.Context, quoteStatusID, targetStatusID string) (*models.QuoteRelationship, error)

GetQuoteRelationship mocks the GetQuoteRelationship method

func (*MockQuoteRepository) GetQuotesByUser

GetQuotesByUser mocks the GetQuotesByUser method

func (*MockQuoteRepository) GetQuotesForStatus

GetQuotesForStatus mocks the GetQuotesForStatus method

func (*MockQuoteRepository) IncrementQuoteCount

func (m *MockQuoteRepository) IncrementQuoteCount(ctx context.Context, statusID string) error

IncrementQuoteCount mocks the IncrementQuoteCount method

func (*MockQuoteRepository) UpdateQuotePermissions

func (m *MockQuoteRepository) UpdateQuotePermissions(ctx context.Context, permissions *models.QuotePermissions) error

UpdateQuotePermissions mocks the UpdateQuotePermissions method

func (*MockQuoteRepository) UpdateQuoteRelationship

func (m *MockQuoteRepository) UpdateQuoteRelationship(ctx context.Context, relationship *models.QuoteRelationship) error

UpdateQuoteRelationship mocks the UpdateQuoteRelationship method

func (*MockQuoteRepository) WithdrawQuotes

func (m *MockQuoteRepository) WithdrawQuotes(ctx context.Context, noteID, userID string) (int, error)

WithdrawQuotes mocks the WithdrawQuotes method

type MockRateLimitRepository

type MockRateLimitRepository struct {
	mock.Mock
}

MockRateLimitRepository is a mock implementation of interfaces.RateLimitRepository using testify/mock for expectation-based testing.

func NewMockRateLimitRepository

func NewMockRateLimitRepository() *MockRateLimitRepository

NewMockRateLimitRepository creates a new mock rate limit repository

func (*MockRateLimitRepository) CheckAPIRateLimit

func (m *MockRateLimitRepository) CheckAPIRateLimit(ctx context.Context, userID, endpoint string, limit int, window time.Duration) error

CheckAPIRateLimit mocks the CheckAPIRateLimit method

func (*MockRateLimitRepository) CheckCommunityNoteRateLimit

func (m *MockRateLimitRepository) CheckCommunityNoteRateLimit(ctx context.Context, userID string, limit int) (bool, int, error)

CheckCommunityNoteRateLimit mocks the CheckCommunityNoteRateLimit method

func (*MockRateLimitRepository) CheckFederationRateLimit

func (m *MockRateLimitRepository) CheckFederationRateLimit(ctx context.Context, domain, endpoint string, limit int, window time.Duration) error

CheckFederationRateLimit mocks the CheckFederationRateLimit method

func (*MockRateLimitRepository) ClearLoginAttempts

func (m *MockRateLimitRepository) ClearLoginAttempts(ctx context.Context, identifier string) error

ClearLoginAttempts mocks the ClearLoginAttempts method

func (*MockRateLimitRepository) GetAPIRateLimitInfo

func (m *MockRateLimitRepository) GetAPIRateLimitInfo(ctx context.Context, userID, endpoint string, limit int, window time.Duration) (remaining int, resetTime time.Time, err error)

GetAPIRateLimitInfo mocks the GetAPIRateLimitInfo method

func (*MockRateLimitRepository) GetFederationRateLimitInfo

func (m *MockRateLimitRepository) GetFederationRateLimitInfo(ctx context.Context, domain, endpoint string, limit int, window time.Duration) (remaining int, resetTime time.Time, err error)

GetFederationRateLimitInfo mocks the GetFederationRateLimitInfo method

func (*MockRateLimitRepository) GetLoginAttemptCount

func (m *MockRateLimitRepository) GetLoginAttemptCount(ctx context.Context, identifier string, since time.Time) (int, error)

GetLoginAttemptCount mocks the GetLoginAttemptCount method

func (*MockRateLimitRepository) GetViolationCount

func (m *MockRateLimitRepository) GetViolationCount(ctx context.Context, userID, domain string, since time.Duration) (int, error)

GetViolationCount mocks the GetViolationCount method

func (*MockRateLimitRepository) IsDomainBlocked

func (m *MockRateLimitRepository) IsDomainBlocked(ctx context.Context, domain string) (bool, time.Time, error)

IsDomainBlocked mocks the IsDomainBlocked method

func (*MockRateLimitRepository) IsRateLimited

func (m *MockRateLimitRepository) IsRateLimited(ctx context.Context, identifier string) (bool, time.Time, error)

IsRateLimited mocks the IsRateLimited method

func (*MockRateLimitRepository) IsUserBlocked

func (m *MockRateLimitRepository) IsUserBlocked(ctx context.Context, userID string) (bool, time.Time, error)

IsUserBlocked mocks the IsUserBlocked method

func (*MockRateLimitRepository) RecordLoginAttempt

func (m *MockRateLimitRepository) RecordLoginAttempt(ctx context.Context, identifier string, success bool) error

RecordLoginAttempt mocks the RecordLoginAttempt method

type MockRecoveryRepository

type MockRecoveryRepository struct {
	mock.Mock
}

MockRecoveryRepository is a mock implementation of interfaces.RecoveryRepository using testify/mock for expectation-based testing.

func NewMockRecoveryRepository

func NewMockRecoveryRepository() *MockRecoveryRepository

NewMockRecoveryRepository creates a new mock recovery repository

func (*MockRecoveryRepository) CountUnusedRecoveryCodes

func (m *MockRecoveryRepository) CountUnusedRecoveryCodes(ctx context.Context, username string) (int, error)

CountUnusedRecoveryCodes mocks the CountUnusedRecoveryCodes method

func (*MockRecoveryRepository) DeleteAllRecoveryCodes

func (m *MockRecoveryRepository) DeleteAllRecoveryCodes(ctx context.Context, username string) error

DeleteAllRecoveryCodes mocks the DeleteAllRecoveryCodes method

func (*MockRecoveryRepository) DeleteRecoveryRequest

func (m *MockRecoveryRepository) DeleteRecoveryRequest(ctx context.Context, requestID string) error

DeleteRecoveryRequest mocks the DeleteRecoveryRequest method

func (*MockRecoveryRepository) DeleteRecoveryToken

func (m *MockRecoveryRepository) DeleteRecoveryToken(ctx context.Context, key string) error

DeleteRecoveryToken mocks the DeleteRecoveryToken method

func (*MockRecoveryRepository) DeleteTrustee

func (m *MockRecoveryRepository) DeleteTrustee(ctx context.Context, username, trusteeActorID string) error

DeleteTrustee mocks the DeleteTrustee method

func (*MockRecoveryRepository) GetActiveRecoveryRequests

func (m *MockRecoveryRepository) GetActiveRecoveryRequests(ctx context.Context, username string) ([]*storage.SocialRecoveryRequest, error)

GetActiveRecoveryRequests mocks the GetActiveRecoveryRequests method

func (*MockRecoveryRepository) GetRecoveryCodes

func (m *MockRecoveryRepository) GetRecoveryCodes(ctx context.Context, username string) ([]*storage.RecoveryCodeItem, error)

GetRecoveryCodes mocks the GetRecoveryCodes method

func (*MockRecoveryRepository) GetRecoveryRequest

func (m *MockRecoveryRepository) GetRecoveryRequest(ctx context.Context, requestID string) (*storage.SocialRecoveryRequest, error)

GetRecoveryRequest mocks the GetRecoveryRequest method

func (*MockRecoveryRepository) GetRecoveryToken

func (m *MockRecoveryRepository) GetRecoveryToken(ctx context.Context, key string) (map[string]any, error)

GetRecoveryToken mocks the GetRecoveryToken method

func (*MockRecoveryRepository) GetTrustees

func (m *MockRecoveryRepository) GetTrustees(ctx context.Context, username string) ([]*storage.TrusteeConfig, error)

GetTrustees mocks the GetTrustees method

func (*MockRecoveryRepository) MarkRecoveryCodeUsed

func (m *MockRecoveryRepository) MarkRecoveryCodeUsed(ctx context.Context, username, codeHash string) error

MarkRecoveryCodeUsed mocks the MarkRecoveryCodeUsed method

func (*MockRecoveryRepository) StoreRecoveryCode

func (m *MockRecoveryRepository) StoreRecoveryCode(ctx context.Context, username string, code *storage.RecoveryCodeItem) error

StoreRecoveryCode mocks the StoreRecoveryCode method

func (*MockRecoveryRepository) StoreRecoveryRequest

func (m *MockRecoveryRepository) StoreRecoveryRequest(ctx context.Context, request *storage.SocialRecoveryRequest) error

StoreRecoveryRequest mocks the StoreRecoveryRequest method

func (*MockRecoveryRepository) StoreRecoveryToken

func (m *MockRecoveryRepository) StoreRecoveryToken(ctx context.Context, key string, data map[string]any) error

StoreRecoveryToken mocks the StoreRecoveryToken method

func (*MockRecoveryRepository) StoreTrustee

func (m *MockRecoveryRepository) StoreTrustee(ctx context.Context, username string, trustee *storage.TrusteeConfig) error

StoreTrustee mocks the StoreTrustee method

func (*MockRecoveryRepository) UpdateRecoveryRequest

func (m *MockRecoveryRepository) UpdateRecoveryRequest(ctx context.Context, request *storage.SocialRecoveryRequest) error

UpdateRecoveryRequest mocks the UpdateRecoveryRequest method

func (*MockRecoveryRepository) UpdateTrusteeConfirmed

func (m *MockRecoveryRepository) UpdateTrusteeConfirmed(ctx context.Context, username, trusteeActorID string, confirmed bool) error

UpdateTrusteeConfirmed mocks the UpdateTrusteeConfirmed method

type MockRelationshipRepository

type MockRelationshipRepository struct {
	mock.Mock
}

MockRelationshipRepository is a mock implementation of interfaces.RelationshipRepository using testify/mock for expectation-based testing.

func NewMockRelationshipRepository

func NewMockRelationshipRepository() *MockRelationshipRepository

NewMockRelationshipRepository creates a new mock relationship repository

func (*MockRelationshipRepository) AcceptFollowRequest

func (m *MockRelationshipRepository) AcceptFollowRequest(ctx context.Context, followerUsername, followingUsername string) error

AcceptFollowRequest mocks the AcceptFollowRequest method

func (*MockRelationshipRepository) AddToCollection

func (m *MockRelationshipRepository) AddToCollection(ctx context.Context, collection string, item *storage.CollectionItem) error

AddToCollection mocks the AddToCollection method

func (*MockRelationshipRepository) BlockUser

func (m *MockRelationshipRepository) BlockUser(ctx context.Context, blockerID, blockedID string) error

BlockUser mocks the BlockUser method

func (*MockRelationshipRepository) ClearCollection

func (m *MockRelationshipRepository) ClearCollection(ctx context.Context, collection string) error

ClearCollection mocks the ClearCollection method

func (*MockRelationshipRepository) CountBlockedUsers

func (m *MockRelationshipRepository) CountBlockedUsers(ctx context.Context, blockerActor string) (int, error)

CountBlockedUsers mocks the CountBlockedUsers method

func (*MockRelationshipRepository) CountCollectionItems

func (m *MockRelationshipRepository) CountCollectionItems(ctx context.Context, collection string) (int, error)

CountCollectionItems mocks the CountCollectionItems method

func (*MockRelationshipRepository) CountFollowers

func (m *MockRelationshipRepository) CountFollowers(ctx context.Context, username string) (int, error)

CountFollowers mocks the CountFollowers method

func (*MockRelationshipRepository) CountFollowing

func (m *MockRelationshipRepository) CountFollowing(ctx context.Context, username string) (int, error)

CountFollowing mocks the CountFollowing method

func (*MockRelationshipRepository) CountMutedUsers

func (m *MockRelationshipRepository) CountMutedUsers(ctx context.Context, muterActor string) (int, error)

CountMutedUsers mocks the CountMutedUsers method

func (*MockRelationshipRepository) CountRelationshipsByDomain

func (m *MockRelationshipRepository) CountRelationshipsByDomain(ctx context.Context, domain string) (followers, following int, err error)

CountRelationshipsByDomain mocks the CountRelationshipsByDomain method

func (*MockRelationshipRepository) CountUsersWhoBlocked

func (m *MockRelationshipRepository) CountUsersWhoBlocked(ctx context.Context, blockedActor string) (int, error)

CountUsersWhoBlocked mocks the CountUsersWhoBlocked method

func (*MockRelationshipRepository) CountUsersWhoMuted

func (m *MockRelationshipRepository) CountUsersWhoMuted(ctx context.Context, mutedActor string) (int, error)

CountUsersWhoMuted mocks the CountUsersWhoMuted method

func (*MockRelationshipRepository) CreateBlock

func (m *MockRelationshipRepository) CreateBlock(ctx context.Context, blockerActor, blockedActor, activityID string) error

CreateBlock mocks the CreateBlock method

func (*MockRelationshipRepository) CreateEndorsement

func (m *MockRelationshipRepository) CreateEndorsement(ctx context.Context, endorsement *storage.AccountPin) error

CreateEndorsement mocks the CreateEndorsement method

func (*MockRelationshipRepository) CreateMove

func (m *MockRelationshipRepository) CreateMove(ctx context.Context, move *storage.Move) error

CreateMove mocks the CreateMove method

func (*MockRelationshipRepository) CreateMute

func (m *MockRelationshipRepository) CreateMute(ctx context.Context, muterActor, mutedActor, activityID string, hideNotifications bool, duration *time.Duration) error

CreateMute mocks the CreateMute method

func (*MockRelationshipRepository) CreateRelationship

func (m *MockRelationshipRepository) CreateRelationship(ctx context.Context, followerUsername, followingUsername, activityID string) error

CreateRelationship mocks the CreateRelationship method

func (*MockRelationshipRepository) DeleteBlock

func (m *MockRelationshipRepository) DeleteBlock(ctx context.Context, blockerActor, blockedActor string) error

DeleteBlock mocks the DeleteBlock method

func (*MockRelationshipRepository) DeleteEndorsement

func (m *MockRelationshipRepository) DeleteEndorsement(ctx context.Context, endorserID, endorsedID string) error

DeleteEndorsement mocks the DeleteEndorsement method

func (*MockRelationshipRepository) DeleteMute

func (m *MockRelationshipRepository) DeleteMute(ctx context.Context, muterActor, mutedActor string) error

DeleteMute mocks the DeleteMute method

func (*MockRelationshipRepository) DeleteRelationship

func (m *MockRelationshipRepository) DeleteRelationship(ctx context.Context, followerUsername, followingUsername string) error

DeleteRelationship mocks the DeleteRelationship method

func (*MockRelationshipRepository) GetAccountMoves

func (m *MockRelationshipRepository) GetAccountMoves(ctx context.Context, actor string) ([]*storage.Move, error)

GetAccountMoves mocks the GetAccountMoves method

func (*MockRelationshipRepository) GetBlock

func (m *MockRelationshipRepository) GetBlock(ctx context.Context, blockerActor, blockedActor string) (*storage.Block, error)

GetBlock mocks the GetBlock method

func (*MockRelationshipRepository) GetBlockedUsers

func (m *MockRelationshipRepository) GetBlockedUsers(ctx context.Context, blockerActor string, limit int, cursor string) ([]string, string, error)

GetBlockedUsers mocks the GetBlockedUsers method

func (*MockRelationshipRepository) GetCollectionItems

func (m *MockRelationshipRepository) GetCollectionItems(ctx context.Context, collection string, limit int, cursor string) ([]*storage.CollectionItem, string, error)

GetCollectionItems mocks the GetCollectionItems method

func (*MockRelationshipRepository) GetEndorsements

func (m *MockRelationshipRepository) GetEndorsements(ctx context.Context, userID string, limit int, cursor string) ([]*storage.AccountPin, string, error)

GetEndorsements mocks the GetEndorsements method

func (*MockRelationshipRepository) GetFollowRequest

func (m *MockRelationshipRepository) GetFollowRequest(ctx context.Context, followerID, targetID string) (*storage.RelationshipRecord, error)

GetFollowRequest mocks the GetFollowRequest method

func (*MockRelationshipRepository) GetFollowerCount

func (m *MockRelationshipRepository) GetFollowerCount(ctx context.Context, userID string) (int64, error)

GetFollowerCount mocks the GetFollowerCount method

func (*MockRelationshipRepository) GetFollowers

func (m *MockRelationshipRepository) GetFollowers(ctx context.Context, username string, limit int, cursor string) ([]string, string, error)

GetFollowers mocks the GetFollowers method

func (*MockRelationshipRepository) GetFollowing

func (m *MockRelationshipRepository) GetFollowing(ctx context.Context, username string, limit int, cursor string) ([]string, string, error)

GetFollowing mocks the GetFollowing method

func (*MockRelationshipRepository) GetFollowingCount

func (m *MockRelationshipRepository) GetFollowingCount(ctx context.Context, userID string) (int64, error)

GetFollowingCount mocks the GetFollowingCount method

func (*MockRelationshipRepository) GetMove

func (m *MockRelationshipRepository) GetMove(ctx context.Context, actor string) (*storage.Move, error)

GetMove mocks the GetMove method

func (*MockRelationshipRepository) GetMoveByTarget

func (m *MockRelationshipRepository) GetMoveByTarget(ctx context.Context, target string) ([]*storage.Move, error)

GetMoveByTarget mocks the GetMoveByTarget method

func (*MockRelationshipRepository) GetMute

func (m *MockRelationshipRepository) GetMute(ctx context.Context, muterActor, mutedActor string) (*storage.Mute, error)

GetMute mocks the GetMute method

func (*MockRelationshipRepository) GetMutedUsers

func (m *MockRelationshipRepository) GetMutedUsers(ctx context.Context, muterActor string, limit int, cursor string) ([]string, string, error)

GetMutedUsers mocks the GetMutedUsers method

func (*MockRelationshipRepository) GetPendingFollowRequests

func (m *MockRelationshipRepository) GetPendingFollowRequests(ctx context.Context, username string, limit int, cursor string) ([]string, string, error)

GetPendingFollowRequests mocks the GetPendingFollowRequests method

func (*MockRelationshipRepository) GetPendingMoves

func (m *MockRelationshipRepository) GetPendingMoves(ctx context.Context, limit int) ([]*storage.Move, error)

GetPendingMoves mocks the GetPendingMoves method

func (*MockRelationshipRepository) GetRelationship

func (m *MockRelationshipRepository) GetRelationship(ctx context.Context, followerUsername, followingUsername string) (*models.RelationshipRecord, error)

GetRelationship mocks the GetRelationship method

func (*MockRelationshipRepository) GetRelationshipNote

func (m *MockRelationshipRepository) GetRelationshipNote(ctx context.Context, userID, targetID string) (*storage.AccountNote, error)

GetRelationshipNote mocks the GetRelationshipNote method

func (*MockRelationshipRepository) GetUsersWhoBlocked

func (m *MockRelationshipRepository) GetUsersWhoBlocked(ctx context.Context, blockedActor string, limit int, cursor string) ([]string, string, error)

GetUsersWhoBlocked mocks the GetUsersWhoBlocked method

func (*MockRelationshipRepository) GetUsersWhoMuted

func (m *MockRelationshipRepository) GetUsersWhoMuted(ctx context.Context, mutedActor string, limit int, cursor string) ([]string, string, error)

GetUsersWhoMuted mocks the GetUsersWhoMuted method

func (*MockRelationshipRepository) HasFollowRequest

func (m *MockRelationshipRepository) HasFollowRequest(ctx context.Context, requesterID, targetID string) (bool, error)

HasFollowRequest mocks the HasFollowRequest method

func (*MockRelationshipRepository) HasMovedFrom

func (m *MockRelationshipRepository) HasMovedFrom(ctx context.Context, oldActor, newActor string) (bool, error)

HasMovedFrom mocks the HasMovedFrom method

func (*MockRelationshipRepository) HasPendingFollowRequest

func (m *MockRelationshipRepository) HasPendingFollowRequest(ctx context.Context, requesterID, targetID string) (bool, error)

HasPendingFollowRequest mocks the HasPendingFollowRequest method

func (*MockRelationshipRepository) IsBlocked

func (m *MockRelationshipRepository) IsBlocked(ctx context.Context, blockerActor, blockedActor string) (bool, error)

IsBlocked mocks the IsBlocked method

func (*MockRelationshipRepository) IsBlockedBidirectional

func (m *MockRelationshipRepository) IsBlockedBidirectional(ctx context.Context, actor1, actor2 string) (bool, error)

IsBlockedBidirectional mocks the IsBlockedBidirectional method

func (*MockRelationshipRepository) IsEndorsed

func (m *MockRelationshipRepository) IsEndorsed(ctx context.Context, userID, targetID string) (bool, error)

IsEndorsed mocks the IsEndorsed method

func (*MockRelationshipRepository) IsFollowing

func (m *MockRelationshipRepository) IsFollowing(ctx context.Context, followerUsername, targetActorID string) (bool, error)

IsFollowing mocks the IsFollowing method

func (*MockRelationshipRepository) IsInCollection

func (m *MockRelationshipRepository) IsInCollection(ctx context.Context, collection, itemID string) (bool, error)

IsInCollection mocks the IsInCollection method

func (*MockRelationshipRepository) IsMuted

func (m *MockRelationshipRepository) IsMuted(ctx context.Context, muterActor, mutedActor string) (bool, error)

IsMuted mocks the IsMuted method

func (*MockRelationshipRepository) RejectFollowRequest

func (m *MockRelationshipRepository) RejectFollowRequest(ctx context.Context, followerUsername, followingUsername string) error

RejectFollowRequest mocks the RejectFollowRequest method

func (*MockRelationshipRepository) RemoveFromCollection

func (m *MockRelationshipRepository) RemoveFromCollection(ctx context.Context, collection, itemID string) error

RemoveFromCollection mocks the RemoveFromCollection method

func (*MockRelationshipRepository) UnblockUser

func (m *MockRelationshipRepository) UnblockUser(ctx context.Context, blockerID, blockedID string) error

UnblockUser mocks the UnblockUser method

func (*MockRelationshipRepository) Unfollow

func (m *MockRelationshipRepository) Unfollow(ctx context.Context, followerID, followingID string) error

Unfollow mocks the Unfollow method

func (*MockRelationshipRepository) UnmuteUser

func (m *MockRelationshipRepository) UnmuteUser(ctx context.Context, muterID, mutedID string) error

UnmuteUser mocks the UnmuteUser method

func (*MockRelationshipRepository) UpdateMoveProgress

func (m *MockRelationshipRepository) UpdateMoveProgress(ctx context.Context, actor, target string, progress map[string]interface{}) error

UpdateMoveProgress mocks the UpdateMoveProgress method

func (*MockRelationshipRepository) UpdateRelationship

func (m *MockRelationshipRepository) UpdateRelationship(ctx context.Context, followerUsername, followingUsername string, updates map[string]interface{}) error

UpdateRelationship mocks the UpdateRelationship method

func (*MockRelationshipRepository) VerifyMove

func (m *MockRelationshipRepository) VerifyMove(ctx context.Context, actor, target string) error

VerifyMove mocks the VerifyMove method

type MockRelayRepository

type MockRelayRepository struct {
	mock.Mock
}

MockRelayRepository is a mock implementation of interfaces.RelayRepository using testify/mock for expectation-based testing.

func NewMockRelayRepository

func NewMockRelayRepository() *MockRelayRepository

NewMockRelayRepository creates a new mock relay repository

func (*MockRelayRepository) CreateRelay

func (m *MockRelayRepository) CreateRelay(ctx context.Context, relay *storage.RelayInfo) error

CreateRelay mocks the CreateRelay method

func (*MockRelayRepository) DeleteRelay

func (m *MockRelayRepository) DeleteRelay(ctx context.Context, relayURL string) error

DeleteRelay mocks the DeleteRelay method

func (*MockRelayRepository) GetActiveRelays

func (m *MockRelayRepository) GetActiveRelays(ctx context.Context) ([]*storage.RelayInfo, error)

GetActiveRelays mocks the GetActiveRelays method

func (*MockRelayRepository) GetAllRelays

func (m *MockRelayRepository) GetAllRelays(ctx context.Context, limit int, cursor string) ([]*storage.RelayInfo, string, error)

GetAllRelays mocks the GetAllRelays method

func (*MockRelayRepository) GetRelay

func (m *MockRelayRepository) GetRelay(ctx context.Context, relayURL string) (*storage.RelayInfo, error)

GetRelay mocks the GetRelay method

func (*MockRelayRepository) GetRelayInfo

func (m *MockRelayRepository) GetRelayInfo(ctx context.Context, relayURL string) (*storage.RelayInfo, error)

GetRelayInfo mocks the GetRelayInfo method

func (*MockRelayRepository) ListRelays

func (m *MockRelayRepository) ListRelays(ctx context.Context) ([]*storage.RelayInfo, error)

ListRelays mocks the ListRelays method

func (*MockRelayRepository) RemoveRelayInfo

func (m *MockRelayRepository) RemoveRelayInfo(ctx context.Context, relayURL string) error

RemoveRelayInfo mocks the RemoveRelayInfo method

func (*MockRelayRepository) StoreRelayInfo

func (m *MockRelayRepository) StoreRelayInfo(ctx context.Context, relay *storage.RelayInfo) error

StoreRelayInfo mocks the StoreRelayInfo method

func (*MockRelayRepository) UpdateRelayState

func (m *MockRelayRepository) UpdateRelayState(ctx context.Context, relayURL string, state storage.RelayState) error

UpdateRelayState mocks the UpdateRelayState method

func (*MockRelayRepository) UpdateRelayStatus

func (m *MockRelayRepository) UpdateRelayStatus(ctx context.Context, relayURL string, active bool) error

UpdateRelayStatus mocks the UpdateRelayStatus method

type MockRepositoryFactory

type MockRepositoryFactory struct {
	UserRepo     *MockUserRepository
	StatusRepo   *MockStatusRepository
	TimelineRepo *MockTimelineRepository
}

MockRepositoryFactory provides all mock repositories

func NewMockRepositoryFactory

func NewMockRepositoryFactory() *MockRepositoryFactory

NewMockRepositoryFactory creates a new factory with all mock repositories

type MockRepositoryStorage

type MockRepositoryStorage struct {
	mock.Mock
	// contains filtered or unexported fields
}

MockRepositoryStorage implements the RepositoryStorage interface for testing

func NewMockRepositoryStorage

func NewMockRepositoryStorage() *MockRepositoryStorage

NewMockRepositoryStorage creates a new mock repository storage with mock repositories

func (*MockRepositoryStorage) AI

AI returns the mock AI repository

func (*MockRepositoryStorage) Account

Account returns the mock account repository

func (*MockRepositoryStorage) Activity

Activity returns the mock activity repository (interface type for mockability).

func (*MockRepositoryStorage) Actor

Actor returns the mock actor repository

func (*MockRepositoryStorage) Analytics

Analytics returns the mock analytics repository

func (*MockRepositoryStorage) Announcement

Announcement returns the mock announcement repository

func (*MockRepositoryStorage) Article

Article returns the mock Article repository (interface type for mockability)

func (*MockRepositoryStorage) Audit

Audit returns the mock audit repository

func (*MockRepositoryStorage) Bookmark

Bookmark returns the mock bookmark repository

func (*MockRepositoryStorage) Category

Category returns the mock Category repository (interface type for mockability)

func (*MockRepositoryStorage) CloudWatchMetrics

CloudWatchMetrics returns the mock CloudWatch metrics repository

func (*MockRepositoryStorage) CommunityNote

CommunityNote returns the mock community note repository

func (*MockRepositoryStorage) Conversation

Conversation returns the mock conversation repository

func (*MockRepositoryStorage) Cost

Cost returns the mock cost tracking repository

func (*MockRepositoryStorage) DLQ

DLQ returns the mock DLQ repository

func (*MockRepositoryStorage) DNSCache

DNSCache returns the DNSCacheRepository instance for testing.

func (*MockRepositoryStorage) DomainBlock

DomainBlock returns the mock domain block repository

func (*MockRepositoryStorage) Draft

Draft returns the mock Draft repository (interface type for mockability)

func (*MockRepositoryStorage) Emoji

Emoji returns the mock emoji repository

func (*MockRepositoryStorage) Export

Export returns the mock export repository

func (*MockRepositoryStorage) FeaturedTag

FeaturedTag returns the mock featured tag repository

func (*MockRepositoryStorage) Federation

Federation returns the mock federation repository

func (*MockRepositoryStorage) Filter

Filter returns the FilterRepository instance for testing.

func (*MockRepositoryStorage) GetDB

GetDB returns the mock database connection

func (*MockRepositoryStorage) GetLogger

func (m *MockRepositoryStorage) GetLogger() *zap.Logger

GetLogger returns the mock logger

func (*MockRepositoryStorage) GetTableName

func (m *MockRepositoryStorage) GetTableName() string

GetTableName returns the mock table name

func (*MockRepositoryStorage) Hashtag

Hashtag returns the mock hashtag repository

func (*MockRepositoryStorage) Import

Import returns the mock import repository

func (*MockRepositoryStorage) Instance

Instance returns the mock instance repository

func (*MockRepositoryStorage) Like

Like returns the mock like repository

func (*MockRepositoryStorage) List

List returns the mock list repository

func (*MockRepositoryStorage) Marker

Marker returns the mock marker repository

func (*MockRepositoryStorage) Media

Media returns the mock media repository

func (*MockRepositoryStorage) MediaAnalytics

MediaAnalytics returns the mock media analytics repository

func (*MockRepositoryStorage) MediaMetadata

MediaMetadata returns the mock media metadata repository

func (*MockRepositoryStorage) MediaPopularity

MediaPopularity returns the mock media popularity repository

func (*MockRepositoryStorage) MediaSession

MediaSession returns the mock media session repository

func (*MockRepositoryStorage) MetricRecord

MetricRecord returns the mock metric record repository

func (*MockRepositoryStorage) Moderation

Moderation returns the mock moderation repository

func (*MockRepositoryStorage) ModerationML

ModerationML returns the mock ModerationML repository

func (*MockRepositoryStorage) Notification

Notification returns the mock notification repository (interface type for mockability).

func (*MockRepositoryStorage) OAuth

OAuth returns the OAuth repository mock

func (*MockRepositoryStorage) Object

Object returns the mock object repository

func (*MockRepositoryStorage) Poll

Poll returns the mock poll repository

func (*MockRepositoryStorage) Publication

Publication returns the mock Publication repository (interface type for mockability)

func (*MockRepositoryStorage) PublicationMember

PublicationMember returns the mock PublicationMember repository (interface type for mockability)

func (*MockRepositoryStorage) PushSubscription

PushSubscription returns the mock push subscription repository

func (*MockRepositoryStorage) Quote

Quote returns the mock Quote repository

func (*MockRepositoryStorage) RateLimit

RateLimit returns the mock rate limit repository

func (*MockRepositoryStorage) Recovery

Recovery returns the mock recovery repository

func (*MockRepositoryStorage) Relationship

Relationship returns the mock relationship repository

func (*MockRepositoryStorage) Relay

Relay returns the mock relay repository

func (*MockRepositoryStorage) Revision

Revision returns the mock Revision repository (interface type for mockability)

func (*MockRepositoryStorage) ScheduledStatus

ScheduledStatus returns the mock scheduled status repository

func (*MockRepositoryStorage) Search

Search returns the mock search repository

func (*MockRepositoryStorage) Series

Series returns the mock Series repository (interface type for mockability)

func (*MockRepositoryStorage) Severance

Severance returns the mock Severance repository

func (*MockRepositoryStorage) Social

Social returns the mock social repository

func (*MockRepositoryStorage) Status

Status returns the mock status repository

func (*MockRepositoryStorage) StreamingCloudWatch

StreamingCloudWatch returns the StreamingCloudWatch repository mock

func (*MockRepositoryStorage) StreamingConnection

StreamingConnection returns a mock StreamingConnection repository

func (*MockRepositoryStorage) Thread

Thread returns the mock thread repository

func (*MockRepositoryStorage) Timeline

Timeline returns the mock timeline repository (interface type for mockability).

func (*MockRepositoryStorage) Trust

Trust returns the mock trust repository

func (*MockRepositoryStorage) User

User returns the mock user repository

func (*MockRepositoryStorage) WebSocketCost

WebSocketCost returns a mock WebSocket cost repository

type MockRequest

type MockRequest struct {
	Method    string
	URL       string
	Body      interface{}
	Headers   map[string]string
	Timestamp time.Time
}

MockRequest represents a logged request to the mock service

type MockRevisionRepository

type MockRevisionRepository struct {
	mock.Mock
}

MockRevisionRepository is a mock implementation of interfaces.RevisionRepository using testify/mock for expectation-based testing.

func NewMockRevisionRepository

func NewMockRevisionRepository() *MockRevisionRepository

NewMockRevisionRepository creates a new mock revision repository

func (*MockRevisionRepository) CreateRevision

func (m *MockRevisionRepository) CreateRevision(ctx context.Context, revision *models.Revision) error

CreateRevision mocks the CreateRevision method

func (*MockRevisionRepository) Delete

func (m *MockRevisionRepository) Delete(ctx context.Context, pk, sk string) error

Delete mocks the Delete method

func (*MockRevisionRepository) GetRevision

func (m *MockRevisionRepository) GetRevision(ctx context.Context, objectID string, version int) (*models.Revision, error)

GetRevision mocks the GetRevision method

func (*MockRevisionRepository) ListRevisions

func (m *MockRevisionRepository) ListRevisions(ctx context.Context, objectID string, limit int) ([]*models.Revision, error)

ListRevisions mocks the ListRevisions method

func (*MockRevisionRepository) ListRevisionsPaginated

func (m *MockRevisionRepository) ListRevisionsPaginated(ctx context.Context, objectID string, limit int, cursor string) ([]*models.Revision, string, error)

ListRevisionsPaginated mocks the ListRevisionsPaginated method

type MockScheduledStatusRepository

type MockScheduledStatusRepository struct {
	mock.Mock
}

MockScheduledStatusRepository is a mock implementation of interfaces.ScheduledStatusRepository using testify/mock for expectation-based testing.

func NewMockScheduledStatusRepository

func NewMockScheduledStatusRepository() *MockScheduledStatusRepository

NewMockScheduledStatusRepository creates a new mock scheduled status repository

func (*MockScheduledStatusRepository) CreateScheduledStatus

func (m *MockScheduledStatusRepository) CreateScheduledStatus(ctx context.Context, scheduled *storage.ScheduledStatus) error

CreateScheduledStatus mocks the CreateScheduledStatus method

func (*MockScheduledStatusRepository) DeleteScheduledStatus

func (m *MockScheduledStatusRepository) DeleteScheduledStatus(ctx context.Context, id string) error

DeleteScheduledStatus mocks the DeleteScheduledStatus method

func (*MockScheduledStatusRepository) GetDueScheduledStatuses

func (m *MockScheduledStatusRepository) GetDueScheduledStatuses(ctx context.Context, before time.Time, limit int) ([]*storage.ScheduledStatus, error)

GetDueScheduledStatuses mocks the GetDueScheduledStatuses method

func (*MockScheduledStatusRepository) GetScheduledStatus

GetScheduledStatus mocks the GetScheduledStatus method

func (*MockScheduledStatusRepository) GetScheduledStatusMedia

func (m *MockScheduledStatusRepository) GetScheduledStatusMedia(ctx context.Context, id string) ([]*models.Media, error)

GetScheduledStatusMedia mocks the GetScheduledStatusMedia method

func (*MockScheduledStatusRepository) GetScheduledStatuses

func (m *MockScheduledStatusRepository) GetScheduledStatuses(ctx context.Context, username string, limit int, cursor string) ([]*storage.ScheduledStatus, string, error)

GetScheduledStatuses mocks the GetScheduledStatuses method

func (*MockScheduledStatusRepository) MarkScheduledStatusPublished

func (m *MockScheduledStatusRepository) MarkScheduledStatusPublished(ctx context.Context, id string) error

MarkScheduledStatusPublished mocks the MarkScheduledStatusPublished method

func (*MockScheduledStatusRepository) SetMediaRepository

func (m *MockScheduledStatusRepository) SetMediaRepository(mediaRepo interfaces.MediaRepositoryInterface)

SetMediaRepository mocks the SetMediaRepository method

func (*MockScheduledStatusRepository) UpdateScheduledStatus

func (m *MockScheduledStatusRepository) UpdateScheduledStatus(ctx context.Context, scheduled *storage.ScheduledStatus) error

UpdateScheduledStatus mocks the UpdateScheduledStatus method

type MockSearchRepository

type MockSearchRepository struct {
	mock.Mock
}

MockSearchRepository is a mock implementation of interfaces.SearchRepository using testify/mock for expectation-based testing.

func NewMockSearchRepository

func NewMockSearchRepository() *MockSearchRepository

NewMockSearchRepository creates a new mock search repository

func (*MockSearchRepository) SearchAccounts

func (m *MockSearchRepository) SearchAccounts(ctx context.Context, query string, limit int, followingOnly bool, offset int) ([]*activitypub.Actor, error)

SearchAccounts mocks the SearchAccounts method

func (*MockSearchRepository) SearchAccountsAdvanced

func (m *MockSearchRepository) SearchAccountsAdvanced(ctx context.Context, query string, resolve bool, limit int, offset int, following bool, accountID string) ([]*activitypub.Actor, error)

SearchAccountsAdvanced mocks the SearchAccountsAdvanced method

func (*MockSearchRepository) SearchAccountsWithPrivacy

func (m *MockSearchRepository) SearchAccountsWithPrivacy(ctx context.Context, query string, limit int, followingOnly bool, offset int, searcherActorID string) ([]*activitypub.Actor, error)

SearchAccountsWithPrivacy mocks the SearchAccountsWithPrivacy method

func (*MockSearchRepository) SearchStatuses

func (m *MockSearchRepository) SearchStatuses(ctx context.Context, query string, limit int) ([]*storage.StatusSearchResult, error)

SearchStatuses mocks the SearchStatuses method

func (*MockSearchRepository) SearchStatusesAdvanced

func (m *MockSearchRepository) SearchStatusesAdvanced(ctx context.Context, query string, limit int, maxID, minID *string, accountID string) ([]*storage.StatusSearchResult, error)

SearchStatusesAdvanced mocks the SearchStatusesAdvanced method

func (*MockSearchRepository) SearchStatusesWithOptions

func (m *MockSearchRepository) SearchStatusesWithOptions(ctx context.Context, query string, options storage.StatusSearchOptions) ([]*storage.StatusSearchResult, error)

SearchStatusesWithOptions mocks the SearchStatusesWithOptions method

func (*MockSearchRepository) SearchStatusesWithOptionsPaginated

func (m *MockSearchRepository) SearchStatusesWithOptionsPaginated(ctx context.Context, query string, options storage.StatusSearchOptions) ([]*storage.StatusSearchResult, *interfaces.PaginationResult, error)

SearchStatusesWithOptionsPaginated mocks the SearchStatusesWithOptionsPaginated method

func (*MockSearchRepository) SearchStatusesWithPrivacy

func (m *MockSearchRepository) SearchStatusesWithPrivacy(ctx context.Context, query string, options storage.StatusSearchOptions, searcherActorID string) ([]*storage.StatusSearchResult, error)

SearchStatusesWithPrivacy mocks the SearchStatusesWithPrivacy method

func (*MockSearchRepository) SearchStatusesWithPrivacyPaginated

func (m *MockSearchRepository) SearchStatusesWithPrivacyPaginated(ctx context.Context, query string, options storage.StatusSearchOptions, searcherActorID string) ([]*storage.StatusSearchResult, *interfaces.PaginationResult, error)

SearchStatusesWithPrivacyPaginated mocks the SearchStatusesWithPrivacyPaginated method

func (*MockSearchRepository) SetDependencies

func (m *MockSearchRepository) SetDependencies(deps interfaces.SearchRepositoryDeps)

SetDependencies mocks the SetDependencies method

type MockSeriesRepository

type MockSeriesRepository struct {
	mock.Mock
}

MockSeriesRepository is a mock implementation of interfaces.SeriesRepository using testify/mock for expectation-based testing.

func NewMockSeriesRepository

func NewMockSeriesRepository() *MockSeriesRepository

NewMockSeriesRepository creates a new mock series repository

func (*MockSeriesRepository) CreateSeries

func (m *MockSeriesRepository) CreateSeries(ctx context.Context, series *models.Series) error

CreateSeries mocks the CreateSeries method

func (*MockSeriesRepository) Delete

func (m *MockSeriesRepository) Delete(ctx context.Context, pk, sk string) error

Delete mocks the Delete method

func (*MockSeriesRepository) GetSeries

func (m *MockSeriesRepository) GetSeries(ctx context.Context, authorID, seriesID string) (*models.Series, error)

GetSeries mocks the GetSeries method

func (*MockSeriesRepository) ListSeriesByAuthor

func (m *MockSeriesRepository) ListSeriesByAuthor(ctx context.Context, authorID string, limit int) ([]*models.Series, error)

ListSeriesByAuthor mocks the ListSeriesByAuthor method

func (*MockSeriesRepository) ListSeriesByAuthorPaginated

func (m *MockSeriesRepository) ListSeriesByAuthorPaginated(ctx context.Context, authorID string, limit int, cursor string) ([]*models.Series, string, error)

ListSeriesByAuthorPaginated mocks the ListSeriesByAuthorPaginated method

func (*MockSeriesRepository) Update

func (m *MockSeriesRepository) Update(ctx context.Context, series *models.Series) error

Update mocks the Update method

func (*MockSeriesRepository) UpdateArticleCount

func (m *MockSeriesRepository) UpdateArticleCount(ctx context.Context, authorID string, seriesID string, delta int) error

UpdateArticleCount mocks the UpdateArticleCount method

type MockSeveranceRepository

type MockSeveranceRepository struct {
	mock.Mock
}

MockSeveranceRepository is a mock implementation of interfaces.SeveranceRepository using testify/mock for expectation-based testing.

func NewMockSeveranceRepository

func NewMockSeveranceRepository() *MockSeveranceRepository

NewMockSeveranceRepository creates a new mock severance repository

func (*MockSeveranceRepository) CreateAffectedRelationship

func (m *MockSeveranceRepository) CreateAffectedRelationship(ctx context.Context, affected *models.AffectedRelationship) error

CreateAffectedRelationship mocks the CreateAffectedRelationship method

func (*MockSeveranceRepository) CreateReconnectionAttempt

func (m *MockSeveranceRepository) CreateReconnectionAttempt(ctx context.Context, attempt *models.SeveranceReconnectionAttempt) error

CreateReconnectionAttempt mocks the CreateReconnectionAttempt method

func (*MockSeveranceRepository) CreateSeveredRelationship

func (m *MockSeveranceRepository) CreateSeveredRelationship(ctx context.Context, severance *models.SeveredRelationship) error

CreateSeveredRelationship mocks the CreateSeveredRelationship method

func (*MockSeveranceRepository) GetAffectedRelationships

func (m *MockSeveranceRepository) GetAffectedRelationships(ctx context.Context, severanceID string, limit int, cursor string) ([]*models.AffectedRelationship, string, error)

GetAffectedRelationships mocks the GetAffectedRelationships method

func (*MockSeveranceRepository) GetReconnectionAttempt

func (m *MockSeveranceRepository) GetReconnectionAttempt(ctx context.Context, severanceID, attemptID string) (*models.SeveranceReconnectionAttempt, error)

GetReconnectionAttempt mocks the GetReconnectionAttempt method

func (*MockSeveranceRepository) GetReconnectionAttempts

func (m *MockSeveranceRepository) GetReconnectionAttempts(ctx context.Context, severanceID string) ([]*models.SeveranceReconnectionAttempt, error)

GetReconnectionAttempts mocks the GetReconnectionAttempts method

func (*MockSeveranceRepository) GetSeveredRelationship

func (m *MockSeveranceRepository) GetSeveredRelationship(ctx context.Context, id string) (*models.SeveredRelationship, error)

GetSeveredRelationship mocks the GetSeveredRelationship method

func (*MockSeveranceRepository) ListSeveredRelationships

func (m *MockSeveranceRepository) ListSeveredRelationships(ctx context.Context, localInstance string, filters interfaces.SeveranceFilters, limit int, cursor string) ([]*models.SeveredRelationship, string, error)

ListSeveredRelationships mocks the ListSeveredRelationships method

func (*MockSeveranceRepository) UpdateReconnectionAttempt

func (m *MockSeveranceRepository) UpdateReconnectionAttempt(ctx context.Context, attempt *models.SeveranceReconnectionAttempt) error

UpdateReconnectionAttempt mocks the UpdateReconnectionAttempt method

func (*MockSeveranceRepository) UpdateSeveranceStatus

func (m *MockSeveranceRepository) UpdateSeveranceStatus(ctx context.Context, id string, status models.SeveranceStatus) error

UpdateSeveranceStatus mocks the UpdateSeveranceStatus method

type MockSocialRepository

type MockSocialRepository struct {
	mock.Mock
}

MockSocialRepository is a mock implementation of interfaces.SocialRepository using testify/mock for expectation-based testing.

func NewMockSocialRepository

func NewMockSocialRepository() *MockSocialRepository

NewMockSocialRepository creates a new mock social repository

func (*MockSocialRepository) CascadeDeleteAnnounces

func (m *MockSocialRepository) CascadeDeleteAnnounces(ctx context.Context, objectID string) error

CascadeDeleteAnnounces mocks the CascadeDeleteAnnounces method

func (*MockSocialRepository) CountObjectAnnounces

func (m *MockSocialRepository) CountObjectAnnounces(ctx context.Context, objectID string) (int, error)

CountObjectAnnounces mocks the CountObjectAnnounces method

func (*MockSocialRepository) CountUserPinnedStatuses

func (m *MockSocialRepository) CountUserPinnedStatuses(ctx context.Context, username string) (int, error)

CountUserPinnedStatuses mocks the CountUserPinnedStatuses method

func (*MockSocialRepository) CreateAccountNote

func (m *MockSocialRepository) CreateAccountNote(ctx context.Context, note *storage.AccountNote) error

CreateAccountNote mocks the CreateAccountNote method

func (*MockSocialRepository) CreateAccountPin

func (m *MockSocialRepository) CreateAccountPin(ctx context.Context, pin *storage.AccountPin) error

CreateAccountPin mocks the CreateAccountPin method

func (*MockSocialRepository) CreateAnnounce

func (m *MockSocialRepository) CreateAnnounce(ctx context.Context, announce *storage.Announce) error

CreateAnnounce mocks the CreateAnnounce method

func (*MockSocialRepository) CreateBlock

func (m *MockSocialRepository) CreateBlock(ctx context.Context, block *storage.Block) error

CreateBlock mocks the CreateBlock method

func (*MockSocialRepository) CreateMute

func (m *MockSocialRepository) CreateMute(ctx context.Context, mute *storage.Mute) error

CreateMute mocks the CreateMute method

func (*MockSocialRepository) CreateStatusPin

func (m *MockSocialRepository) CreateStatusPin(ctx context.Context, pin *storage.StatusPin) error

CreateStatusPin mocks the CreateStatusPin method

func (*MockSocialRepository) DeleteAccountNote

func (m *MockSocialRepository) DeleteAccountNote(ctx context.Context, username, targetActorID string) error

DeleteAccountNote mocks the DeleteAccountNote method

func (*MockSocialRepository) DeleteAccountPin

func (m *MockSocialRepository) DeleteAccountPin(ctx context.Context, username, pinnedActorID string) error

DeleteAccountPin mocks the DeleteAccountPin method

func (*MockSocialRepository) DeleteAnnounce

func (m *MockSocialRepository) DeleteAnnounce(ctx context.Context, actor, object string) error

DeleteAnnounce mocks the DeleteAnnounce method

func (*MockSocialRepository) DeleteBlock

func (m *MockSocialRepository) DeleteBlock(ctx context.Context, actor, blockedActor string) error

DeleteBlock mocks the DeleteBlock method

func (*MockSocialRepository) DeleteMute

func (m *MockSocialRepository) DeleteMute(ctx context.Context, actor, mutedActor string) error

DeleteMute mocks the DeleteMute method

func (*MockSocialRepository) DeleteStatusPin

func (m *MockSocialRepository) DeleteStatusPin(ctx context.Context, username, statusID string) error

DeleteStatusPin mocks the DeleteStatusPin method

func (*MockSocialRepository) GetAccountNote

func (m *MockSocialRepository) GetAccountNote(ctx context.Context, username, targetActorID string) (*storage.AccountNote, error)

GetAccountNote mocks the GetAccountNote method

func (*MockSocialRepository) GetAccountPins

func (m *MockSocialRepository) GetAccountPins(ctx context.Context, username string) ([]*storage.AccountPin, error)

GetAccountPins mocks the GetAccountPins method

func (*MockSocialRepository) GetAccountPinsPaginated

func (m *MockSocialRepository) GetAccountPinsPaginated(ctx context.Context, username string, limit int, cursor string) ([]*storage.AccountPin, string, error)

GetAccountPinsPaginated mocks the GetAccountPinsPaginated method

func (*MockSocialRepository) GetActorAnnounces

func (m *MockSocialRepository) GetActorAnnounces(ctx context.Context, actorID string, limit int, cursor string) ([]*storage.Announce, string, error)

GetActorAnnounces mocks the GetActorAnnounces method

func (*MockSocialRepository) GetAnnounce

func (m *MockSocialRepository) GetAnnounce(ctx context.Context, actor, object string) (*storage.Announce, error)

GetAnnounce mocks the GetAnnounce method

func (*MockSocialRepository) GetBlock

func (m *MockSocialRepository) GetBlock(ctx context.Context, actor, blockedActor string) (*storage.Block, error)

GetBlock mocks the GetBlock method

func (*MockSocialRepository) GetBlockedByUsers

func (m *MockSocialRepository) GetBlockedByUsers(ctx context.Context, actor string, limit int, cursor string) ([]*storage.Block, string, error)

GetBlockedByUsers mocks the GetBlockedByUsers method

func (*MockSocialRepository) GetBlockedUsers

func (m *MockSocialRepository) GetBlockedUsers(ctx context.Context, actor string, limit int, cursor string) ([]*storage.Block, string, error)

GetBlockedUsers mocks the GetBlockedUsers method

func (*MockSocialRepository) GetMute

func (m *MockSocialRepository) GetMute(ctx context.Context, actor, mutedActor string) (*storage.Mute, error)

GetMute mocks the GetMute method

func (*MockSocialRepository) GetMutedUsers

func (m *MockSocialRepository) GetMutedUsers(ctx context.Context, actor string, limit int, cursor string) ([]*storage.Mute, string, error)

GetMutedUsers mocks the GetMutedUsers method

func (*MockSocialRepository) GetStatusAnnounces

func (m *MockSocialRepository) GetStatusAnnounces(ctx context.Context, objectID string, limit int, cursor string) ([]*storage.Announce, string, error)

GetStatusAnnounces mocks the GetStatusAnnounces method

func (*MockSocialRepository) GetStatusPins

func (m *MockSocialRepository) GetStatusPins(ctx context.Context, username string) ([]*storage.StatusPin, error)

GetStatusPins mocks the GetStatusPins method

func (*MockSocialRepository) GetStatusPinsPaginated

func (m *MockSocialRepository) GetStatusPinsPaginated(ctx context.Context, username string, limit int, cursor string) ([]*storage.StatusPin, string, error)

GetStatusPinsPaginated mocks the GetStatusPinsPaginated method

func (*MockSocialRepository) HasUserAnnounced

func (m *MockSocialRepository) HasUserAnnounced(ctx context.Context, actor, object string) (bool, error)

HasUserAnnounced mocks the HasUserAnnounced method

func (*MockSocialRepository) IsAccountPinned

func (m *MockSocialRepository) IsAccountPinned(ctx context.Context, username, pinnedActorID string) (bool, error)

IsAccountPinned mocks the IsAccountPinned method

func (*MockSocialRepository) IsBlocked

func (m *MockSocialRepository) IsBlocked(ctx context.Context, actor, targetActor string) (bool, error)

IsBlocked mocks the IsBlocked method

func (*MockSocialRepository) IsMuted

func (m *MockSocialRepository) IsMuted(ctx context.Context, actor, targetActor string) (bool, error)

IsMuted mocks the IsMuted method

func (*MockSocialRepository) IsStatusPinned

func (m *MockSocialRepository) IsStatusPinned(ctx context.Context, username, statusID string) (bool, error)

IsStatusPinned mocks the IsStatusPinned method

func (*MockSocialRepository) ReorderStatusPins

func (m *MockSocialRepository) ReorderStatusPins(ctx context.Context, username string, statusIDs []string) error

ReorderStatusPins mocks the ReorderStatusPins method

func (*MockSocialRepository) UpdateAccountNote

func (m *MockSocialRepository) UpdateAccountNote(ctx context.Context, note *storage.AccountNote) error

UpdateAccountNote mocks the UpdateAccountNote method

type MockStatusRepository

type MockStatusRepository struct {
	mock.Mock
	*theorydb.BaseRepository
}

MockStatusRepository mocks the StatusRepository interface

func NewMockStatusRepository

func NewMockStatusRepository() *MockStatusRepository

NewMockStatusRepository creates a new mock status repository

func (*MockStatusRepository) Create

func (m *MockStatusRepository) Create(ctx context.Context, status *models.Status) error

Create mocks the Create method

func (*MockStatusRepository) Delete

func (m *MockStatusRepository) Delete(ctx context.Context, statusID string) error

Delete mocks the Delete method

func (*MockStatusRepository) GetByAuthor

func (m *MockStatusRepository) GetByAuthor(ctx context.Context, authorID string, limit int, cursor string) ([]*models.Status, string, error)

GetByAuthor mocks the GetByAuthor method

func (*MockStatusRepository) GetByID

func (m *MockStatusRepository) GetByID(ctx context.Context, statusID string) (*models.Status, error)

GetByID mocks the GetByID method

func (*MockStatusRepository) Update

func (m *MockStatusRepository) Update(ctx context.Context, status *models.Status) error

Update mocks the Update method

type MockStatusRepositoryInterface

type MockStatusRepositoryInterface struct {
	mock.Mock
}

MockStatusRepositoryInterface is a mock implementation of interfaces.StatusRepository using testify/mock for expectation-based testing. Note: This is separate from MockStatusRepository which is an older mock that doesn't implement the full interface.

func NewMockStatusRepositoryInterface

func NewMockStatusRepositoryInterface() *MockStatusRepositoryInterface

NewMockStatusRepositoryInterface creates a new mock status repository

func (*MockStatusRepositoryInterface) BookmarkStatus

func (m *MockStatusRepositoryInterface) BookmarkStatus(ctx context.Context, userID, statusID string) error

BookmarkStatus mocks the BookmarkStatus method

func (*MockStatusRepositoryInterface) CountReplies

func (m *MockStatusRepositoryInterface) CountReplies(ctx context.Context, statusID string) (int, error)

CountReplies mocks the CountReplies method

func (*MockStatusRepositoryInterface) CountStatusesByAuthor

func (m *MockStatusRepositoryInterface) CountStatusesByAuthor(ctx context.Context, authorID string) (int, error)

CountStatusesByAuthor mocks the CountStatusesByAuthor method

func (*MockStatusRepositoryInterface) CreateBoostStatus

func (m *MockStatusRepositoryInterface) CreateBoostStatus(ctx context.Context, status *models.Status) error

CreateBoostStatus mocks the CreateBoostStatus method

func (*MockStatusRepositoryInterface) CreateStatus

func (m *MockStatusRepositoryInterface) CreateStatus(ctx context.Context, status *models.Status) error

CreateStatus mocks the CreateStatus method

func (*MockStatusRepositoryInterface) DeleteBoostStatus

func (m *MockStatusRepositoryInterface) DeleteBoostStatus(ctx context.Context, boosterID, targetStatusID string) (*models.Status, error)

DeleteBoostStatus mocks the DeleteBoostStatus method

func (*MockStatusRepositoryInterface) DeleteStatus

func (m *MockStatusRepositoryInterface) DeleteStatus(ctx context.Context, statusID string) error

DeleteStatus mocks the DeleteStatus method

func (*MockStatusRepositoryInterface) FlagStatus

func (m *MockStatusRepositoryInterface) FlagStatus(ctx context.Context, statusID, reason string, reportedBy string) error

FlagStatus mocks the FlagStatus method

func (*MockStatusRepositoryInterface) GetConversationThread

GetConversationThread mocks the GetConversationThread method

func (*MockStatusRepositoryInterface) GetFlaggedStatuses

GetFlaggedStatuses mocks the GetFlaggedStatuses method

func (*MockStatusRepositoryInterface) GetHomeTimeline

GetHomeTimeline mocks the GetHomeTimeline method

func (*MockStatusRepositoryInterface) GetPublicTimeline

GetPublicTimeline mocks the GetPublicTimeline method

func (*MockStatusRepositoryInterface) GetReplies

GetReplies mocks the GetReplies method

func (*MockStatusRepositoryInterface) GetStatus

func (m *MockStatusRepositoryInterface) GetStatus(ctx context.Context, statusID string) (*models.Status, error)

GetStatus mocks the GetStatus method

func (*MockStatusRepositoryInterface) GetStatusByURL

func (m *MockStatusRepositoryInterface) GetStatusByURL(ctx context.Context, url string) (*models.Status, error)

GetStatusByURL mocks the GetStatusByURL method

func (*MockStatusRepositoryInterface) GetStatusContext

func (m *MockStatusRepositoryInterface) GetStatusContext(ctx context.Context, statusID string) (ancestors, descendants []*models.Status, err error)

GetStatusContext mocks the GetStatusContext method

func (*MockStatusRepositoryInterface) GetStatusCounts

func (m *MockStatusRepositoryInterface) GetStatusCounts(ctx context.Context, statusID string) (likes, reblogs, replies int, err error)

GetStatusCounts mocks the GetStatusCounts method

func (*MockStatusRepositoryInterface) GetStatusEngagement

func (m *MockStatusRepositoryInterface) GetStatusEngagement(ctx context.Context, statusID, userID string) (liked, reblogged, bookmarked bool, err error)

GetStatusEngagement mocks the GetStatusEngagement method

func (*MockStatusRepositoryInterface) GetStatusesByHashtag

GetStatusesByHashtag mocks the GetStatusesByHashtag method

func (*MockStatusRepositoryInterface) GetStatusesByIDs

func (m *MockStatusRepositoryInterface) GetStatusesByIDs(ctx context.Context, statusIDs []string) ([]*models.Status, error)

GetStatusesByIDs mocks the GetStatusesByIDs method

func (*MockStatusRepositoryInterface) GetTrendingStatuses

GetTrendingStatuses mocks the GetTrendingStatuses method

func (*MockStatusRepositoryInterface) GetUserTimeline

GetUserTimeline mocks the GetUserTimeline method

func (*MockStatusRepositoryInterface) LikeStatus

func (m *MockStatusRepositoryInterface) LikeStatus(ctx context.Context, userID, statusID string) error

LikeStatus mocks the LikeStatus method

func (*MockStatusRepositoryInterface) ListStatusesForAdmin

func (m *MockStatusRepositoryInterface) ListStatusesForAdmin(ctx context.Context, filter *interfaces.StatusFilter, limit int, cursor string) ([]*models.Status, string, error)

ListStatusesForAdmin mocks the ListStatusesForAdmin method

func (*MockStatusRepositoryInterface) ReblogStatus

func (m *MockStatusRepositoryInterface) ReblogStatus(ctx context.Context, userID, statusID string, reblogStatusID string) error

ReblogStatus mocks the ReblogStatus method

func (*MockStatusRepositoryInterface) SearchStatuses

SearchStatuses mocks the SearchStatuses method

func (*MockStatusRepositoryInterface) UnbookmarkStatus

func (m *MockStatusRepositoryInterface) UnbookmarkStatus(ctx context.Context, userID, statusID string) error

UnbookmarkStatus mocks the UnbookmarkStatus method

func (*MockStatusRepositoryInterface) UnflagStatus

func (m *MockStatusRepositoryInterface) UnflagStatus(ctx context.Context, statusID string) error

UnflagStatus mocks the UnflagStatus method

func (*MockStatusRepositoryInterface) UnlikeStatus

func (m *MockStatusRepositoryInterface) UnlikeStatus(ctx context.Context, userID, statusID string) error

UnlikeStatus mocks the UnlikeStatus method

func (*MockStatusRepositoryInterface) UnreblogStatus

func (m *MockStatusRepositoryInterface) UnreblogStatus(ctx context.Context, userID, statusID string) error

UnreblogStatus mocks the UnreblogStatus method

func (*MockStatusRepositoryInterface) UpdateStatus

func (m *MockStatusRepositoryInterface) UpdateStatus(ctx context.Context, status *models.Status) error

UpdateStatus mocks the UpdateStatus method

type MockStorage

type MockStorage struct {
	mock.Mock
	// contains filtered or unexported fields
}

MockStorage is a mock implementation of the Storage interface

func NewMockStorage

func NewMockStorage() *MockStorage

NewMockStorage creates a new mock storage instance

func NewMockStorageWithPreset

func NewMockStorageWithPreset(preset MockStoragePreset) *MockStorage

NewMockStorageWithPreset creates a mock storage with preset data

func (*MockStorage) AcceptFollow

func (m *MockStorage) AcceptFollow(ctx context.Context, followerUsername, followedUsername string) error

AcceptFollow mocks the AcceptFollow method

func (*MockStorage) AcceptFollowRequest

func (m *MockStorage) AcceptFollowRequest(ctx context.Context, followerID, targetID string) error

AcceptFollowRequest mocks the AcceptFollowRequest method

func (*MockStorage) AcknowledgeSeverance

func (m *MockStorage) AcknowledgeSeverance(ctx context.Context, userID, domain string) error

AcknowledgeSeverance mocks the AcknowledgeSeverance method

func (*MockStorage) AddAccountsToList

func (m *MockStorage) AddAccountsToList(ctx context.Context, listID string, accountIDs []string) error

AddAccountsToList mocks the AddAccountsToList method

func (*MockStorage) AddAnnouncementReaction

func (m *MockStorage) AddAnnouncementReaction(ctx context.Context, username, announcementID, emojiName string) error

AddAnnouncementReaction mocks the AddAnnouncementReaction method

func (*MockStorage) AddDomainBlock

func (m *MockStorage) AddDomainBlock(ctx context.Context, username, domain string) error

AddDomainBlock mocks the AddDomainBlock method

func (*MockStorage) AddFilterKeyword

func (m *MockStorage) AddFilterKeyword(ctx context.Context, filterID string, keyword *storage.FilterKeyword) error

AddFilterKeyword mocks the AddFilterKeyword method

func (*MockStorage) AddFilterStatus

func (m *MockStorage) AddFilterStatus(ctx context.Context, filterID string, status *storage.FilterStatus) error

AddFilterStatus mocks the AddFilterStatus method

func (*MockStorage) AddModerationReview

func (m *MockStorage) AddModerationReview(ctx context.Context, review *storage.ModerationReview) error

AddModerationReview mocks the AddModerationReview method

func (*MockStorage) AddParticipantToConversation

func (m *MockStorage) AddParticipantToConversation(ctx context.Context, conversationID, participantID string) error

AddParticipantToConversation mocks the AddParticipantToConversation method

func (*MockStorage) AddToCollection

func (m *MockStorage) AddToCollection(ctx context.Context, collection string, item *storage.CollectionItem) error

AddToCollection adds an item to a collection

func (*MockStorage) AssignReport

func (m *MockStorage) AssignReport(ctx context.Context, reportID string, assignedTo string) error

AssignReport mocks the AssignReport method

func (*MockStorage) AttemptReconnection

func (m *MockStorage) AttemptReconnection(ctx context.Context, userID, domain string) error

AttemptReconnection mocks the AttemptReconnection method

func (*MockStorage) BatchMarkNotificationsAsRead

func (m *MockStorage) BatchMarkNotificationsAsRead(ctx context.Context, username string, notificationIDs []string) error

BatchMarkNotificationsAsRead mocks the BatchMarkNotificationsAsRead method

func (*MockStorage) CacheRemoteActor

func (m *MockStorage) CacheRemoteActor(ctx context.Context, handle string, actor *activitypub.Actor, ttl time.Duration) error

CacheRemoteActor mocks the CacheRemoteActor method

func (*MockStorage) CalculateFederationClusters

func (m *MockStorage) CalculateFederationClusters(ctx context.Context) ([]*storage.InstanceCluster, error)

CalculateFederationClusters mocks the CalculateFederationClusters method

func (*MockStorage) CascadeDeleteAnnounces

func (m *MockStorage) CascadeDeleteAnnounces(ctx context.Context, objectID string) error

CascadeDeleteAnnounces mocks the CascadeDeleteAnnounces method

func (*MockStorage) CascadeDeleteLikes

func (m *MockStorage) CascadeDeleteLikes(ctx context.Context, objectID string) error

CascadeDeleteLikes mocks the CascadeDeleteLikes method

func (*MockStorage) CheckAPIRateLimit

func (m *MockStorage) CheckAPIRateLimit(ctx context.Context, userID, endpoint string, limit int, window time.Duration) error

CheckAPIRateLimit mocks the CheckAPIRateLimit method

func (*MockStorage) CheckCommunityNoteRateLimit

func (m *MockStorage) CheckCommunityNoteRateLimit(ctx context.Context, userID string, limit int) (bool, int, error)

CheckCommunityNoteRateLimit mocks the CheckCommunityNoteRateLimit method

func (*MockStorage) CheckRateLimit

func (m *MockStorage) CheckRateLimit(ctx context.Context, key string, limit int, window time.Duration) (bool, error)

CheckRateLimit mocks the CheckRateLimit method

func (*MockStorage) ClearLoginAttempts

func (m *MockStorage) ClearLoginAttempts(ctx context.Context, identifier string) error

ClearLoginAttempts mocks the ClearLoginAttempts method

func (*MockStorage) ClearNotifications

func (m *MockStorage) ClearNotifications(ctx context.Context, username string) error

ClearNotifications mocks the ClearNotifications method

func (*MockStorage) CountCollectionItems

func (m *MockStorage) CountCollectionItems(ctx context.Context, collection string) (int, error)

CountCollectionItems mocks the CountCollectionItems method

func (*MockStorage) CountObjectAnnounces

func (m *MockStorage) CountObjectAnnounces(ctx context.Context, objectID string) (int, error)

CountObjectAnnounces mocks the CountObjectAnnounces method

func (*MockStorage) CountObjectLikes

func (m *MockStorage) CountObjectLikes(ctx context.Context, objectID string) (int, error)

CountObjectLikes mocks the CountObjectLikes method

func (*MockStorage) CountObjectReplies

func (m *MockStorage) CountObjectReplies(ctx context.Context, objectID string) (int, error)

CountObjectReplies mocks the CountObjectReplies method

func (*MockStorage) CountPendingFlags

func (m *MockStorage) CountPendingFlags(ctx context.Context) (int, error)

CountPendingFlags mocks the CountPendingFlags method

func (*MockStorage) CountQuotes

func (m *MockStorage) CountQuotes(ctx context.Context, noteID string) (int, error)

CountQuotes mocks the CountQuotes method

func (*MockStorage) CountReplies

func (m *MockStorage) CountReplies(ctx context.Context, objectID string) (int, error)

CountReplies mocks the CountReplies method

func (*MockStorage) CountStatusesForAdmin

func (m *MockStorage) CountStatusesForAdmin(ctx context.Context, filter *interfaces.StatusFilter) (int64, error)

CountStatusesForAdmin mocks the CountStatusesForAdmin method

func (*MockStorage) CountUnreadNotifications

func (m *MockStorage) CountUnreadNotifications(ctx context.Context, username string) (int, error)

CountUnreadNotifications mocks the CountUnreadNotifications method

func (*MockStorage) CountUnusedRecoveryCodes

func (m *MockStorage) CountUnusedRecoveryCodes(ctx context.Context, username string) (int, error)

CountUnusedRecoveryCodes mocks the CountUnusedRecoveryCodes method

func (*MockStorage) CountUserPinnedStatuses

func (m *MockStorage) CountUserPinnedStatuses(ctx context.Context, username string) (int, error)

CountUserPinnedStatuses mocks the CountUserPinnedStatuses method

func (*MockStorage) CreateAccountNote

func (m *MockStorage) CreateAccountNote(ctx context.Context, note *storage.AccountNote) error

CreateAccountNote mocks the CreateAccountNote method

func (*MockStorage) CreateAccountPin

func (m *MockStorage) CreateAccountPin(ctx context.Context, pin *storage.AccountPin) error

CreateAccountPin mocks the CreateAccountPin method

func (*MockStorage) CreateActivity

func (m *MockStorage) CreateActivity(ctx context.Context, activity *activitypub.Activity) error

CreateActivity mocks the CreateActivity method

func (*MockStorage) CreateActor

func (m *MockStorage) CreateActor(ctx context.Context, actor *activitypub.Actor, privateKey string) error

CreateActor mocks the CreateActor method

func (*MockStorage) CreateAdminReview

func (m *MockStorage) CreateAdminReview(ctx context.Context, eventID string, adminID string, action storage.ActionType, reason string) error

CreateAdminReview mocks the CreateAdminReview method

func (*MockStorage) CreateAnnounce

func (m *MockStorage) CreateAnnounce(ctx context.Context, announce *storage.Announce) error

CreateAnnounce mocks the CreateAnnounce method

func (*MockStorage) CreateAnnouncement

func (m *MockStorage) CreateAnnouncement(ctx context.Context, announcement *storage.Announcement) error

CreateAnnouncement mocks the CreateAnnouncement method

func (*MockStorage) CreateAuthorizationCode

func (m *MockStorage) CreateAuthorizationCode(ctx context.Context, code *storage.AuthorizationCode) error

CreateAuthorizationCode mocks the CreateAuthorizationCode method

func (*MockStorage) CreateBlock

func (m *MockStorage) CreateBlock(ctx context.Context, block *storage.Block) error

CreateBlock mocks the CreateBlock method

func (*MockStorage) CreateBookmark

func (m *MockStorage) CreateBookmark(ctx context.Context, username, objectID string) error

CreateBookmark mocks the CreateBookmark method

func (*MockStorage) CreateCommunityNote

func (m *MockStorage) CreateCommunityNote(ctx context.Context, note *storage.CommunityNote) error

CreateCommunityNote mocks the CreateCommunityNote method

func (*MockStorage) CreateCommunityNoteVote

func (m *MockStorage) CreateCommunityNoteVote(ctx context.Context, vote *storage.CommunityNoteVote) error

CreateCommunityNoteVote mocks the CreateCommunityNoteVote method

func (*MockStorage) CreateConversation

func (m *MockStorage) CreateConversation(ctx context.Context, conversation *storage.Conversation) error

CreateConversation mocks the CreateConversation method

func (*MockStorage) CreateConversationMute

func (m *MockStorage) CreateConversationMute(ctx context.Context, mute *storage.ConversationMute) error

CreateConversationMute mocks the CreateConversationMute method

func (*MockStorage) CreateCustomEmoji

func (m *MockStorage) CreateCustomEmoji(ctx context.Context, emoji *storage.CustomEmoji) error

CreateCustomEmoji mocks the CreateCustomEmoji method

func (*MockStorage) CreateDevice

func (m *MockStorage) CreateDevice(ctx context.Context, device *storage.Device) error

CreateDevice mocks the CreateDevice method

func (*MockStorage) CreateDomainAllow

func (m *MockStorage) CreateDomainAllow(ctx context.Context, allow *storage.DomainAllow) error

CreateDomainAllow mocks the CreateDomainAllow method

func (*MockStorage) CreateDomainBlock

func (m *MockStorage) CreateDomainBlock(ctx context.Context, block *storage.InstanceDomainBlock) error

CreateDomainBlock mocks the CreateDomainBlock method

func (*MockStorage) CreateEmailDomainBlock

func (m *MockStorage) CreateEmailDomainBlock(ctx context.Context, block *storage.EmailDomainBlock) error

CreateEmailDomainBlock mocks the CreateEmailDomainBlock method

func (*MockStorage) CreateFeaturedTag

func (m *MockStorage) CreateFeaturedTag(ctx context.Context, userID string, tagName string) (*storage.FeaturedTag, error)

CreateFeaturedTag mocks the CreateFeaturedTag method

func (*MockStorage) CreateFilter

func (m *MockStorage) CreateFilter(ctx context.Context, filter *storage.Filter) error

CreateFilter mocks the CreateFilter method

func (*MockStorage) CreateFlag

func (m *MockStorage) CreateFlag(ctx context.Context, flag *storage.Flag) error

CreateFlag creates a new flag for content moderation

func (*MockStorage) CreateFollow

func (m *MockStorage) CreateFollow(ctx context.Context, followerUsername, followedUsername, followActivityID string) error

CreateFollow mocks the CreateFollow method

func (*MockStorage) CreateInstanceDomainBlock

func (m *MockStorage) CreateInstanceDomainBlock(ctx context.Context, block *storage.InstanceDomainBlock) error

CreateInstanceDomainBlock mocks the CreateInstanceDomainBlock method

func (*MockStorage) CreateLike

func (m *MockStorage) CreateLike(ctx context.Context, like *storage.Like) error

CreateLike mocks the CreateLike method

func (*MockStorage) CreateList

func (m *MockStorage) CreateList(ctx context.Context, username, title, repliesPolicy string) (*storage.List, error)

CreateList mocks the CreateList method

func (*MockStorage) CreateModerationDecision

func (m *MockStorage) CreateModerationDecision(ctx context.Context, decision *storage.ModerationDecision) error

CreateModerationDecision mocks the CreateModerationDecision method

func (*MockStorage) CreateModerationEvent

func (m *MockStorage) CreateModerationEvent(ctx context.Context, event *storage.ModerationEvent) error

CreateModerationEvent mocks the CreateModerationEvent method

func (*MockStorage) CreateModerationPattern

func (m *MockStorage) CreateModerationPattern(ctx context.Context, pattern *storage.ModerationPattern) error

CreateModerationPattern mocks the CreateModerationPattern method

func (*MockStorage) CreateMove

func (m *MockStorage) CreateMove(ctx context.Context, move *storage.Move) error

CreateMove creates a new account move record

func (*MockStorage) CreateMute

func (m *MockStorage) CreateMute(ctx context.Context, mute *storage.Mute) error

CreateMute mocks the CreateMute method

func (*MockStorage) CreateNotification

func (m *MockStorage) CreateNotification(ctx context.Context, notification *storage.Notification) error

CreateNotification mocks the CreateNotification method

func (*MockStorage) CreateOAuthClient

func (m *MockStorage) CreateOAuthClient(ctx context.Context, client *storage.OAuthClient) error

CreateOAuthClient mocks the CreateOAuthClient method

func (*MockStorage) CreateObject

func (m *MockStorage) CreateObject(ctx context.Context, object any) error

CreateObject mocks the CreateObject method

func (*MockStorage) CreatePoll

func (m *MockStorage) CreatePoll(ctx context.Context, poll *storage.Poll) error

CreatePoll mocks the CreatePoll method

func (*MockStorage) CreatePushSubscription

func (m *MockStorage) CreatePushSubscription(ctx context.Context, username string, subscription *storage.PushSubscription) error

CreatePushSubscription mocks the CreatePushSubscription method

func (*MockStorage) CreateQuoteRelationship

func (m *MockStorage) CreateQuoteRelationship(ctx context.Context, quote *storage.QuoteRelationship) error

CreateQuoteRelationship mocks the CreateQuoteRelationship method

func (*MockStorage) CreateRefreshToken

func (m *MockStorage) CreateRefreshToken(ctx context.Context, token *storage.RefreshToken) error

CreateRefreshToken mocks the CreateRefreshToken method

func (*MockStorage) CreateReport

func (m *MockStorage) CreateReport(ctx context.Context, report *storage.Report) error

CreateReport mocks the CreateReport method

func (*MockStorage) CreateScheduledStatus

func (m *MockStorage) CreateScheduledStatus(ctx context.Context, scheduled *storage.ScheduledStatus) error

CreateScheduledStatus mocks the CreateScheduledStatus method

func (*MockStorage) CreateSession

func (m *MockStorage) CreateSession(ctx context.Context, session *storage.Session) error

CreateSession mocks the CreateSession method

func (*MockStorage) CreateSeveredRelationship

func (m *MockStorage) CreateSeveredRelationship(ctx context.Context, rel *storage.SeveredRelationship) error

CreateSeveredRelationship mocks the CreateSeveredRelationship method

func (*MockStorage) CreateStatusPin

func (m *MockStorage) CreateStatusPin(ctx context.Context, pin *storage.StatusPin) error

CreateStatusPin mocks the CreateStatusPin method

func (*MockStorage) CreateTrustRelationship

func (m *MockStorage) CreateTrustRelationship(ctx context.Context, relationship *storage.TrustRelationship) error

CreateTrustRelationship mocks the CreateTrustRelationship method

func (*MockStorage) CreateUpdateHistory

func (m *MockStorage) CreateUpdateHistory(ctx context.Context, history *storage.UpdateHistory) error

CreateUpdateHistory mocks the CreateUpdateHistory method

func (*MockStorage) CreateUser

func (m *MockStorage) CreateUser(ctx context.Context, user *storage.User) error

CreateUser mocks the CreateUser method

func (*MockStorage) CreateVouch

func (m *MockStorage) CreateVouch(ctx context.Context, vouch *storage.Vouch) error

CreateVouch mocks the CreateVouch method

func (*MockStorage) DeleteAccountNote

func (m *MockStorage) DeleteAccountNote(ctx context.Context, username, targetActorID string) error

DeleteAccountNote mocks the DeleteAccountNote method

func (*MockStorage) DeleteAccountPin

func (m *MockStorage) DeleteAccountPin(ctx context.Context, username, pinnedActorID string) error

DeleteAccountPin mocks the DeleteAccountPin method

func (*MockStorage) DeleteActor

func (m *MockStorage) DeleteActor(ctx context.Context, username string) error

DeleteActor mocks the DeleteActor method

func (*MockStorage) DeleteAllPushSubscriptions

func (m *MockStorage) DeleteAllPushSubscriptions(ctx context.Context, username string) error

DeleteAllPushSubscriptions mocks the DeleteAllPushSubscriptions method

func (*MockStorage) DeleteAllRecoveryCodes

func (m *MockStorage) DeleteAllRecoveryCodes(ctx context.Context, username string) error

DeleteAllRecoveryCodes mocks the DeleteAllRecoveryCodes method

func (*MockStorage) DeleteAnnounce

func (m *MockStorage) DeleteAnnounce(ctx context.Context, actor, object string) error

DeleteAnnounce mocks the DeleteAnnounce method

func (*MockStorage) DeleteAnnouncement

func (m *MockStorage) DeleteAnnouncement(ctx context.Context, id string) error

DeleteAnnouncement mocks the DeleteAnnouncement method

func (*MockStorage) DeleteAuthorizationCode

func (m *MockStorage) DeleteAuthorizationCode(ctx context.Context, code string) error

DeleteAuthorizationCode mocks the DeleteAuthorizationCode method

func (*MockStorage) DeleteBlock

func (m *MockStorage) DeleteBlock(ctx context.Context, actor, blockedActor string) error

DeleteBlock mocks the DeleteBlock method

func (*MockStorage) DeleteConversation

func (m *MockStorage) DeleteConversation(ctx context.Context, id string) error

DeleteConversation mocks the DeleteConversation method

func (*MockStorage) DeleteConversationMute

func (m *MockStorage) DeleteConversationMute(ctx context.Context, username, conversationID string) error

DeleteConversationMute mocks the DeleteConversationMute method

func (*MockStorage) DeleteCustomEmoji

func (m *MockStorage) DeleteCustomEmoji(ctx context.Context, shortcode string) error

DeleteCustomEmoji mocks the DeleteCustomEmoji method

func (*MockStorage) DeleteDomainAllow

func (m *MockStorage) DeleteDomainAllow(ctx context.Context, id string) error

DeleteDomainAllow mocks the DeleteDomainAllow method

func (*MockStorage) DeleteDomainBlock

func (m *MockStorage) DeleteDomainBlock(ctx context.Context, id string) error

DeleteDomainBlock mocks the DeleteDomainBlock method

func (*MockStorage) DeleteEmailDomainBlock

func (m *MockStorage) DeleteEmailDomainBlock(ctx context.Context, id string) error

DeleteEmailDomainBlock mocks the DeleteEmailDomainBlock method

func (*MockStorage) DeleteExpiredTimelineEntries

func (m *MockStorage) DeleteExpiredTimelineEntries(ctx context.Context, before time.Time) error

DeleteExpiredTimelineEntries mocks the DeleteExpiredTimelineEntries method

func (*MockStorage) DeleteFeaturedTag

func (m *MockStorage) DeleteFeaturedTag(ctx context.Context, userID string, featuredTagID string) error

DeleteFeaturedTag mocks the DeleteFeaturedTag method

func (*MockStorage) DeleteFilter

func (m *MockStorage) DeleteFilter(ctx context.Context, filterID string) error

DeleteFilter mocks the DeleteFilter method

func (*MockStorage) DeleteFilterKeyword

func (m *MockStorage) DeleteFilterKeyword(ctx context.Context, keywordID string) error

DeleteFilterKeyword mocks the DeleteFilterKeyword method

func (*MockStorage) DeleteFilterStatus

func (m *MockStorage) DeleteFilterStatus(ctx context.Context, statusID string) error

DeleteFilterStatus mocks the DeleteFilterStatus method

func (*MockStorage) DeleteFromTimeline

func (m *MockStorage) DeleteFromTimeline(ctx context.Context, timelineType, timelineID, entryID string) error

DeleteFromTimeline mocks the DeleteFromTimeline method

func (*MockStorage) DeleteInstanceDomainBlock

func (m *MockStorage) DeleteInstanceDomainBlock(ctx context.Context, domain string) error

DeleteInstanceDomainBlock mocks the DeleteInstanceDomainBlock method

func (*MockStorage) DeleteLike

func (m *MockStorage) DeleteLike(ctx context.Context, actor, object string) error

DeleteLike mocks the DeleteLike method

func (*MockStorage) DeleteList

func (m *MockStorage) DeleteList(ctx context.Context, listID string) error

DeleteList mocks the DeleteList method

func (*MockStorage) DeleteModerationPattern

func (m *MockStorage) DeleteModerationPattern(ctx context.Context, patternID string) error

DeleteModerationPattern mocks the DeleteModerationPattern method

func (*MockStorage) DeleteMute

func (m *MockStorage) DeleteMute(ctx context.Context, actor, mutedActor string) error

DeleteMute mocks the DeleteMute method

func (*MockStorage) DeleteNotification

func (m *MockStorage) DeleteNotification(ctx context.Context, id string) error

DeleteNotification mocks the DeleteNotification method

func (*MockStorage) DeleteOAuthClient

func (m *MockStorage) DeleteOAuthClient(ctx context.Context, clientID string) error

DeleteOAuthClient mocks the DeleteOAuthClient method

func (*MockStorage) DeleteOAuthState

func (m *MockStorage) DeleteOAuthState(ctx context.Context, state string) error

DeleteOAuthState mocks the DeleteOAuthState method

func (*MockStorage) DeleteObject

func (m *MockStorage) DeleteObject(ctx context.Context, id string) error

DeleteObject mocks the DeleteObject method

func (*MockStorage) DeleteOldHashtagTrends

func (m *MockStorage) DeleteOldHashtagTrends(ctx context.Context, before time.Time) error

DeleteOldHashtagTrends mocks the DeleteOldHashtagTrends method

func (*MockStorage) DeleteOldLinkTrends

func (m *MockStorage) DeleteOldLinkTrends(ctx context.Context, before time.Time) error

DeleteOldLinkTrends mocks the DeleteOldLinkTrends method

func (*MockStorage) DeleteOldStatusTrends

func (m *MockStorage) DeleteOldStatusTrends(ctx context.Context, before time.Time) error

DeleteOldStatusTrends mocks the DeleteOldStatusTrends method

func (*MockStorage) DeletePushSubscription

func (m *MockStorage) DeletePushSubscription(ctx context.Context, username, subscriptionID string) error

DeletePushSubscription mocks the DeletePushSubscription method

func (*MockStorage) DeleteRecoveryRequest

func (m *MockStorage) DeleteRecoveryRequest(ctx context.Context, requestID string) error

DeleteRecoveryRequest mocks the DeleteRecoveryRequest method

func (*MockStorage) DeleteRecoveryToken

func (m *MockStorage) DeleteRecoveryToken(ctx context.Context, key string) error

DeleteRecoveryToken mocks the DeleteRecoveryToken method

func (*MockStorage) DeleteRefreshToken

func (m *MockStorage) DeleteRefreshToken(ctx context.Context, token string) error

DeleteRefreshToken mocks the DeleteRefreshToken method

func (*MockStorage) DeleteScheduledStatus

func (m *MockStorage) DeleteScheduledStatus(ctx context.Context, id string) error

DeleteScheduledStatus mocks the DeleteScheduledStatus method

func (*MockStorage) DeleteSession

func (m *MockStorage) DeleteSession(ctx context.Context, sessionID string) error

DeleteSession mocks the DeleteSession method

func (*MockStorage) DeleteStatusPin

func (m *MockStorage) DeleteStatusPin(ctx context.Context, username, statusID string) error

DeleteStatusPin mocks the DeleteStatusPin method

func (*MockStorage) DeleteTrustRelationship

func (m *MockStorage) DeleteTrustRelationship(ctx context.Context, trusterID, trusteeID, category string) error

DeleteTrustRelationship mocks the DeleteTrustRelationship method

func (*MockStorage) DeleteTrustee

func (m *MockStorage) DeleteTrustee(ctx context.Context, username, trusteeActorID string) error

DeleteTrustee mocks the DeleteTrustee method

func (*MockStorage) DeleteUser

func (m *MockStorage) DeleteUser(ctx context.Context, username string) error

DeleteUser mocks the DeleteUser method

func (*MockStorage) DeleteWalletChallenge

func (m *MockStorage) DeleteWalletChallenge(ctx context.Context, challengeID string) error

DeleteWalletChallenge mocks the DeleteWalletChallenge method

func (*MockStorage) DeleteWalletCredential

func (m *MockStorage) DeleteWalletCredential(ctx context.Context, username, address string) error

DeleteWalletCredential mocks the DeleteWalletCredential method

func (*MockStorage) DeleteWebAuthnChallenge

func (m *MockStorage) DeleteWebAuthnChallenge(ctx context.Context, challengeID string) error

DeleteWebAuthnChallenge mocks the DeleteWebAuthnChallenge method

func (*MockStorage) DeleteWebAuthnCredential

func (m *MockStorage) DeleteWebAuthnCredential(ctx context.Context, credentialID string) error

DeleteWebAuthnCredential mocks the DeleteWebAuthnCredential method

func (*MockStorage) DismissAnnouncement

func (m *MockStorage) DismissAnnouncement(ctx context.Context, username, announcementID string) error

DismissAnnouncement mocks the DismissAnnouncement method

func (*MockStorage) FanOutPost

func (m *MockStorage) FanOutPost(ctx context.Context, activity *activitypub.Activity) error

FanOutPost mocks the FanOutPost method

func (*MockStorage) FollowHashtag

func (m *MockStorage) FollowHashtag(ctx context.Context, userID string, hashtag string) error

FollowHashtag mocks the FollowHashtag method

func (*MockStorage) GenerateSearchSuggestions

func (m *MockStorage) GenerateSearchSuggestions(ctx context.Context, userID, partialQuery string, limit int) ([]string, error)

GenerateSearchSuggestions mocks the GenerateSearchSuggestions method

func (*MockStorage) GetAPIRateLimitInfo

func (m *MockStorage) GetAPIRateLimitInfo(ctx context.Context, userID, endpoint string, limit int, window time.Duration) (remaining int, resetTime time.Time, err error)

GetAPIRateLimitInfo mocks the GetAPIRateLimitInfo method

func (*MockStorage) GetAccountNote

func (m *MockStorage) GetAccountNote(ctx context.Context, username, targetActorID string) (*storage.AccountNote, error)

GetAccountNote mocks the GetAccountNote method

func (*MockStorage) GetAccountPins

func (m *MockStorage) GetAccountPins(ctx context.Context, username string) ([]*storage.AccountPin, error)

GetAccountPins mocks the GetAccountPins method

func (*MockStorage) GetAccountSuggestions

func (m *MockStorage) GetAccountSuggestions(ctx context.Context, userID string, limit int) ([]*activitypub.Actor, error)

GetAccountSuggestions mocks the GetAccountSuggestions method

func (*MockStorage) GetActiveRecoveryRequests

func (m *MockStorage) GetActiveRecoveryRequests(ctx context.Context, username string) ([]*storage.SocialRecoveryRequest, error)

GetActiveRecoveryRequests mocks the GetActiveRecoveryRequests method

func (*MockStorage) GetActiveRelays

func (m *MockStorage) GetActiveRelays(ctx context.Context) ([]*storage.RelayInfo, error)

GetActiveRelays mocks the GetActiveRelays method

func (*MockStorage) GetActiveUserCount

func (m *MockStorage) GetActiveUserCount(ctx context.Context, days int) (int64, error)

GetActiveUserCount mocks the GetActiveUserCount method

func (*MockStorage) GetActivity

func (m *MockStorage) GetActivity(ctx context.Context, id string) (*activitypub.Activity, error)

GetActivity mocks the GetActivity method

func (*MockStorage) GetActor

func (m *MockStorage) GetActor(ctx context.Context, username string) (*activitypub.Actor, error)

GetActor mocks the GetActor method

func (*MockStorage) GetActorAnnounces

func (m *MockStorage) GetActorAnnounces(ctx context.Context, actorID string, limit int, cursor string) ([]*storage.Announce, string, error)

GetActorAnnounces mocks the GetActorAnnounces method

func (*MockStorage) GetActorByNumericID

func (m *MockStorage) GetActorByNumericID(ctx context.Context, numericID string) (*activitypub.Actor, error)

GetActorByNumericID mocks the GetActorByNumericID method

func (*MockStorage) GetActorLikes

func (m *MockStorage) GetActorLikes(ctx context.Context, actorID string, limit int, cursor string) ([]*storage.Like, string, error)

GetActorLikes mocks the GetActorLikes method

func (*MockStorage) GetActorPrivateKey

func (m *MockStorage) GetActorPrivateKey(ctx context.Context, username string) (string, error)

GetActorPrivateKey mocks the GetActorPrivateKey method

func (*MockStorage) GetActorWithMetadata

func (m *MockStorage) GetActorWithMetadata(ctx context.Context, username string) (*activitypub.Actor, *storage.ActorMetadata, error)

GetActorWithMetadata mocks the GetActorWithMetadata method

func (*MockStorage) GetAffectedFollows

func (m *MockStorage) GetAffectedFollows(ctx context.Context, localInstance, remoteInstance string) ([]storage.AffectedFollow, error)

GetAffectedFollows mocks the GetAffectedFollows method

func (*MockStorage) GetAffectedRelationships

func (m *MockStorage) GetAffectedRelationships(ctx context.Context, userID, domain string) ([]*storage.RelationshipRecord, error)

GetAffectedRelationships mocks the GetAffectedRelationships method

func (*MockStorage) GetAllPreferences

func (m *MockStorage) GetAllPreferences(ctx context.Context, username string) (map[string]any, error)

GetAllPreferences mocks the GetAllPreferences method

func (*MockStorage) GetAllRelays

func (m *MockStorage) GetAllRelays(ctx context.Context, limit int, cursor string) ([]*storage.RelayInfo, string, error)

GetAllRelays mocks the GetAllRelays method

func (*MockStorage) GetAllTrustRelationships

func (m *MockStorage) GetAllTrustRelationships(ctx context.Context, limit int) ([]*storage.TrustRelationship, error)

GetAllTrustRelationships mocks the GetAllTrustRelationships method

func (*MockStorage) GetAnnounce

func (m *MockStorage) GetAnnounce(ctx context.Context, actor, object string) (*storage.Announce, error)

GetAnnounce mocks the GetAnnounce method

func (*MockStorage) GetAnnouncement

func (m *MockStorage) GetAnnouncement(ctx context.Context, id string) (*storage.Announcement, error)

GetAnnouncement mocks the GetAnnouncement method

func (*MockStorage) GetAnnouncementReactions

func (m *MockStorage) GetAnnouncementReactions(ctx context.Context, announcementID string) (map[string][]string, error)

GetAnnouncementReactions mocks the GetAnnouncementReactions method

func (*MockStorage) GetAnnouncements

func (m *MockStorage) GetAnnouncements(ctx context.Context, active bool) ([]*storage.Announcement, error)

GetAnnouncements mocks the GetAnnouncements method

func (*MockStorage) GetAuthorizationCode

func (m *MockStorage) GetAuthorizationCode(ctx context.Context, code string) (*storage.AuthorizationCode, error)

GetAuthorizationCode mocks the GetAuthorizationCode method

func (*MockStorage) GetBlock

func (m *MockStorage) GetBlock(ctx context.Context, actor, blockedActor string) (*storage.Block, error)

GetBlock mocks the GetBlock method

func (*MockStorage) GetBlockedActors

func (m *MockStorage) GetBlockedActors(ctx context.Context, actor string, limit int, cursor string) ([]*storage.Block, string, error)

GetBlockedActors mocks the GetBlockedActors method

func (*MockStorage) GetBlockedByActors

func (m *MockStorage) GetBlockedByActors(ctx context.Context, actor string, limit int, cursor string) ([]*storage.Block, string, error)

GetBlockedByActors mocks the GetBlockedByActors method

func (*MockStorage) GetBookmarks

func (m *MockStorage) GetBookmarks(ctx context.Context, username string, limit int, cursor string) ([]string, string, error)

GetBookmarks mocks the GetBookmarks method

func (*MockStorage) GetBoostCount

func (m *MockStorage) GetBoostCount(ctx context.Context, statusID string) (int64, error)

GetBoostCount mocks the GetBoostCount method

func (*MockStorage) GetCachedRemoteActor

func (m *MockStorage) GetCachedRemoteActor(ctx context.Context, handle string) (*activitypub.Actor, error)

GetCachedRemoteActor mocks the GetCachedRemoteActor method

func (*MockStorage) GetCollection

func (m *MockStorage) GetCollection(ctx context.Context, username, collectionType string, limit int, cursor string) (*activitypub.OrderedCollectionPage, error)

GetCollection mocks the GetCollection method

func (*MockStorage) GetCollectionItems

func (m *MockStorage) GetCollectionItems(ctx context.Context, collection string, limit int, cursor string) ([]*storage.CollectionItem, string, error)

GetCollectionItems mocks the GetCollectionItems method

func (*MockStorage) GetCommunityNote

func (m *MockStorage) GetCommunityNote(ctx context.Context, noteID string) (*storage.CommunityNote, error)

GetCommunityNote mocks the GetCommunityNote method

func (*MockStorage) GetCommunityNoteVotes

func (m *MockStorage) GetCommunityNoteVotes(ctx context.Context, noteID string) ([]*storage.CommunityNoteVote, error)

GetCommunityNoteVotes mocks the GetCommunityNoteVotes method

func (*MockStorage) GetCommunityNotesByAuthor

func (m *MockStorage) GetCommunityNotesByAuthor(ctx context.Context, authorID string, limit int, cursor string) ([]*storage.CommunityNote, string, error)

GetCommunityNotesByAuthor mocks the GetCommunityNotesByAuthor method

func (*MockStorage) GetContactAccount

func (m *MockStorage) GetContactAccount(ctx context.Context) (*storage.ActorRecord, error)

GetContactAccount mocks the GetContactAccount method

func (*MockStorage) GetConversation

func (m *MockStorage) GetConversation(ctx context.Context, id string) (*storage.Conversation, error)

GetConversation mocks the GetConversation method

func (*MockStorage) GetConversationByParticipants

func (m *MockStorage) GetConversationByParticipants(ctx context.Context, participants []string) (*storage.Conversation, error)

GetConversationByParticipants mocks the GetConversationByParticipants method

func (*MockStorage) GetConversations

func (m *MockStorage) GetConversations(ctx context.Context, username string, limit int, cursor string) ([]*models.Conversation, string, error)

GetConversations mocks the GetConversations method

func (*MockStorage) GetCostProjections

func (m *MockStorage) GetCostProjections(ctx context.Context, period string) (*storage.CostProjection, error)

GetCostProjections mocks the GetCostProjections method

func (*MockStorage) GetCustomEmoji

func (m *MockStorage) GetCustomEmoji(ctx context.Context, shortcode string) (*storage.CustomEmoji, error)

GetCustomEmoji mocks the GetCustomEmoji method

func (*MockStorage) GetCustomEmojis

func (m *MockStorage) GetCustomEmojis(ctx context.Context) ([]*storage.CustomEmoji, error)

GetCustomEmojis mocks the GetCustomEmojis method

func (*MockStorage) GetCustomEmojisByCategory

func (m *MockStorage) GetCustomEmojisByCategory(ctx context.Context, category string) ([]*storage.CustomEmoji, error)

GetCustomEmojisByCategory mocks the GetCustomEmojisByCategory method

func (*MockStorage) GetDNSCache

func (m *MockStorage) GetDNSCache(ctx context.Context, hostname string) (*storage.DNSCacheEntry, error)

GetDNSCache mocks the GetDNSCache method

func (*MockStorage) GetDailyActiveUserCount

func (m *MockStorage) GetDailyActiveUserCount(ctx context.Context) (int64, error)

GetDailyActiveUserCount mocks the GetDailyActiveUserCount method

func (*MockStorage) GetDevice

func (m *MockStorage) GetDevice(ctx context.Context, deviceID string) (*storage.Device, error)

GetDevice mocks the GetDevice method

func (*MockStorage) GetDirectTimeline

func (m *MockStorage) GetDirectTimeline(ctx context.Context, username string, limit int, cursor string) ([]*storage.TimelineEntry, string, error)

GetDirectTimeline mocks the GetDirectTimeline method

func (*MockStorage) GetDismissedAnnouncements

func (m *MockStorage) GetDismissedAnnouncements(ctx context.Context, username string) ([]string, error)

GetDismissedAnnouncements mocks the GetDismissedAnnouncements method

func (*MockStorage) GetDomainAllows

func (m *MockStorage) GetDomainAllows(ctx context.Context, limit int, cursor string) ([]*storage.DomainAllow, string, error)

GetDomainAllows mocks the GetDomainAllows method

func (*MockStorage) GetDomainBlock

func (m *MockStorage) GetDomainBlock(ctx context.Context, id string) (*storage.InstanceDomainBlock, error)

GetDomainBlock mocks the GetDomainBlock method

func (*MockStorage) GetDomainBlocks

func (m *MockStorage) GetDomainBlocks(ctx context.Context, limit int, cursor string) ([]*storage.InstanceDomainBlock, string, error)

GetDomainBlocks mocks the GetDomainBlocks method

func (*MockStorage) GetDomainStats

func (m *MockStorage) GetDomainStats(ctx context.Context, domain string) (any, error)

GetDomainStats mocks the GetDomainStats method

func (*MockStorage) GetDueScheduledStatuses

func (m *MockStorage) GetDueScheduledStatuses(ctx context.Context, before time.Time, limit int) ([]*storage.ScheduledStatus, error)

GetDueScheduledStatuses mocks the GetDueScheduledStatuses method

func (*MockStorage) GetEmailDomainBlocks

func (m *MockStorage) GetEmailDomainBlocks(ctx context.Context, limit int, cursor string) ([]*storage.EmailDomainBlock, string, error)

GetEmailDomainBlocks mocks the GetEmailDomainBlocks method

func (*MockStorage) GetEngagementMetrics

func (m *MockStorage) GetEngagementMetrics(ctx context.Context, statusID string) (*storage.EngagementMetrics, error)

GetEngagementMetrics mocks the GetEngagementMetrics method

func (*MockStorage) GetExtendedDescription

func (m *MockStorage) GetExtendedDescription(ctx context.Context) (string, time.Time, error)

GetExtendedDescription mocks the GetExtendedDescription method

func (*MockStorage) GetFeaturedTags

func (m *MockStorage) GetFeaturedTags(ctx context.Context, userID string) ([]*storage.FeaturedTag, error)

GetFeaturedTags mocks the GetFeaturedTags method

func (*MockStorage) GetFederationCosts

func (m *MockStorage) GetFederationCosts(ctx context.Context, startTime, endTime time.Time, limit int, cursor string) ([]*storage.FederationCost, string, error)

GetFederationCosts mocks the GetFederationCosts method

func (*MockStorage) GetFederationEdges

func (m *MockStorage) GetFederationEdges(ctx context.Context, domains []string) ([]*storage.FederationEdge, error)

GetFederationEdges mocks the GetFederationEdges method

func (*MockStorage) GetFederationNodes

func (m *MockStorage) GetFederationNodes(ctx context.Context, depth int) ([]*storage.FederationNode, error)

GetFederationNodes mocks the GetFederationNodes method

func (*MockStorage) GetFederationStatistics

func (m *MockStorage) GetFederationStatistics(ctx context.Context, startTime, endTime time.Time) (*storage.FederationStats, error)

GetFederationStatistics mocks the GetFederationStatistics method

func (*MockStorage) GetFieldVerification

func (m *MockStorage) GetFieldVerification(ctx context.Context, username, fieldName string) (*storage.ActorField, error)

GetFieldVerification mocks the GetFieldVerification method

func (*MockStorage) GetFilter

func (m *MockStorage) GetFilter(ctx context.Context, filterID string) (*storage.Filter, error)

GetFilter mocks the GetFilter method

func (*MockStorage) GetFilterKeywords

func (m *MockStorage) GetFilterKeywords(ctx context.Context, filterID string) ([]*storage.FilterKeyword, error)

GetFilterKeywords mocks the GetFilterKeywords method

func (*MockStorage) GetFilterStatuses

func (m *MockStorage) GetFilterStatuses(ctx context.Context, filterID string) ([]*storage.FilterStatus, error)

GetFilterStatuses mocks the GetFilterStatuses method

func (*MockStorage) GetFiltersForUser

func (m *MockStorage) GetFiltersForUser(ctx context.Context, username string) ([]*storage.Filter, error)

GetFiltersForUser mocks the GetFiltersForUser method

func (*MockStorage) GetFlag

func (m *MockStorage) GetFlag(ctx context.Context, id string) (*storage.Flag, error)

GetFlag mocks the GetFlag method

func (*MockStorage) GetFlagsByActor

func (m *MockStorage) GetFlagsByActor(ctx context.Context, actorID string, limit int, cursor string) ([]*storage.Flag, string, error)

GetFlagsByActor mocks the GetFlagsByActor method

func (*MockStorage) GetFlagsByObject

func (m *MockStorage) GetFlagsByObject(ctx context.Context, objectID string, limit int, cursor string) ([]*storage.Flag, string, error)

GetFlagsByObject mocks the GetFlagsByObject method

func (*MockStorage) GetFollowRequest

func (m *MockStorage) GetFollowRequest(ctx context.Context, followerID, targetID string) (*storage.RelationshipRecord, error)

GetFollowRequest mocks the GetFollowRequest method

func (*MockStorage) GetFollowRequestState

func (m *MockStorage) GetFollowRequestState(ctx context.Context, followerUsername, followedUsername string) (string, error)

GetFollowRequestState mocks the GetFollowRequestState method

func (*MockStorage) GetFollowedHashtags

func (m *MockStorage) GetFollowedHashtags(ctx context.Context, userID string, limit int, cursor string) ([]*storage.HashtagFollow, string, error)

GetFollowedHashtags mocks the GetFollowedHashtags method

func (*MockStorage) GetFollowers

func (m *MockStorage) GetFollowers(ctx context.Context, username string, limit int, cursor string) ([]string, string, error)

GetFollowers mocks the GetFollowers method

func (*MockStorage) GetFollowersCount

func (m *MockStorage) GetFollowersCount(ctx context.Context, actorID string) (int, error)

GetFollowersCount mocks the GetFollowersCount method

func (*MockStorage) GetFollowing

func (m *MockStorage) GetFollowing(ctx context.Context, username string, limit int, cursor string) ([]string, string, error)

GetFollowing mocks the GetFollowing method

func (*MockStorage) GetFollowingCount

func (m *MockStorage) GetFollowingCount(ctx context.Context, actorID string) (int, error)

GetFollowingCount mocks the GetFollowingCount method

func (*MockStorage) GetHashtagActivity

func (m *MockStorage) GetHashtagActivity(ctx context.Context, hashtag string, since time.Time) ([]*storage.Activity, error)

GetHashtagActivity mocks the GetHashtagActivity method

func (*MockStorage) GetHashtagInfo

func (m *MockStorage) GetHashtagInfo(ctx context.Context, hashtag string) (*storage.Hashtag, error)

GetHashtagInfo mocks the GetHashtagInfo method

func (*MockStorage) GetHashtagStats

func (m *MockStorage) GetHashtagStats(ctx context.Context, hashtag string) (any, error)

GetHashtagStats mocks the GetHashtagStats method

func (*MockStorage) GetHashtagTimeline

func (m *MockStorage) GetHashtagTimeline(ctx context.Context, hashtag string, local bool, limit int, cursor string) ([]*storage.TimelineEntry, string, error)

GetHashtagTimeline mocks the GetHashtagTimeline method

func (*MockStorage) GetHashtagTimelineAdvanced

func (m *MockStorage) GetHashtagTimelineAdvanced(ctx context.Context, hashtag string, maxID *string, limit int, userID string) ([]*storage.StatusSearchResult, error)

GetHashtagTimelineAdvanced mocks the GetHashtagTimelineAdvanced method

func (*MockStorage) GetHashtagUsageHistory

func (m *MockStorage) GetHashtagUsageHistory(ctx context.Context, hashtag string, days int) ([]int64, error)

GetHashtagUsageHistory mocks the GetHashtagUsageHistory method

func (*MockStorage) GetHomeTimeline

func (m *MockStorage) GetHomeTimeline(ctx context.Context, username string, limit int, cursor string) ([]*storage.TimelineEntry, string, error)

GetHomeTimeline mocks the GetHomeTimeline method

func (*MockStorage) GetInboxActivities

func (m *MockStorage) GetInboxActivities(ctx context.Context, username string, limit int, cursor string) ([]*activitypub.Activity, string, error)

GetInboxActivities mocks the GetInboxActivities method

func (*MockStorage) GetInstanceConnections

func (m *MockStorage) GetInstanceConnections(ctx context.Context, domain string, connectionType string) ([]*storage.InstanceConnection, error)

GetInstanceConnections mocks the GetInstanceConnections method

func (*MockStorage) GetInstanceDomainBlock

func (m *MockStorage) GetInstanceDomainBlock(ctx context.Context, domain string) (*storage.InstanceDomainBlock, error)

GetInstanceDomainBlock mocks the GetInstanceDomainBlock method

func (*MockStorage) GetInstanceDomainBlockByID

func (m *MockStorage) GetInstanceDomainBlockByID(ctx context.Context, id string) (*storage.InstanceDomainBlock, error)

GetInstanceDomainBlockByID mocks the GetInstanceDomainBlockByID method

func (*MockStorage) GetInstanceHealthReport

func (m *MockStorage) GetInstanceHealthReport(ctx context.Context, domain string, period time.Duration) (*storage.InstanceHealthReport, error)

GetInstanceHealthReport mocks the GetInstanceHealthReport method

func (*MockStorage) GetInstanceInfo

func (m *MockStorage) GetInstanceInfo(ctx context.Context, domain string) (*storage.InstanceInfo, error)

GetInstanceInfo mocks the GetInstanceInfo method

func (*MockStorage) GetInstanceMetadata

func (m *MockStorage) GetInstanceMetadata(ctx context.Context, domain string) (*storage.InstanceMetadata, error)

GetInstanceMetadata mocks the GetInstanceMetadata method

func (*MockStorage) GetInstanceRules

func (m *MockStorage) GetInstanceRules(ctx context.Context) ([]storage.InstanceRule, error)

GetInstanceRules mocks the GetInstanceRules method

func (*MockStorage) GetKnownInstances

func (m *MockStorage) GetKnownInstances(ctx context.Context, limit int, cursor string) ([]*storage.InstanceInfo, string, error)

GetKnownInstances mocks the GetKnownInstances method

func (*MockStorage) GetLatestStatus

func (m *MockStorage) GetLatestStatus(ctx context.Context, actorID string) (*storage.StatusSearchResult, error)

GetLatestStatus mocks the GetLatestStatus method

func (*MockStorage) GetLike

func (m *MockStorage) GetLike(ctx context.Context, actor, object string) (*storage.Like, error)

GetLike mocks the GetLike method

func (*MockStorage) GetLikeCount

func (m *MockStorage) GetLikeCount(ctx context.Context, statusID string) (int64, error)

GetLikeCount mocks the GetLikeCount method

func (*MockStorage) GetLinkedProviders

func (m *MockStorage) GetLinkedProviders(ctx context.Context, username string) ([]string, error)

GetLinkedProviders mocks the GetLinkedProviders method

func (*MockStorage) GetList

func (m *MockStorage) GetList(ctx context.Context, listID string) (*storage.List, error)

GetList mocks the GetList method

func (*MockStorage) GetListAccounts

func (m *MockStorage) GetListAccounts(ctx context.Context, listID string) ([]string, error)

GetListAccounts mocks the GetListAccounts method

func (*MockStorage) GetListTimeline

func (m *MockStorage) GetListTimeline(ctx context.Context, listID string, limit int, cursor string) ([]*storage.TimelineEntry, string, error)

GetListTimeline mocks the GetListTimeline method

func (*MockStorage) GetListsContainingAccount

func (m *MockStorage) GetListsContainingAccount(ctx context.Context, accountID, username string) ([]*storage.List, error)

GetListsContainingAccount mocks the GetListsContainingAccount method

func (*MockStorage) GetListsForUser

func (m *MockStorage) GetListsForUser(ctx context.Context, username string) ([]*storage.List, error)

GetListsForUser mocks the GetListsForUser method

func (*MockStorage) GetLocalPostCount

func (m *MockStorage) GetLocalPostCount(ctx context.Context) (int64, error)

GetLocalPostCount mocks the GetLocalPostCount method

func (*MockStorage) GetLoginAttemptCount

func (m *MockStorage) GetLoginAttemptCount(ctx context.Context, identifier string, since time.Time) (int, error)

GetLoginAttemptCount mocks the GetLoginAttemptCount method

func (*MockStorage) GetManifestGenerationStats

func (m *MockStorage) GetManifestGenerationStats(ctx context.Context, format, startDate, endDate string) (map[string]int64, error)

GetManifestGenerationStats mocks the GetManifestGenerationStats method

func (*MockStorage) GetMarkers

func (m *MockStorage) GetMarkers(ctx context.Context, username string, timelines []string) (map[string]*storage.Marker, error)

GetMarkers mocks the GetMarkers method

func (*MockStorage) GetMediaEventStats

func (m *MockStorage) GetMediaEventStats(ctx context.Context, eventType, startDate, endDate string) (map[string]int64, error)

GetMediaEventStats mocks the GetMediaEventStats method

func (*MockStorage) GetMissingReplies

func (m *MockStorage) GetMissingReplies(ctx context.Context, statusID string) ([]*storage.StatusSearchResult, error)

GetMissingReplies mocks the GetMissingReplies method

func (*MockStorage) GetModerationDecision

func (m *MockStorage) GetModerationDecision(ctx context.Context, objectID string) (*storage.ModerationDecision, error)

GetModerationDecision mocks the GetModerationDecision method

func (*MockStorage) GetModerationEvent

func (m *MockStorage) GetModerationEvent(ctx context.Context, eventID string) (*storage.ModerationEvent, error)

GetModerationEvent mocks the GetModerationEvent method

func (*MockStorage) GetModerationEvents

func (m *MockStorage) GetModerationEvents(ctx context.Context, filter *storage.ModerationEventFilter, limit int, cursor string) ([]*storage.ModerationEvent, string, error)

GetModerationEvents mocks the GetModerationEvents method

func (*MockStorage) GetModerationEventsByActor

func (m *MockStorage) GetModerationEventsByActor(ctx context.Context, actorID string, limit int, cursor string) ([]*storage.ModerationEvent, string, error)

GetModerationEventsByActor mocks the GetModerationEventsByActor method

func (*MockStorage) GetModerationEventsByObject

func (m *MockStorage) GetModerationEventsByObject(ctx context.Context, objectID string, limit int, cursor string) ([]*storage.ModerationEvent, string, error)

GetModerationEventsByObject mocks the GetModerationEventsByObject method

func (*MockStorage) GetModerationHistory

func (m *MockStorage) GetModerationHistory(ctx context.Context, objectID string) (*storage.ModerationHistory, error)

GetModerationHistory mocks the GetModerationHistory method

func (*MockStorage) GetModerationPattern

func (m *MockStorage) GetModerationPattern(ctx context.Context, patternID string) (*storage.ModerationPattern, error)

GetModerationPattern mocks the GetModerationPattern method

func (*MockStorage) GetModerationPatterns

func (m *MockStorage) GetModerationPatterns(ctx context.Context, active bool, severity string, limit int) ([]*storage.ModerationPattern, error)

GetModerationPatterns mocks the GetModerationPatterns method

func (*MockStorage) GetModerationQueue

func (m *MockStorage) GetModerationQueue(ctx context.Context, filter *storage.ModerationFilter) ([]*storage.ModerationQueueItem, error)

GetModerationQueue mocks the GetModerationQueue method

func (*MockStorage) GetModerationQueueCount

func (m *MockStorage) GetModerationQueueCount(ctx context.Context) (int, error)

GetModerationQueueCount mocks the GetModerationQueueCount method

func (*MockStorage) GetModerationQueuePaginated

func (m *MockStorage) GetModerationQueuePaginated(ctx context.Context, limit int, cursor string) ([]*storage.ModerationQueueItem, string, error)

GetModerationQueuePaginated mocks the GetModerationQueuePaginated method

func (*MockStorage) GetModerationReviews

func (m *MockStorage) GetModerationReviews(ctx context.Context, eventID string) ([]*storage.ModerationReview, error)

GetModerationReviews mocks the GetModerationReviews method

func (*MockStorage) GetMonthlyVouchCount

func (m *MockStorage) GetMonthlyVouchCount(ctx context.Context, actorID string, year int, month time.Month) (int, error)

GetMonthlyVouchCount mocks the GetMonthlyVouchCount method

func (*MockStorage) GetMove

func (m *MockStorage) GetMove(ctx context.Context, actor string) (*storage.Move, error)

GetMove mocks the GetMove method

func (*MockStorage) GetMoveByTarget

func (m *MockStorage) GetMoveByTarget(ctx context.Context, target string) ([]*storage.Move, error)

GetMoveByTarget mocks the GetMoveByTarget method

func (*MockStorage) GetMultiHashtagTimeline

func (m *MockStorage) GetMultiHashtagTimeline(ctx context.Context, hashtags []string, maxID *string, limit int, userID string) ([]*storage.StatusSearchResult, error)

GetMultiHashtagTimeline mocks the GetMultiHashtagTimeline method

func (*MockStorage) GetMute

func (m *MockStorage) GetMute(ctx context.Context, actor, mutedActor string) (*storage.Mute, error)

GetMute mocks the GetMute method

func (*MockStorage) GetMutedActors

func (m *MockStorage) GetMutedActors(ctx context.Context, actor string, limit int, cursor string) ([]*storage.Mute, string, error)

GetMutedActors mocks the GetMutedActors method

func (*MockStorage) GetMutedConversations

func (m *MockStorage) GetMutedConversations(ctx context.Context, username string) ([]string, error)

GetMutedConversations mocks the GetMutedConversations method

func (*MockStorage) GetNotification

func (m *MockStorage) GetNotification(ctx context.Context, id string) (*storage.Notification, error)

GetNotification mocks the GetNotification method

func (*MockStorage) GetNotificationPreferences

func (m *MockStorage) GetNotificationPreferences(ctx context.Context, username string) (*storage.NotificationPreferences, error)

GetNotificationPreferences mocks the GetNotificationPreferences method

func (*MockStorage) GetNotifications

func (m *MockStorage) GetNotifications(ctx context.Context, username string, limit int, cursor string) ([]*storage.Notification, string, error)

GetNotifications mocks the GetNotifications method

func (*MockStorage) GetNotificationsAdvanced

func (m *MockStorage) GetNotificationsAdvanced(ctx context.Context, userID string, excludeTypes []string, maxID, sinceID, minID *string, limit int, includeFiltered bool) ([]*storage.Notification, error)

GetNotificationsAdvanced mocks the GetNotificationsAdvanced method

func (*MockStorage) GetNotificationsByAccount

func (m *MockStorage) GetNotificationsByAccount(ctx context.Context, userID, accountID string, limit int) ([]*storage.Notification, error)

GetNotificationsByAccount mocks the GetNotificationsByAccount method

func (*MockStorage) GetNotificationsFiltered

func (m *MockStorage) GetNotificationsFiltered(ctx context.Context, username string, filter *storage.NotificationFilter) ([]*storage.Notification, string, error)

GetNotificationsFiltered mocks the GetNotificationsFiltered method

func (*MockStorage) GetOAuthApp

func (m *MockStorage) GetOAuthApp(ctx context.Context, clientID string) (*storage.OAuthApp, error)

GetOAuthApp mocks the GetOAuthApp method

func (*MockStorage) GetOAuthClient

func (m *MockStorage) GetOAuthClient(ctx context.Context, clientID string) (*storage.OAuthClient, error)

GetOAuthClient mocks the GetOAuthClient method

func (*MockStorage) GetOAuthState

func (m *MockStorage) GetOAuthState(ctx context.Context, state string) (*storage.OAuthState, error)

GetOAuthState mocks the GetOAuthState method

func (*MockStorage) GetObject

func (m *MockStorage) GetObject(ctx context.Context, id string) (any, error)

GetObject mocks the GetObject method

func (*MockStorage) GetObjectAnnounces

func (m *MockStorage) GetObjectAnnounces(ctx context.Context, objectID string, limit int, cursor string) ([]*storage.Announce, string, error)

GetObjectAnnounces mocks the GetObjectAnnounces method

func (*MockStorage) GetObjectLikes

func (m *MockStorage) GetObjectLikes(ctx context.Context, objectID string, limit int, cursor string) ([]*storage.Like, string, error)

GetObjectLikes mocks the GetObjectLikes method

func (*MockStorage) GetObjectsByActor

func (m *MockStorage) GetObjectsByActor(ctx context.Context, actorID string, cursor string, limit int) ([]any, string, error)

GetObjectsByActor mocks the GetObjectsByActor method

func (*MockStorage) GetOpenReportsCount

func (m *MockStorage) GetOpenReportsCount(ctx context.Context) (int, error)

GetOpenReportsCount mocks the GetOpenReportsCount method

func (*MockStorage) GetOutboxActivities

func (m *MockStorage) GetOutboxActivities(ctx context.Context, username string, limit int, cursor string) ([]*activitypub.Activity, string, error)

GetOutboxActivities mocks the GetOutboxActivities method

func (*MockStorage) GetPendingFlags

func (m *MockStorage) GetPendingFlags(ctx context.Context, limit int, cursor string) ([]*storage.Flag, string, error)

GetPendingFlags mocks the GetPendingFlags method

func (*MockStorage) GetPendingFollowRequests

func (m *MockStorage) GetPendingFollowRequests(ctx context.Context, username string, limit int, cursor string) ([]string, string, error)

GetPendingFollowRequests mocks the GetPendingFollowRequests method

func (*MockStorage) GetPoll

func (m *MockStorage) GetPoll(ctx context.Context, pollID string) (*storage.Poll, error)

GetPoll mocks the GetPoll method

func (*MockStorage) GetPollByStatusID

func (m *MockStorage) GetPollByStatusID(ctx context.Context, statusID string) (*storage.Poll, error)

GetPollByStatusID mocks the GetPollByStatusID method

func (*MockStorage) GetPollVotes

func (m *MockStorage) GetPollVotes(ctx context.Context, pollID string) (map[string][]int, error)

GetPollVotes mocks the GetPollVotes method

func (*MockStorage) GetPopularSearchQueries

func (m *MockStorage) GetPopularSearchQueries(ctx context.Context, limit int, timeWindow time.Duration) ([]storage.SearchQueryStats, error)

GetPopularSearchQueries mocks the GetPopularSearchQueries method

func (*MockStorage) GetPreference

func (m *MockStorage) GetPreference(ctx context.Context, username string, key string) (any, error)

GetPreference mocks the GetPreference method

func (*MockStorage) GetPublicTimeline

func (m *MockStorage) GetPublicTimeline(ctx context.Context, local bool, limit int, cursor string) ([]*storage.TimelineEntry, string, error)

GetPublicTimeline mocks the GetPublicTimeline method

func (*MockStorage) GetPushSubscription

func (m *MockStorage) GetPushSubscription(ctx context.Context, username, subscriptionID string) (*storage.PushSubscription, error)

GetPushSubscription mocks the GetPushSubscription method

func (*MockStorage) GetQuoteType

func (m *MockStorage) GetQuoteType(ctx context.Context, statusID string) (string, error)

GetQuoteType mocks the GetQuoteType method

func (*MockStorage) GetQuotesForNote

func (m *MockStorage) GetQuotesForNote(ctx context.Context, noteID string, limit int, cursor string) ([]*storage.QuoteRelationship, string, error)

GetQuotesForNote mocks the GetQuotesForNote method

func (*MockStorage) GetQuotesOfStatus

func (m *MockStorage) GetQuotesOfStatus(ctx context.Context, statusID string, limit int) ([]*storage.StatusSearchResult, error)

GetQuotesOfStatus mocks the GetQuotesOfStatus method

func (*MockStorage) GetRecentHashtags

func (m *MockStorage) GetRecentHashtags(ctx context.Context, since time.Time, limit int) ([]*storage.TrendingHashtag, error)

GetRecentHashtags mocks the GetRecentHashtags method

func (*MockStorage) GetRecentInstanceConnections

func (m *MockStorage) GetRecentInstanceConnections(ctx context.Context, domain string, since time.Duration) ([]*storage.InstanceConnection, error)

GetRecentInstanceConnections mocks the GetRecentInstanceConnections method

func (m *MockStorage) GetRecentLinks(ctx context.Context, since time.Time, limit int) ([]*storage.TrendingLink, error)

GetRecentLinks mocks the GetRecentLinks method

func (*MockStorage) GetRecentStatusesWithEngagement

func (m *MockStorage) GetRecentStatusesWithEngagement(ctx context.Context, since time.Time, limit int) ([]*storage.TrendingStatus, error)

GetRecentStatusesWithEngagement mocks the GetRecentStatusesWithEngagement method

func (*MockStorage) GetRecoveryCodes

func (m *MockStorage) GetRecoveryCodes(ctx context.Context, username string) ([]*storage.RecoveryCodeItem, error)

GetRecoveryCodes mocks the GetRecoveryCodes method

func (*MockStorage) GetRecoveryRequest

func (m *MockStorage) GetRecoveryRequest(ctx context.Context, requestID string) (*storage.SocialRecoveryRequest, error)

GetRecoveryRequest mocks the GetRecoveryRequest method

func (*MockStorage) GetRecoveryToken

func (m *MockStorage) GetRecoveryToken(ctx context.Context, key string) (map[string]any, error)

GetRecoveryToken mocks the GetRecoveryToken method

func (*MockStorage) GetRefreshToken

func (m *MockStorage) GetRefreshToken(ctx context.Context, token string) (*storage.RefreshToken, error)

GetRefreshToken mocks the GetRefreshToken method

func (*MockStorage) GetRelationshipNote

func (m *MockStorage) GetRelationshipNote(ctx context.Context, userID, targetID string) (*storage.AccountNote, error)

GetRelationshipNote mocks the GetRelationshipNote method

func (*MockStorage) GetRelayInfo

func (m *MockStorage) GetRelayInfo(ctx context.Context, relayURL string) (*storage.RelayInfo, error)

GetRelayInfo mocks the GetRelayInfo method

func (*MockStorage) GetReplies

func (m *MockStorage) GetReplies(ctx context.Context, objectID string, limit int, cursor string) ([]any, string, error)

GetReplies mocks the GetReplies method

func (*MockStorage) GetReplyCount

func (m *MockStorage) GetReplyCount(ctx context.Context, statusID string) (int64, error)

GetReplyCount mocks the GetReplyCount method

func (*MockStorage) GetReport

func (m *MockStorage) GetReport(ctx context.Context, id string) (*storage.Report, error)

GetReport mocks the GetReport method

func (*MockStorage) GetReportStats

func (m *MockStorage) GetReportStats(ctx context.Context, username string) (*storage.ReportStats, error)

GetReportStats mocks the GetReportStats method

func (*MockStorage) GetReportedStatuses

func (m *MockStorage) GetReportedStatuses(ctx context.Context, reportID string) ([]any, error)

GetReportedStatuses mocks the GetReportedStatuses method

func (*MockStorage) GetReportsByStatus

func (m *MockStorage) GetReportsByStatus(ctx context.Context, status storage.ReportStatus, limit int, cursor string) ([]*storage.Report, string, error)

GetReportsByStatus mocks the GetReportsByStatus method

func (*MockStorage) GetReportsByTarget

func (m *MockStorage) GetReportsByTarget(ctx context.Context, targetAccountID string, limit int, cursor string) ([]*storage.Report, string, error)

GetReportsByTarget mocks the GetReportsByTarget method

func (*MockStorage) GetReputation

func (m *MockStorage) GetReputation(ctx context.Context, actorID string) (*storage.Reputation, error)

GetReputation mocks the GetReputation method

func (*MockStorage) GetReputationHistory

func (m *MockStorage) GetReputationHistory(ctx context.Context, actorID string, limit int) ([]*storage.Reputation, error)

GetReputationHistory mocks the GetReputationHistory method

func (*MockStorage) GetReviewerStats

func (m *MockStorage) GetReviewerStats(ctx context.Context, reviewerID string) (*storage.ReviewerStats, error)

GetReviewerStats mocks the GetReviewerStats method

func (*MockStorage) GetRulesByCategory

func (m *MockStorage) GetRulesByCategory(ctx context.Context, category string) ([]storage.InstanceRule, error)

GetRulesByCategory mocks the GetRulesByCategory method

func (*MockStorage) GetScheduledStatus

func (m *MockStorage) GetScheduledStatus(ctx context.Context, id string) (*storage.ScheduledStatus, error)

GetScheduledStatus mocks the GetScheduledStatus method

func (*MockStorage) GetScheduledStatusMedia

func (m *MockStorage) GetScheduledStatusMedia(ctx context.Context, statusID string) ([]any, error)

GetScheduledStatusMedia mocks the GetScheduledStatusMedia method

func (*MockStorage) GetScheduledStatuses

func (m *MockStorage) GetScheduledStatuses(ctx context.Context, username string, limit int, cursor string) ([]*storage.ScheduledStatus, string, error)

GetScheduledStatuses mocks the GetScheduledStatuses method

func (*MockStorage) GetSearchSuggestions

func (m *MockStorage) GetSearchSuggestions(ctx context.Context, prefix string) ([]storage.SearchSuggestion, error)

GetSearchSuggestions mocks the GetSearchSuggestions method

func (*MockStorage) GetSession

func (m *MockStorage) GetSession(ctx context.Context, sessionID string) (*storage.Session, error)

GetSession mocks the GetSession method

func (*MockStorage) GetSessionByRefreshToken

func (m *MockStorage) GetSessionByRefreshToken(ctx context.Context, refreshToken string) (*storage.Session, error)

GetSessionByRefreshToken mocks the GetSessionByRefreshToken method

func (*MockStorage) GetSeveranceHistory

func (m *MockStorage) GetSeveranceHistory(ctx context.Context, localInstance, remoteInstance string, limit int) ([]*storage.SeveredRelationship, error)

GetSeveranceHistory mocks the GetSeveranceHistory method

func (*MockStorage) GetSeveredRelationship

func (m *MockStorage) GetSeveredRelationship(ctx context.Context, localInstance, remoteInstance string) (*storage.SeveredRelationship, error)

GetSeveredRelationship mocks the GetSeveredRelationship method

func (*MockStorage) GetSeveredRelationships

func (m *MockStorage) GetSeveredRelationships(ctx context.Context, localInstance string, limit int, cursor string) ([]*storage.SeveredRelationship, string, error)

GetSeveredRelationships mocks the GetSeveredRelationships method

func (*MockStorage) GetStatus

func (m *MockStorage) GetStatus(ctx context.Context, statusID string) (any, error)

GetStatus mocks the GetStatus method

func (*MockStorage) GetStatusCount

func (m *MockStorage) GetStatusCount(ctx context.Context, actorID string) (int, error)

GetStatusCount mocks the GetStatusCount method

func (*MockStorage) GetStatusPins

func (m *MockStorage) GetStatusPins(ctx context.Context, username string) ([]*storage.StatusPin, error)

GetStatusPins mocks the GetStatusPins method

func (*MockStorage) GetStatusReplyCount

func (m *MockStorage) GetStatusReplyCount(ctx context.Context, statusID string) (int, error)

GetStatusReplyCount mocks the GetStatusReplyCount method

func (m *MockStorage) GetStatusesByLink(ctx context.Context, linkURL string, limit int) ([]any, error)

GetStatusesByLink mocks the GetStatusesByLink method

func (*MockStorage) GetStorageHistory

func (m *MockStorage) GetStorageHistory(ctx context.Context, days int) ([]any, error)

GetStorageHistory mocks the GetStorageHistory method

func (*MockStorage) GetStorageUsage

func (m *MockStorage) GetStorageUsage(ctx context.Context) (any, error)

GetStorageUsage mocks the GetStorageUsage method

func (*MockStorage) GetStreamingPreferenceHistory

func (m *MockStorage) GetStreamingPreferenceHistory(ctx context.Context, username string, limit int) ([]*storage.StreamingPreferences, error)

GetStreamingPreferenceHistory mocks the GetStreamingPreferenceHistory method

func (*MockStorage) GetStreamingPreferences

func (m *MockStorage) GetStreamingPreferences(ctx context.Context, username string) (*storage.StreamingPreferences, error)

GetStreamingPreferences mocks the GetStreamingPreferences method

func (*MockStorage) GetStreamingPreferencesByDevice

func (m *MockStorage) GetStreamingPreferencesByDevice(ctx context.Context, username, deviceID string) (*storage.StreamingPreferences, error)

GetStreamingPreferencesByDevice mocks the GetStreamingPreferencesByDevice method

func (*MockStorage) GetStrongestConnectionsByType

func (m *MockStorage) GetStrongestConnectionsByType(ctx context.Context, connectionType string, limit int) ([]*storage.FederationEdge, error)

GetStrongestConnectionsByType mocks the GetStrongestConnectionsByType method

func (*MockStorage) GetSuggestedHashtags

func (m *MockStorage) GetSuggestedHashtags(ctx context.Context, userID string, limit int) ([]*storage.HashtagSearchResult, error)

GetSuggestedHashtags mocks the GetSuggestedHashtags method

func (*MockStorage) GetTagSuggestions

func (m *MockStorage) GetTagSuggestions(ctx context.Context, userID string, limit int) ([]string, error)

GetTagSuggestions mocks the GetTagSuggestions method

func (*MockStorage) GetThreadContext

func (m *MockStorage) GetThreadContext(ctx context.Context, statusID string) (*storage.ThreadContext, error)

GetThreadContext mocks the GetThreadContext method

func (*MockStorage) GetTombstone

func (m *MockStorage) GetTombstone(ctx context.Context, objectID string) (*storage.Tombstone, error)

GetTombstone mocks the GetTombstone method

func (*MockStorage) GetTotalDomainCount

func (m *MockStorage) GetTotalDomainCount(ctx context.Context) (int64, error)

GetTotalDomainCount mocks the GetTotalDomainCount method

func (*MockStorage) GetTotalStatusCount

func (m *MockStorage) GetTotalStatusCount(ctx context.Context) (int64, error)

GetTotalStatusCount mocks the GetTotalStatusCount method

func (*MockStorage) GetTotalUserCount

func (m *MockStorage) GetTotalUserCount(ctx context.Context) (int64, error)

GetTotalUserCount mocks the GetTotalUserCount method

func (*MockStorage) GetTrendingHashtags

func (m *MockStorage) GetTrendingHashtags(ctx context.Context, since time.Time, limit int) ([]*storage.TrendingHashtag, error)

GetTrendingHashtags mocks the GetTrendingHashtags method

func (m *MockStorage) GetTrendingLinks(ctx context.Context, since time.Time, limit int) ([]*storage.TrendingLink, error)

GetTrendingLinks mocks the GetTrendingLinks method

func (*MockStorage) GetTrendingStatuses

func (m *MockStorage) GetTrendingStatuses(ctx context.Context, since time.Time, limit int) ([]*storage.TrendingStatus, error)

GetTrendingStatuses mocks the GetTrendingStatuses method

func (*MockStorage) GetTrustRelationship

func (m *MockStorage) GetTrustRelationship(ctx context.Context, trusterID, trusteeID, category string) (*storage.TrustRelationship, error)

GetTrustRelationship mocks the GetTrustRelationship method

func (*MockStorage) GetTrustRelationships

func (m *MockStorage) GetTrustRelationships(ctx context.Context, trusterID string, limit int, cursor string) ([]*storage.TrustRelationship, string, error)

GetTrustRelationships mocks the GetTrustRelationships method

func (*MockStorage) GetTrustScore

func (m *MockStorage) GetTrustScore(ctx context.Context, actorID, category string) (*storage.TrustScore, error)

GetTrustScore mocks the GetTrustScore method

func (*MockStorage) GetTrustedByRelationships

func (m *MockStorage) GetTrustedByRelationships(ctx context.Context, trusteeID string, limit int, cursor string) ([]*storage.TrustRelationship, string, error)

GetTrustedByRelationships mocks the GetTrustedByRelationships method

func (*MockStorage) GetTrustees

func (m *MockStorage) GetTrustees(ctx context.Context, username string) ([]*storage.TrusteeConfig, error)

GetTrustees mocks the GetTrustees method

func (*MockStorage) GetUnreadNotificationCount

func (m *MockStorage) GetUnreadNotificationCount(ctx context.Context, userID string) (int64, error)

GetUnreadNotificationCount mocks the GetUnreadNotificationCount method

func (*MockStorage) GetUpdateHistory

func (m *MockStorage) GetUpdateHistory(ctx context.Context, objectID string, limit int) ([]*storage.UpdateHistory, error)

GetUpdateHistory mocks the GetUpdateHistory method

func (*MockStorage) GetUser

func (m *MockStorage) GetUser(ctx context.Context, username string) (*storage.User, error)

GetUser mocks the GetUser method

func (*MockStorage) GetUserAppConsent

func (m *MockStorage) GetUserAppConsent(ctx context.Context, userID, appID string) (*storage.UserAppConsent, error)

GetUserAppConsent mocks the GetUserAppConsent method

func (*MockStorage) GetUserByEmail

func (m *MockStorage) GetUserByEmail(ctx context.Context, email string) (*storage.User, error)

GetUserByEmail mocks the GetUserByEmail method

func (*MockStorage) GetUserByProviderID

func (m *MockStorage) GetUserByProviderID(ctx context.Context, provider, providerID string) (*storage.User, error)

GetUserByProviderID mocks the GetUserByProviderID method

func (*MockStorage) GetUserCommunityNoteVotes

func (m *MockStorage) GetUserCommunityNoteVotes(ctx context.Context, userID string, noteIDs []string) (map[string]*storage.CommunityNoteVote, error)

GetUserCommunityNoteVotes mocks the GetUserCommunityNoteVotes method

func (*MockStorage) GetUserConversations

func (m *MockStorage) GetUserConversations(ctx context.Context, username string, limit int, cursor string) ([]*storage.Conversation, string, error)

GetUserConversations mocks the GetUserConversations method

func (*MockStorage) GetUserDevices

func (m *MockStorage) GetUserDevices(ctx context.Context, username string) ([]*storage.Device, error)

GetUserDevices mocks the GetUserDevices method

func (*MockStorage) GetUserDomainBlocks

func (m *MockStorage) GetUserDomainBlocks(ctx context.Context, username string, limit int, cursor string) ([]string, string, error)

GetUserDomainBlocks mocks the GetUserDomainBlocks method

func (*MockStorage) GetUserGrowthHistory

func (m *MockStorage) GetUserGrowthHistory(ctx context.Context, days int) ([]any, error)

GetUserGrowthHistory mocks the GetUserGrowthHistory method

func (*MockStorage) GetUserLanguagePreference

func (m *MockStorage) GetUserLanguagePreference(ctx context.Context, username string) (string, error)

GetUserLanguagePreference mocks the GetUserLanguagePreference method

func (*MockStorage) GetUserMedia

func (m *MockStorage) GetUserMedia(ctx context.Context, username string) ([]any, error)

GetUserMedia mocks the GetUserMedia method

func (*MockStorage) GetUserPreferences

func (m *MockStorage) GetUserPreferences(ctx context.Context, username string) (*storage.UserPreferences, error)

GetUserPreferences mocks the GetUserPreferences method

func (*MockStorage) GetUserPushSubscriptions

func (m *MockStorage) GetUserPushSubscriptions(ctx context.Context, username string) ([]*storage.PushSubscription, error)

GetUserPushSubscriptions mocks the GetUserPushSubscriptions method

func (*MockStorage) GetUserReports

func (m *MockStorage) GetUserReports(ctx context.Context, username string, limit int, cursor string) ([]*storage.Report, string, error)

GetUserReports mocks the GetUserReports method

func (*MockStorage) GetUserSearchHistory

func (m *MockStorage) GetUserSearchHistory(ctx context.Context, userID string, limit int) ([]storage.SearchHistoryEntry, error)

GetUserSearchHistory mocks the GetUserSearchHistory method

func (*MockStorage) GetUserSessions

func (m *MockStorage) GetUserSessions(ctx context.Context, username string) ([]*storage.Session, error)

GetUserSessions mocks the GetUserSessions method

func (*MockStorage) GetUserSeveredRelationships

func (m *MockStorage) GetUserSeveredRelationships(ctx context.Context, userID string) ([]*storage.SeveredRelationship, error)

GetUserSeveredRelationships mocks the GetUserSeveredRelationships method

func (*MockStorage) GetUserStatusCount

func (m *MockStorage) GetUserStatusCount(ctx context.Context, userID string) (int, error)

GetUserStatusCount mocks the GetUserStatusCount method

func (*MockStorage) GetUserTrustScore

func (m *MockStorage) GetUserTrustScore(ctx context.Context, userID string) (float64, error)

GetUserTrustScore mocks the GetUserTrustScore method

func (*MockStorage) GetUserWalletCredentials

func (m *MockStorage) GetUserWalletCredentials(ctx context.Context, username string) ([]*storage.WalletCredential, error)

GetUserWalletCredentials mocks the GetUserWalletCredentials method

func (*MockStorage) GetUserWebAuthnCredentials

func (m *MockStorage) GetUserWebAuthnCredentials(ctx context.Context, username string) ([]*storage.WebAuthnCredential, error)

GetUserWebAuthnCredentials mocks the GetUserWebAuthnCredentials method

func (*MockStorage) GetVAPIDKeys

func (m *MockStorage) GetVAPIDKeys(ctx context.Context) (*storage.VAPIDKeys, error)

GetVAPIDKeys mocks the GetVAPIDKeys method

func (*MockStorage) GetVisibleCommunityNotes

func (m *MockStorage) GetVisibleCommunityNotes(ctx context.Context, objectID string) ([]*storage.CommunityNote, error)

GetVisibleCommunityNotes mocks the GetVisibleCommunityNotes method

func (*MockStorage) GetVouch

func (m *MockStorage) GetVouch(ctx context.Context, vouchID string) (*storage.Vouch, error)

GetVouch mocks the GetVouch method

func (*MockStorage) GetVouchesByActor

func (m *MockStorage) GetVouchesByActor(ctx context.Context, actorID string, activeOnly bool) ([]*storage.Vouch, error)

GetVouchesByActor mocks the GetVouchesByActor method

func (*MockStorage) GetVouchesForActor

func (m *MockStorage) GetVouchesForActor(ctx context.Context, actorID string, activeOnly bool) ([]*storage.Vouch, error)

GetVouchesForActor mocks the GetVouchesForActor method

func (*MockStorage) GetWalletChallenge

func (m *MockStorage) GetWalletChallenge(ctx context.Context, challengeID string) (*storage.WalletChallenge, error)

GetWalletChallenge mocks the GetWalletChallenge method

func (*MockStorage) GetWalletCredential

func (m *MockStorage) GetWalletCredential(ctx context.Context, walletType, address string) (*storage.WalletCredential, error)

GetWalletCredential mocks the GetWalletCredential method

func (*MockStorage) GetWebAuthnChallenge

func (m *MockStorage) GetWebAuthnChallenge(ctx context.Context, challengeID string) (*storage.WebAuthnChallenge, error)

GetWebAuthnChallenge mocks the GetWebAuthnChallenge method

func (*MockStorage) GetWebAuthnCredential

func (m *MockStorage) GetWebAuthnCredential(ctx context.Context, credentialID string) (*storage.WebAuthnCredential, error)

GetWebAuthnCredential mocks the GetWebAuthnCredential method

func (*MockStorage) GetWeeklyActivity

func (m *MockStorage) GetWeeklyActivity(ctx context.Context, weekTimestamp int64) (*storage.WeeklyActivity, error)

GetWeeklyActivity mocks the GetWeeklyActivity method

func (*MockStorage) HasFollowRequest

func (m *MockStorage) HasFollowRequest(ctx context.Context, requesterID, targetID string) (bool, error)

HasFollowRequest mocks the HasFollowRequest method

func (*MockStorage) HasMovedFrom

func (m *MockStorage) HasMovedFrom(ctx context.Context, oldActor, newActor string) (bool, error)

HasMovedFrom mocks the HasMovedFrom method

func (*MockStorage) HasPendingFollowRequest

func (m *MockStorage) HasPendingFollowRequest(ctx context.Context, requesterID, targetID string) (bool, error)

HasPendingFollowRequest mocks the HasPendingFollowRequest method

func (*MockStorage) HasUserVoted

func (m *MockStorage) HasUserVoted(ctx context.Context, pollID string, userID string) (bool, []int, error)

HasUserVoted mocks the HasUserVoted method

func (*MockStorage) IncrementFalseReports

func (m *MockStorage) IncrementFalseReports(ctx context.Context, username string) error

IncrementFalseReports mocks the IncrementFalseReports method

func (*MockStorage) IncrementReblogCount

func (m *MockStorage) IncrementReblogCount(ctx context.Context, objectID string) error

IncrementReblogCount mocks the IncrementReblogCount method

func (*MockStorage) IncrementReplyCount

func (m *MockStorage) IncrementReplyCount(ctx context.Context, objectID string) error

IncrementReplyCount mocks the IncrementReplyCount method

func (*MockStorage) IndexByEngagement

func (m *MockStorage) IndexByEngagement(ctx context.Context, statusID string, bucket string) error

IndexByEngagement mocks the IndexByEngagement method

func (*MockStorage) IndexHashtag

func (m *MockStorage) IndexHashtag(ctx context.Context, hashtag string, statusID string, authorID string, visibility string) error

IndexHashtag mocks the IndexHashtag method

func (*MockStorage) IsAccountInList

func (m *MockStorage) IsAccountInList(ctx context.Context, listID, accountID string) (bool, error)

IsAccountInList mocks the IsAccountInList method

func (*MockStorage) IsAccountPinned

func (m *MockStorage) IsAccountPinned(ctx context.Context, username, actorID string) (bool, error)

IsAccountPinned mocks the IsAccountPinned method

func (*MockStorage) IsBlocked

func (m *MockStorage) IsBlocked(ctx context.Context, actor, targetActor string) (bool, error)

IsBlocked mocks the IsBlocked method

func (*MockStorage) IsBlockedBidirectional

func (m *MockStorage) IsBlockedBidirectional(ctx context.Context, actor1, actor2 string) (bool, error)

IsBlockedBidirectional mocks the IsBlockedBidirectional method

func (*MockStorage) IsBlockedDomain

func (m *MockStorage) IsBlockedDomain(ctx context.Context, username, domain string) (bool, error)

IsBlockedDomain mocks the IsBlockedDomain method

func (*MockStorage) IsBookmarked

func (m *MockStorage) IsBookmarked(ctx context.Context, username, objectID string) (bool, error)

IsBookmarked mocks the IsBookmarked method

func (*MockStorage) IsConversationMuted

func (m *MockStorage) IsConversationMuted(ctx context.Context, username, conversationID string) (bool, error)

IsConversationMuted mocks the IsConversationMuted method

func (*MockStorage) IsDismissed

func (m *MockStorage) IsDismissed(ctx context.Context, username, announcementID string) (bool, error)

IsDismissed mocks the IsDismissed method

func (*MockStorage) IsDomainBlocked

func (m *MockStorage) IsDomainBlocked(ctx context.Context, domain string) (bool, *storage.InstanceDomainBlock, error)

IsDomainBlocked mocks the IsDomainBlocked method

func (*MockStorage) IsEndorsed

func (m *MockStorage) IsEndorsed(ctx context.Context, userID, targetID string) (bool, error)

IsEndorsed mocks the IsEndorsed method

func (*MockStorage) IsFollowing

func (m *MockStorage) IsFollowing(ctx context.Context, followerUsername, followedUsername string) (bool, error)

IsFollowing mocks the IsFollowing method

func (*MockStorage) IsFollowingHashtag

func (m *MockStorage) IsFollowingHashtag(ctx context.Context, userID string, hashtag string) (bool, error)

IsFollowingHashtag mocks the IsFollowingHashtag method

func (*MockStorage) IsHashtagMuted

func (m *MockStorage) IsHashtagMuted(ctx context.Context, userID, hashtag string) (bool, error)

IsHashtagMuted mocks the IsHashtagMuted method

func (*MockStorage) IsInCollection

func (m *MockStorage) IsInCollection(ctx context.Context, collection string, itemID string) (bool, error)

IsInCollection mocks the IsInCollection method

func (*MockStorage) IsInstanceDomainBlocked

func (m *MockStorage) IsInstanceDomainBlocked(ctx context.Context, domain string) (bool, *storage.InstanceDomainBlock, error)

IsInstanceDomainBlocked mocks the IsInstanceDomainBlocked method

func (*MockStorage) IsMuted

func (m *MockStorage) IsMuted(ctx context.Context, actor, targetActor string) (bool, error)

IsMuted mocks the IsMuted method

func (*MockStorage) IsNotificationEnabled

func (m *MockStorage) IsNotificationEnabled(ctx context.Context, userID, targetID string) (bool, error)

IsNotificationEnabled mocks the IsNotificationEnabled method

func (*MockStorage) IsNotificationMuted

func (m *MockStorage) IsNotificationMuted(ctx context.Context, userID, targetID string) (bool, error)

IsNotificationMuted mocks the IsNotificationMuted method

func (*MockStorage) IsQuoteAllowed

func (m *MockStorage) IsQuoteAllowed(ctx context.Context, statusID, quoterID string) (bool, error)

IsQuoteAllowed mocks the IsQuoteAllowed method

func (*MockStorage) IsQuoted

func (m *MockStorage) IsQuoted(ctx context.Context, actorID, noteID string) (bool, error)

IsQuoted mocks the IsQuoted method

func (*MockStorage) IsRateLimited

func (m *MockStorage) IsRateLimited(ctx context.Context, identifier string) (bool, time.Time, error)

IsRateLimited mocks the IsRateLimited method

func (*MockStorage) IsStatusPinned

func (m *MockStorage) IsStatusPinned(ctx context.Context, username, statusID string) (bool, error)

IsStatusPinned mocks the IsStatusPinned method

func (*MockStorage) IsWithdrawnFromQuotes

func (m *MockStorage) IsWithdrawnFromQuotes(ctx context.Context, statusID string) (bool, error)

IsWithdrawnFromQuotes mocks the IsWithdrawnFromQuotes method

func (*MockStorage) LinkProviderAccount

func (m *MockStorage) LinkProviderAccount(ctx context.Context, username, provider, providerID string) error

LinkProviderAccount mocks the LinkProviderAccount method

func (*MockStorage) ListInstanceDomainBlocks

func (m *MockStorage) ListInstanceDomainBlocks(ctx context.Context, limit int, cursor string) ([]*storage.InstanceDomainBlock, string, error)

ListInstanceDomainBlocks mocks the ListInstanceDomainBlocks method

func (*MockStorage) ListOAuthClients

func (m *MockStorage) ListOAuthClients(ctx context.Context, limit int32, cursor string) ([]*storage.OAuthClient, string, error)

ListOAuthClients mocks the ListOAuthClients method

func (*MockStorage) ListStatusesForAdmin

func (m *MockStorage) ListStatusesForAdmin(ctx context.Context, filter *interfaces.StatusFilter, limit int, cursor string) ([]*models.Status, string, error)

ListStatusesForAdmin mocks the ListStatusesForAdmin method

func (*MockStorage) ListUsers

func (m *MockStorage) ListUsers(ctx context.Context, limit int32, cursor string) ([]*storage.User, string, error)

ListUsers mocks the ListUsers method

func (*MockStorage) ListUsersByRole

func (m *MockStorage) ListUsersByRole(ctx context.Context, role string) ([]*storage.User, error)

ListUsersByRole mocks the ListUsersByRole method

func (*MockStorage) MarkAllNotificationsAsRead

func (m *MockStorage) MarkAllNotificationsAsRead(ctx context.Context, username string) error

MarkAllNotificationsAsRead mocks the MarkAllNotificationsAsRead method

func (*MockStorage) MarkConversationRead

func (m *MockStorage) MarkConversationRead(ctx context.Context, id, username string) error

MarkConversationRead mocks the MarkConversationRead method

func (*MockStorage) MarkNotificationAsRead

func (m *MockStorage) MarkNotificationAsRead(ctx context.Context, id string) error

MarkNotificationAsRead mocks the MarkNotificationAsRead method

func (*MockStorage) MarkRecoveryCodeUsed

func (m *MockStorage) MarkRecoveryCodeUsed(ctx context.Context, username, codeHash string) error

MarkRecoveryCodeUsed mocks the MarkRecoveryCodeUsed method

func (*MockStorage) MarkScheduledStatusPublished

func (m *MockStorage) MarkScheduledStatusPublished(ctx context.Context, id string) error

MarkScheduledStatusPublished mocks the MarkScheduledStatusPublished method

func (*MockStorage) MarkThreadAsSynced

func (m *MockStorage) MarkThreadAsSynced(ctx context.Context, statusID string) error

MarkThreadAsSynced mocks the MarkThreadAsSynced method

func (*MockStorage) MuteHashtag

func (m *MockStorage) MuteHashtag(ctx context.Context, userID, hashtag string, until *time.Time) error

MuteHashtag mocks the MuteHashtag method

func (*MockStorage) RecordActivity

func (m *MockStorage) RecordActivity(ctx context.Context, activityType string, actorID string, timestamp time.Time) error

RecordActivity mocks the RecordActivity method

func (*MockStorage) RecordAffectedFollow

func (m *MockStorage) RecordAffectedFollow(ctx context.Context, localInstance, remoteInstance string, follow storage.AffectedFollow) error

RecordAffectedFollow mocks the RecordAffectedFollow method

func (*MockStorage) RecordFederationActivity

func (m *MockStorage) RecordFederationActivity(ctx context.Context, activity *storage.FederationActivity) error

RecordFederationActivity mocks the RecordFederationActivity method

func (*MockStorage) RecordHashtagUsage

func (m *MockStorage) RecordHashtagUsage(ctx context.Context, hashtag string, statusID string, authorID string) error

RecordHashtagUsage mocks the RecordHashtagUsage method

func (*MockStorage) RecordLinkShare

func (m *MockStorage) RecordLinkShare(ctx context.Context, url string, statusID string, authorID string) error

RecordLinkShare mocks the RecordLinkShare method

func (*MockStorage) RecordLoginAttempt

func (m *MockStorage) RecordLoginAttempt(ctx context.Context, identifier string, success bool) error

RecordLoginAttempt mocks the RecordLoginAttempt method

func (*MockStorage) RecordManifestGeneration

func (m *MockStorage) RecordManifestGeneration(ctx context.Context, mediaID, format string, duration float64) error

RecordManifestGeneration mocks the RecordManifestGeneration method

func (*MockStorage) RecordMediaEvent

func (m *MockStorage) RecordMediaEvent(ctx context.Context, eventType, mediaID, userID string) error

RecordMediaEvent mocks the RecordMediaEvent method

func (*MockStorage) RecordPatternMatch

func (m *MockStorage) RecordPatternMatch(ctx context.Context, patternID string, matched bool, timestamp time.Time) error

RecordPatternMatch mocks the RecordPatternMatch method

func (*MockStorage) RecordQualityChange

func (m *MockStorage) RecordQualityChange(ctx context.Context, mediaID, userID, oldQuality, newQuality string) error

RecordQualityChange mocks the RecordQualityChange method

func (*MockStorage) RecordSearchAnalytics

func (m *MockStorage) RecordSearchAnalytics(ctx context.Context, analytics interface{}) error

RecordSearchAnalytics mocks the RecordSearchAnalytics method

func (*MockStorage) RecordStatusEngagement

func (m *MockStorage) RecordStatusEngagement(ctx context.Context, statusID string, engagementType string, userID string) error

RecordStatusEngagement mocks the RecordStatusEngagement method

func (*MockStorage) RecordTrustUpdate

func (m *MockStorage) RecordTrustUpdate(ctx context.Context, update *storage.TrustUpdate) error

RecordTrustUpdate mocks the RecordTrustUpdate method

func (*MockStorage) RejectFollow

func (m *MockStorage) RejectFollow(ctx context.Context, followerUsername, followedUsername string) error

RejectFollow mocks the RejectFollow method

func (*MockStorage) RejectFollowRequest

func (m *MockStorage) RejectFollowRequest(ctx context.Context, followerID, targetID string) error

RejectFollowRequest mocks the RejectFollowRequest method

func (*MockStorage) RemoveAccountSuggestion

func (m *MockStorage) RemoveAccountSuggestion(ctx context.Context, userID, targetID string) error

RemoveAccountSuggestion mocks the RemoveAccountSuggestion method

func (*MockStorage) RemoveAccountsFromList

func (m *MockStorage) RemoveAccountsFromList(ctx context.Context, listID string, accountIDs []string) error

RemoveAccountsFromList mocks the RemoveAccountsFromList method

func (*MockStorage) RemoveAnnouncementReaction

func (m *MockStorage) RemoveAnnouncementReaction(ctx context.Context, username, announcementID, emojiName string) error

RemoveAnnouncementReaction mocks the RemoveAnnouncementReaction method

func (*MockStorage) RemoveBookmark

func (m *MockStorage) RemoveBookmark(ctx context.Context, username, objectID string) error

RemoveBookmark mocks the RemoveBookmark method

func (*MockStorage) RemoveDomainBlock

func (m *MockStorage) RemoveDomainBlock(ctx context.Context, username, domain string) error

RemoveDomainBlock mocks the RemoveDomainBlock method

func (*MockStorage) RemoveFollow

func (m *MockStorage) RemoveFollow(ctx context.Context, followerUsername, followedUsername string) error

RemoveFollow mocks the RemoveFollow method

func (*MockStorage) RemoveFromCollection

func (m *MockStorage) RemoveFromCollection(ctx context.Context, collection string, itemID string) error

RemoveFromCollection mocks the RemoveFromCollection method

func (*MockStorage) RemoveFromFollowers

func (m *MockStorage) RemoveFromFollowers(ctx context.Context, username, followerUsername string) error

RemoveFromFollowers mocks the RemoveFromFollowers method

func (*MockStorage) RemoveFromTimelines

func (m *MockStorage) RemoveFromTimelines(ctx context.Context, objectID string) error

RemoveFromTimelines mocks the RemoveFromTimelines method

func (*MockStorage) RemoveRelayInfo

func (m *MockStorage) RemoveRelayInfo(ctx context.Context, relayURL string) error

RemoveRelayInfo mocks the RemoveRelayInfo method

func (*MockStorage) ResolvePreferenceConflict

func (m *MockStorage) ResolvePreferenceConflict(ctx context.Context, username string, strategy storage.ConflictResolutionStrategy) (*storage.StreamingPreferences, error)

ResolvePreferenceConflict mocks the ResolvePreferenceConflict method

func (*MockStorage) ReverseSeverance

func (m *MockStorage) ReverseSeverance(ctx context.Context, localInstance, remoteInstance string) error

ReverseSeverance mocks the ReverseSeverance method

func (*MockStorage) SaveMarker

func (m *MockStorage) SaveMarker(ctx context.Context, username, timeline string, lastReadID string, version int) error

SaveMarker mocks the SaveMarker method

func (*MockStorage) SaveOAuthState

func (m *MockStorage) SaveOAuthState(ctx context.Context, state *storage.OAuthState) error

SaveOAuthState mocks the SaveOAuthState method

func (*MockStorage) SaveUserAppConsent

func (m *MockStorage) SaveUserAppConsent(ctx context.Context, consent *storage.UserAppConsent) error

SaveUserAppConsent mocks the SaveUserAppConsent method

func (*MockStorage) SearchAccounts

func (m *MockStorage) SearchAccounts(ctx context.Context, query string, limit int, followingOnly bool, offset int) ([]*activitypub.Actor, error)

SearchAccounts mocks the SearchAccounts method

func (*MockStorage) SearchAccountsAdvanced

func (m *MockStorage) SearchAccountsAdvanced(ctx context.Context, query string, resolve bool, limit int, offset int, following bool, accountID string) ([]*activitypub.Actor, error)

SearchAccountsAdvanced mocks the SearchAccountsAdvanced method

func (*MockStorage) SearchAll

func (m *MockStorage) SearchAll(ctx context.Context, query string, limit int, accountID string) (*storage.SearchResults, error)

SearchAll mocks the SearchAll method

func (*MockStorage) SearchHashtags

func (m *MockStorage) SearchHashtags(ctx context.Context, query string, limit int) ([]*storage.Hashtag, error)

SearchHashtags mocks the SearchHashtags method

func (*MockStorage) SearchHashtagsAdvanced

func (m *MockStorage) SearchHashtagsAdvanced(ctx context.Context, query string, limit int, accountID string) ([]*storage.HashtagSearchResult, error)

SearchHashtagsAdvanced mocks the SearchHashtagsAdvanced method

func (*MockStorage) SearchStatuses

func (m *MockStorage) SearchStatuses(ctx context.Context, query string, limit int) ([]*storage.StatusSearchResult, error)

SearchStatuses mocks the SearchStatuses method

func (*MockStorage) SearchStatusesAdvanced

func (m *MockStorage) SearchStatusesAdvanced(ctx context.Context, query string, limit int, maxID, minID *string, accountID string) ([]*storage.StatusSearchResult, error)

SearchStatusesAdvanced mocks the SearchStatusesAdvanced method

func (*MockStorage) SearchStatusesByURL

func (m *MockStorage) SearchStatusesByURL(ctx context.Context, url string) (*storage.StatusSearchResult, error)

SearchStatusesByURL mocks the SearchStatusesByURL method

func (*MockStorage) SearchStatusesWithOptions

func (m *MockStorage) SearchStatusesWithOptions(ctx context.Context, query string, options storage.StatusSearchOptions) ([]*storage.StatusSearchResult, error)

SearchStatusesWithOptions mocks the SearchStatusesWithOptions method

func (*MockStorage) SetActorFields

func (m *MockStorage) SetActorFields(ctx context.Context, username string, fields []storage.ActorField) error

SetActorFields mocks the SetActorFields method

func (*MockStorage) SetDNSCache

func (m *MockStorage) SetDNSCache(ctx context.Context, entry *storage.DNSCacheEntry) error

SetDNSCache mocks the SetDNSCache method

func (*MockStorage) SetExtendedDescription

func (m *MockStorage) SetExtendedDescription(ctx context.Context, description string) error

SetExtendedDescription mocks the SetExtendedDescription method

func (*MockStorage) SetInstanceRules

func (m *MockStorage) SetInstanceRules(ctx context.Context, rules []storage.InstanceRule) error

SetInstanceRules mocks the SetInstanceRules method

func (*MockStorage) SetPreference

func (m *MockStorage) SetPreference(ctx context.Context, username string, key string, value any) error

SetPreference mocks the SetPreference method

func (*MockStorage) SetUserLanguagePreference

func (m *MockStorage) SetUserLanguagePreference(ctx context.Context, username string, language string) error

SetUserLanguagePreference mocks the SetUserLanguagePreference method

func (*MockStorage) SetVAPIDKeys

func (m *MockStorage) SetVAPIDKeys(ctx context.Context, keys *storage.VAPIDKeys) error

SetVAPIDKeys mocks the SetVAPIDKeys method

func (*MockStorage) StoreEngagementMetrics

func (m *MockStorage) StoreEngagementMetrics(ctx context.Context, metrics *storage.EngagementMetrics) error

StoreEngagementMetrics mocks the StoreEngagementMetrics method

func (*MockStorage) StoreFederationTimeSeries

func (m *MockStorage) StoreFederationTimeSeries(ctx context.Context, data *storage.FederationTimeSeries) error

StoreFederationTimeSeries mocks the StoreFederationTimeSeries method

func (*MockStorage) StoreHashtagTrend

func (m *MockStorage) StoreHashtagTrend(ctx context.Context, trend any) error

StoreHashtagTrend mocks the StoreHashtagTrend method

func (*MockStorage) StoreInstanceCluster

func (m *MockStorage) StoreInstanceCluster(ctx context.Context, cluster *storage.InstanceCluster) error

StoreInstanceCluster mocks the StoreInstanceCluster method

func (*MockStorage) StoreLinkTrend

func (m *MockStorage) StoreLinkTrend(ctx context.Context, trend any) error

StoreLinkTrend mocks the StoreLinkTrend method

func (*MockStorage) StoreModerationDecision

func (m *MockStorage) StoreModerationDecision(ctx context.Context, decision *storage.ModerationDecision) error

StoreModerationDecision mocks the StoreModerationDecision method

func (*MockStorage) StoreOAuthState

func (m *MockStorage) StoreOAuthState(ctx context.Context, state string, data *storage.OAuthState) error

StoreOAuthState mocks the StoreOAuthState method

func (*MockStorage) StoreRecoveryCode

func (m *MockStorage) StoreRecoveryCode(ctx context.Context, username string, code *storage.RecoveryCodeItem) error

StoreRecoveryCode mocks the StoreRecoveryCode method

func (*MockStorage) StoreRecoveryRequest

func (m *MockStorage) StoreRecoveryRequest(ctx context.Context, request *storage.SocialRecoveryRequest) error

StoreRecoveryRequest mocks the StoreRecoveryRequest method

func (*MockStorage) StoreRecoveryToken

func (m *MockStorage) StoreRecoveryToken(ctx context.Context, key string, data map[string]any) error

StoreRecoveryToken mocks the StoreRecoveryToken method

func (*MockStorage) StoreRelayInfo

func (m *MockStorage) StoreRelayInfo(ctx context.Context, relay *storage.RelayInfo) error

StoreRelayInfo mocks the StoreRelayInfo method

func (*MockStorage) StoreReputation

func (m *MockStorage) StoreReputation(ctx context.Context, actorID string, reputation *storage.Reputation) error

StoreReputation mocks the StoreReputation method

func (*MockStorage) StoreStatusTrend

func (m *MockStorage) StoreStatusTrend(ctx context.Context, trend any) error

StoreStatusTrend mocks the StoreStatusTrend method

func (*MockStorage) StoreTrustee

func (m *MockStorage) StoreTrustee(ctx context.Context, username string, trustee *storage.TrusteeConfig) error

StoreTrustee mocks the StoreTrustee method

func (*MockStorage) StoreWalletChallenge

func (m *MockStorage) StoreWalletChallenge(ctx context.Context, challenge *storage.WalletChallenge) error

StoreWalletChallenge mocks the StoreWalletChallenge method

func (*MockStorage) StoreWalletCredential

func (m *MockStorage) StoreWalletCredential(ctx context.Context, credential *storage.WalletCredential) error

StoreWalletCredential mocks the StoreWalletCredential method

func (*MockStorage) StoreWebAuthnChallenge

func (m *MockStorage) StoreWebAuthnChallenge(ctx context.Context, challenge *storage.WebAuthnChallenge) error

StoreWebAuthnChallenge mocks the StoreWebAuthnChallenge method

func (*MockStorage) StoreWebAuthnCredential

func (m *MockStorage) StoreWebAuthnCredential(ctx context.Context, credential *storage.WebAuthnCredential) error

StoreWebAuthnCredential mocks the StoreWebAuthnCredential method

func (*MockStorage) SyncMissingRepliesFromRemote

func (m *MockStorage) SyncMissingRepliesFromRemote(ctx context.Context, statusID string) ([]*storage.StatusSearchResult, error)

SyncMissingRepliesFromRemote mocks the SyncMissingRepliesFromRemote method

func (*MockStorage) SyncStreamingPreferences

func (m *MockStorage) SyncStreamingPreferences(ctx context.Context, username string, sourceDeviceID string) error

SyncStreamingPreferences mocks the SyncStreamingPreferences method

func (*MockStorage) SyncThreadFromRemote

func (m *MockStorage) SyncThreadFromRemote(ctx context.Context, statusID string) (*storage.StatusSearchResult, error)

SyncThreadFromRemote mocks the SyncThreadFromRemote method

func (*MockStorage) TombstoneObject

func (m *MockStorage) TombstoneObject(ctx context.Context, objectID string, deletedBy string) error

TombstoneObject mocks the TombstoneObject method

func (*MockStorage) TrackFederationIssue

func (m *MockStorage) TrackFederationIssue(ctx context.Context, domain, issueType string) error

TrackFederationIssue mocks the TrackFederationIssue method

func (*MockStorage) TrackSearchQuery

func (m *MockStorage) TrackSearchQuery(ctx context.Context, userID, query string, resultCount int) error

TrackSearchQuery mocks the TrackSearchQuery method

func (*MockStorage) UnassignReport

func (m *MockStorage) UnassignReport(ctx context.Context, reportID string) error

UnassignReport mocks the UnassignReport method

func (*MockStorage) UnfollowHashtag

func (m *MockStorage) UnfollowHashtag(ctx context.Context, userID string, hashtag string) error

UnfollowHashtag mocks the UnfollowHashtag method

func (*MockStorage) UnlinkProviderAccount

func (m *MockStorage) UnlinkProviderAccount(ctx context.Context, username, provider string) error

UnlinkProviderAccount mocks the UnlinkProviderAccount method

func (*MockStorage) UnmarkAllMediaAsSensitive

func (m *MockStorage) UnmarkAllMediaAsSensitive(ctx context.Context, username string) error

UnmarkAllMediaAsSensitive mocks the UnmarkAllMediaAsSensitive method

func (*MockStorage) UnmuteHashtag

func (m *MockStorage) UnmuteHashtag(ctx context.Context, userID, hashtag string) error

UnmuteHashtag mocks the UnmuteHashtag method

func (*MockStorage) UpdateAccountNote

func (m *MockStorage) UpdateAccountNote(ctx context.Context, note *storage.AccountNote) error

UpdateAccountNote mocks the UpdateAccountNote method

func (*MockStorage) UpdateActor

func (m *MockStorage) UpdateActor(ctx context.Context, actor *activitypub.Actor) error

UpdateActor mocks the UpdateActor method

func (*MockStorage) UpdateActorLastStatusTime

func (m *MockStorage) UpdateActorLastStatusTime(ctx context.Context, username string) error

UpdateActorLastStatusTime mocks the UpdateActorLastStatusTime method

func (*MockStorage) UpdateAnnouncement

func (m *MockStorage) UpdateAnnouncement(ctx context.Context, announcement *storage.Announcement) error

UpdateAnnouncement mocks the UpdateAnnouncement method

func (*MockStorage) UpdateCommunityNoteAnalysis

func (m *MockStorage) UpdateCommunityNoteAnalysis(ctx context.Context, noteID string, sentiment, objectivity, sourceQuality float64) error

UpdateCommunityNoteAnalysis mocks the UpdateCommunityNoteAnalysis method

func (*MockStorage) UpdateCommunityNoteScore

func (m *MockStorage) UpdateCommunityNoteScore(ctx context.Context, noteID string, score float64, status string) error

UpdateCommunityNoteScore mocks the UpdateCommunityNoteScore method

func (*MockStorage) UpdateConversationLastStatus

func (m *MockStorage) UpdateConversationLastStatus(ctx context.Context, id, lastStatusID string) error

UpdateConversationLastStatus mocks the UpdateConversationLastStatus method

func (*MockStorage) UpdateCustomEmoji

func (m *MockStorage) UpdateCustomEmoji(ctx context.Context, emoji *storage.CustomEmoji) error

UpdateCustomEmoji mocks the UpdateCustomEmoji method

func (*MockStorage) UpdateDevice

func (m *MockStorage) UpdateDevice(ctx context.Context, device *storage.Device) error

UpdateDevice mocks the UpdateDevice method

func (*MockStorage) UpdateDeviceStreamingPreferences

func (m *MockStorage) UpdateDeviceStreamingPreferences(ctx context.Context, prefs *storage.StreamingPreferences, deviceID string) error

UpdateDeviceStreamingPreferences mocks the UpdateDeviceStreamingPreferences method

func (*MockStorage) UpdateDomainBlock

func (m *MockStorage) UpdateDomainBlock(ctx context.Context, id string, updates map[string]any) error

UpdateDomainBlock mocks the UpdateDomainBlock method

func (*MockStorage) UpdateFederationEdge

func (m *MockStorage) UpdateFederationEdge(ctx context.Context, edge *storage.FederationEdge) error

UpdateFederationEdge mocks the UpdateFederationEdge method

func (*MockStorage) UpdateFederationNode

func (m *MockStorage) UpdateFederationNode(ctx context.Context, node *storage.FederationNode) error

UpdateFederationNode mocks the UpdateFederationNode method

func (*MockStorage) UpdateFilter

func (m *MockStorage) UpdateFilter(ctx context.Context, filterID string, updates map[string]any) error

UpdateFilter mocks the UpdateFilter method

func (*MockStorage) UpdateFilterKeyword

func (m *MockStorage) UpdateFilterKeyword(ctx context.Context, keywordID string, updates map[string]any) error

UpdateFilterKeyword mocks the UpdateFilterKeyword method

func (*MockStorage) UpdateFlagStatus

func (m *MockStorage) UpdateFlagStatus(ctx context.Context, id string, status storage.FlagStatus, reviewedBy string, reviewNote string) error

UpdateFlagStatus mocks the UpdateFlagStatus method

func (*MockStorage) UpdateHashtagNotificationSettings

func (m *MockStorage) UpdateHashtagNotificationSettings(ctx context.Context, userID, hashtag string, settings *storage.HashtagNotificationSettings) error

UpdateHashtagNotificationSettings mocks the UpdateHashtagNotificationSettings method

func (*MockStorage) UpdateInstanceDomainBlock

func (m *MockStorage) UpdateInstanceDomainBlock(ctx context.Context, domain string, updates map[string]any) error

UpdateInstanceDomainBlock mocks the UpdateInstanceDomainBlock method

func (*MockStorage) UpdateInstanceMetadata

func (m *MockStorage) UpdateInstanceMetadata(ctx context.Context, metadata *storage.InstanceMetadata) error

UpdateInstanceMetadata mocks the UpdateInstanceMetadata method

func (*MockStorage) UpdateList

func (m *MockStorage) UpdateList(ctx context.Context, listID string, updates map[string]any) error

UpdateList mocks the UpdateList method

func (*MockStorage) UpdateMediaAttachment

func (m *MockStorage) UpdateMediaAttachment(ctx context.Context, mediaID string, updates map[string]any) error

UpdateMediaAttachment mocks the UpdateMediaAttachment method

func (*MockStorage) UpdateModerationDecision

func (m *MockStorage) UpdateModerationDecision(ctx context.Context, contentID string, review *storage.ModerationReview) error

UpdateModerationDecision mocks the UpdateModerationDecision method

func (*MockStorage) UpdateModerationPattern

func (m *MockStorage) UpdateModerationPattern(ctx context.Context, pattern *storage.ModerationPattern) error

UpdateModerationPattern mocks the UpdateModerationPattern method

func (*MockStorage) UpdateNotificationPreferences

func (m *MockStorage) UpdateNotificationPreferences(ctx context.Context, username string, prefs *storage.NotificationPreferences) error

UpdateNotificationPreferences mocks the UpdateNotificationPreferences method

func (*MockStorage) UpdateOAuthClient

func (m *MockStorage) UpdateOAuthClient(ctx context.Context, clientID string, updates map[string]any) error

UpdateOAuthClient mocks the UpdateOAuthClient method

func (*MockStorage) UpdateObject

func (m *MockStorage) UpdateObject(ctx context.Context, object any) error

UpdateObject mocks the UpdateObject method

func (*MockStorage) UpdatePreferences

func (m *MockStorage) UpdatePreferences(ctx context.Context, username string, prefs map[string]any) error

UpdatePreferences mocks the UpdatePreferences method

func (*MockStorage) UpdatePushSubscription

func (m *MockStorage) UpdatePushSubscription(ctx context.Context, username, subscriptionID string, alerts storage.PushSubscriptionAlerts) error

UpdatePushSubscription mocks the UpdatePushSubscription method

func (*MockStorage) UpdateQuotePermissions

func (m *MockStorage) UpdateQuotePermissions(ctx context.Context, statusID string, permissions *storage.QuotePermissions) error

UpdateQuotePermissions mocks the UpdateQuotePermissions method

func (*MockStorage) UpdateRecoveryRequest

func (m *MockStorage) UpdateRecoveryRequest(ctx context.Context, request *storage.SocialRecoveryRequest) error

UpdateRecoveryRequest mocks the UpdateRecoveryRequest method

func (*MockStorage) UpdateRelayStatus

func (m *MockStorage) UpdateRelayStatus(ctx context.Context, relayURL string, active bool) error

UpdateRelayStatus mocks the UpdateRelayStatus method

func (*MockStorage) UpdateReportStatus

func (m *MockStorage) UpdateReportStatus(ctx context.Context, id string, status storage.ReportStatus, actionTaken string, moderatorID string) error

UpdateReportStatus mocks the UpdateReportStatus method

func (*MockStorage) UpdateScheduledStatus

func (m *MockStorage) UpdateScheduledStatus(ctx context.Context, scheduled *storage.ScheduledStatus) error

UpdateScheduledStatus mocks the UpdateScheduledStatus method

func (*MockStorage) UpdateSession

func (m *MockStorage) UpdateSession(ctx context.Context, session *storage.Session) error

UpdateSession mocks the UpdateSession method

func (*MockStorage) UpdateSeveredRelationship

func (m *MockStorage) UpdateSeveredRelationship(ctx context.Context, rel *storage.SeveredRelationship) error

UpdateSeveredRelationship mocks the UpdateSeveredRelationship method

func (*MockStorage) UpdateStreamingPreferences

func (m *MockStorage) UpdateStreamingPreferences(ctx context.Context, prefs *storage.StreamingPreferences) error

UpdateStreamingPreferences mocks the UpdateStreamingPreferences method

func (*MockStorage) UpdateTrustRelationship

func (m *MockStorage) UpdateTrustRelationship(ctx context.Context, relationship *storage.TrustRelationship) error

UpdateTrustRelationship mocks the UpdateTrustRelationship method

func (*MockStorage) UpdateTrustScore

func (m *MockStorage) UpdateTrustScore(ctx context.Context, score *storage.TrustScore) error

UpdateTrustScore mocks the UpdateTrustScore method

func (*MockStorage) UpdateTrusteeConfirmed

func (m *MockStorage) UpdateTrusteeConfirmed(ctx context.Context, username, trusteeActorID string, confirmed bool) error

UpdateTrusteeConfirmed mocks the UpdateTrusteeConfirmed method

func (*MockStorage) UpdateUser

func (m *MockStorage) UpdateUser(ctx context.Context, username string, updates map[string]any) error

UpdateUser mocks the UpdateUser method

func (*MockStorage) UpdateUserPreferences

func (m *MockStorage) UpdateUserPreferences(ctx context.Context, username string, preferences *storage.UserPreferences) error

UpdateUserPreferences mocks the UpdateUserPreferences method

func (*MockStorage) UpdateVouchStatus

func (m *MockStorage) UpdateVouchStatus(ctx context.Context, vouchID string, active bool, revokedAt *time.Time) error

UpdateVouchStatus mocks the UpdateVouchStatus method

func (*MockStorage) UpdateWalletLastUsed

func (m *MockStorage) UpdateWalletLastUsed(ctx context.Context, username, address string) error

UpdateWalletLastUsed mocks the UpdateWalletLastUsed method

func (*MockStorage) UpdateWebAuthnCredential

func (m *MockStorage) UpdateWebAuthnCredential(ctx context.Context, credential *storage.WebAuthnCredential) error

UpdateWebAuthnCredential mocks the UpdateWebAuthnCredential method

func (*MockStorage) UpsertInstanceInfo

func (m *MockStorage) UpsertInstanceInfo(ctx context.Context, info *storage.InstanceInfo) error

UpsertInstanceInfo mocks the UpsertInstanceInfo method

func (*MockStorage) VoteOnPoll

func (m *MockStorage) VoteOnPoll(ctx context.Context, pollID string, voterID string, choices []int) error

VoteOnPoll mocks the VoteOnPoll method

func (*MockStorage) WithdrawQuote

func (m *MockStorage) WithdrawQuote(ctx context.Context, quoteNoteID string) error

WithdrawQuote mocks the WithdrawQuote method

func (*MockStorage) WithdrawStatusFromQuotes

func (m *MockStorage) WithdrawStatusFromQuotes(ctx context.Context, statusID string) error

WithdrawStatusFromQuotes mocks the WithdrawStatusFromQuotes method

func (*MockStorage) WriteToTimeline

func (m *MockStorage) WriteToTimeline(ctx context.Context, timeline *storage.TimelineEntry) error

WriteToTimeline mocks the WriteToTimeline method

func (*MockStorage) WriteToTimelines

func (m *MockStorage) WriteToTimelines(ctx context.Context, entries []*storage.TimelineEntry) error

WriteToTimelines mocks the WriteToTimelines method

type MockStoragePreset

type MockStoragePreset string

MockStoragePreset represents a preset configuration for mock storage

const (
	// PresetEmpty represents an empty preset with no data
	PresetEmpty MockStoragePreset = "empty"
	// PresetWithTestUser represents a preset with test user data
	PresetWithTestUser MockStoragePreset = "test_user"
	// PresetWithMultiUsers represents a preset with multiple test users
	PresetWithMultiUsers MockStoragePreset = "multi_users"
)

type MockStreamingCloudWatchRepository

type MockStreamingCloudWatchRepository struct {
	mock.Mock
}

MockStreamingCloudWatchRepository is a mock implementation of interfaces.StreamingCloudWatchRepository using testify/mock for expectation-based testing.

func NewMockStreamingCloudWatchRepository

func NewMockStreamingCloudWatchRepository() *MockStreamingCloudWatchRepository

NewMockStreamingCloudWatchRepository creates a new mock streaming CloudWatch repository

func (*MockStreamingCloudWatchRepository) CacheConcurrentViewers

func (m *MockStreamingCloudWatchRepository) CacheConcurrentViewers(ctx context.Context, mediaID string, concurrentMetrics models.ConcurrentViewerMetrics) error

CacheConcurrentViewers mocks the CacheConcurrentViewers method

func (*MockStreamingCloudWatchRepository) CacheGeographicData

func (m *MockStreamingCloudWatchRepository) CacheGeographicData(ctx context.Context, mediaID string, geoMetrics map[string]models.GeographicMetric) error

CacheGeographicData mocks the CacheGeographicData method

func (*MockStreamingCloudWatchRepository) CachePerformanceMetrics

func (m *MockStreamingCloudWatchRepository) CachePerformanceMetrics(ctx context.Context, mediaID string, perfMetrics models.StreamingPerformanceMetrics) error

CachePerformanceMetrics mocks the CachePerformanceMetrics method

func (*MockStreamingCloudWatchRepository) CacheQualityBreakdown

func (m *MockStreamingCloudWatchRepository) CacheQualityBreakdown(ctx context.Context, mediaID string, qualityMetrics map[string]models.QualityMetric) error

CacheQualityBreakdown mocks the CacheQualityBreakdown method

func (*MockStreamingCloudWatchRepository) CleanupExpiredMetrics

func (m *MockStreamingCloudWatchRepository) CleanupExpiredMetrics(ctx context.Context) error

CleanupExpiredMetrics mocks the CleanupExpiredMetrics method

func (*MockStreamingCloudWatchRepository) GetAllCachedMetrics

GetAllCachedMetrics mocks the GetAllCachedMetrics method

func (*MockStreamingCloudWatchRepository) GetConcurrentViewers

GetConcurrentViewers mocks the GetConcurrentViewers method

func (*MockStreamingCloudWatchRepository) GetGeographicData

GetGeographicData mocks the GetGeographicData method

func (*MockStreamingCloudWatchRepository) GetPerformanceMetrics

GetPerformanceMetrics mocks the GetPerformanceMetrics method

func (*MockStreamingCloudWatchRepository) GetQualityBreakdown

GetQualityBreakdown mocks the GetQualityBreakdown method

type MockStreamingConnectionRepository

type MockStreamingConnectionRepository struct {
	mock.Mock
}

MockStreamingConnectionRepository is a mock implementation of interfaces.StreamingConnectionRepository using testify/mock for expectation-based testing.

func NewMockStreamingConnectionRepository

func NewMockStreamingConnectionRepository() *MockStreamingConnectionRepository

NewMockStreamingConnectionRepository creates a new mock streaming connection repository

func (*MockStreamingConnectionRepository) CleanupExpiredConnections

func (m *MockStreamingConnectionRepository) CleanupExpiredConnections(ctx context.Context) (int, error)

CleanupExpiredConnections mocks the CleanupExpiredConnections method

func (*MockStreamingConnectionRepository) CloseTimedOutConnections

func (m *MockStreamingConnectionRepository) CloseTimedOutConnections(ctx context.Context) (int, error)

CloseTimedOutConnections mocks the CloseTimedOutConnections method

func (*MockStreamingConnectionRepository) DeleteAllSubscriptions

func (m *MockStreamingConnectionRepository) DeleteAllSubscriptions(ctx context.Context, connectionID string) error

DeleteAllSubscriptions mocks the DeleteAllSubscriptions method

func (*MockStreamingConnectionRepository) DeleteConnection

func (m *MockStreamingConnectionRepository) DeleteConnection(ctx context.Context, connectionID string) error

DeleteConnection mocks the DeleteConnection method

func (*MockStreamingConnectionRepository) DeleteSubscription

func (m *MockStreamingConnectionRepository) DeleteSubscription(ctx context.Context, connectionID, stream string) error

DeleteSubscription mocks the DeleteSubscription method

func (*MockStreamingConnectionRepository) EnforceResourceLimits

func (m *MockStreamingConnectionRepository) EnforceResourceLimits(ctx context.Context, connectionID string, messageSize int64) error

EnforceResourceLimits mocks the EnforceResourceLimits method

func (*MockStreamingConnectionRepository) GetActiveConnectionsCount

func (m *MockStreamingConnectionRepository) GetActiveConnectionsCount(ctx context.Context, userID string) (int, error)

GetActiveConnectionsCount mocks the GetActiveConnectionsCount method

func (*MockStreamingConnectionRepository) GetConnection

GetConnection mocks the GetConnection method

func (*MockStreamingConnectionRepository) GetConnectionCountByState

func (m *MockStreamingConnectionRepository) GetConnectionCountByState(ctx context.Context, state models.ConnectionState) (int, error)

GetConnectionCountByState mocks the GetConnectionCountByState method

func (*MockStreamingConnectionRepository) GetConnectionPool

func (m *MockStreamingConnectionRepository) GetConnectionPool(ctx context.Context) (map[string]interface{}, error)

GetConnectionPool mocks the GetConnectionPool method

func (*MockStreamingConnectionRepository) GetConnectionsByState

GetConnectionsByState mocks the GetConnectionsByState method

func (*MockStreamingConnectionRepository) GetConnectionsByUser

func (m *MockStreamingConnectionRepository) GetConnectionsByUser(ctx context.Context, userID string) ([]models.WebSocketConnection, error)

GetConnectionsByUser mocks the GetConnectionsByUser method

func (*MockStreamingConnectionRepository) GetHealthyConnections

GetHealthyConnections mocks the GetHealthyConnections method

func (*MockStreamingConnectionRepository) GetIdleConnections

func (m *MockStreamingConnectionRepository) GetIdleConnections(ctx context.Context, idleThreshold time.Time) ([]models.WebSocketConnection, error)

GetIdleConnections mocks the GetIdleConnections method

func (*MockStreamingConnectionRepository) GetStaleConnections

func (m *MockStreamingConnectionRepository) GetStaleConnections(ctx context.Context, staleThreshold time.Time) ([]models.WebSocketConnection, error)

GetStaleConnections mocks the GetStaleConnections method

func (*MockStreamingConnectionRepository) GetSubscriptionsForStream

func (m *MockStreamingConnectionRepository) GetSubscriptionsForStream(ctx context.Context, stream string) ([]models.WebSocketSubscription, error)

GetSubscriptionsForStream mocks the GetSubscriptionsForStream method

func (*MockStreamingConnectionRepository) GetTotalActiveConnectionsCount

func (m *MockStreamingConnectionRepository) GetTotalActiveConnectionsCount(ctx context.Context) (int, error)

GetTotalActiveConnectionsCount mocks the GetTotalActiveConnectionsCount method

func (*MockStreamingConnectionRepository) GetUnhealthyConnections

GetUnhealthyConnections mocks the GetUnhealthyConnections method

func (*MockStreamingConnectionRepository) GetUserConnectionCount

func (m *MockStreamingConnectionRepository) GetUserConnectionCount(ctx context.Context, userID string) (int, error)

GetUserConnectionCount mocks the GetUserConnectionCount method

func (*MockStreamingConnectionRepository) MarkConnectionsIdle

func (m *MockStreamingConnectionRepository) MarkConnectionsIdle(ctx context.Context, idleThreshold time.Duration) (int, error)

MarkConnectionsIdle mocks the MarkConnectionsIdle method

func (*MockStreamingConnectionRepository) ReclaimIdleConnections

func (m *MockStreamingConnectionRepository) ReclaimIdleConnections(ctx context.Context, maxIdleConnections int) (int, error)

ReclaimIdleConnections mocks the ReclaimIdleConnections method

func (*MockStreamingConnectionRepository) RecordConnectionError

func (m *MockStreamingConnectionRepository) RecordConnectionError(ctx context.Context, connectionID string, errorMsg string) error

RecordConnectionError mocks the RecordConnectionError method

func (*MockStreamingConnectionRepository) RecordConnectionMessage

func (m *MockStreamingConnectionRepository) RecordConnectionMessage(ctx context.Context, connectionID string, sent bool, messageSize int64) error

RecordConnectionMessage mocks the RecordConnectionMessage method

func (*MockStreamingConnectionRepository) RecordPing

func (m *MockStreamingConnectionRepository) RecordPing(ctx context.Context, connectionID string) error

RecordPing mocks the RecordPing method

func (*MockStreamingConnectionRepository) RecordPong

func (m *MockStreamingConnectionRepository) RecordPong(ctx context.Context, connectionID string) error

RecordPong mocks the RecordPong method

func (*MockStreamingConnectionRepository) UpdateConnection

func (m *MockStreamingConnectionRepository) UpdateConnection(ctx context.Context, connection *models.WebSocketConnection) error

UpdateConnection mocks the UpdateConnection method

func (*MockStreamingConnectionRepository) UpdateConnectionActivity

func (m *MockStreamingConnectionRepository) UpdateConnectionActivity(ctx context.Context, connectionID string) error

UpdateConnectionActivity mocks the UpdateConnectionActivity method

func (*MockStreamingConnectionRepository) UpdateConnectionState

func (m *MockStreamingConnectionRepository) UpdateConnectionState(ctx context.Context, connectionID string, newState models.ConnectionState, reason string) error

UpdateConnectionState mocks the UpdateConnectionState method

func (*MockStreamingConnectionRepository) WriteConnection

func (m *MockStreamingConnectionRepository) WriteConnection(ctx context.Context, connectionID, userID, username string, streams []string) (*models.WebSocketConnection, error)

WriteConnection mocks the WriteConnection method

func (*MockStreamingConnectionRepository) WriteSubscription

func (m *MockStreamingConnectionRepository) WriteSubscription(ctx context.Context, connectionID, userID, stream string) error

WriteSubscription mocks the WriteSubscription method

type MockTestLogger

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

MockTestLogger provides a testing logger that captures log entries

func NewMockTestLogger

func NewMockTestLogger() *MockTestLogger

NewMockTestLogger creates a new mock test logger

func (*MockTestLogger) Clear

func (m *MockTestLogger) Clear()

Clear clears all captured log entries

func (*MockTestLogger) Debug

func (m *MockTestLogger) Debug(msg string, fields ...zap.Field)

Debug implements the debug logging level

func (*MockTestLogger) Error

func (m *MockTestLogger) Error(msg string, fields ...zap.Field)

Error implements the error logging level

func (*MockTestLogger) GetEntries

func (m *MockTestLogger) GetEntries() []LogEntry

GetEntries returns all captured log entries

func (*MockTestLogger) GetEntriesByLevel

func (m *MockTestLogger) GetEntriesByLevel(level string) []LogEntry

GetEntriesByLevel returns entries filtered by log level

func (*MockTestLogger) Info

func (m *MockTestLogger) Info(msg string, fields ...zap.Field)

Info implements the info logging level

func (*MockTestLogger) Warn

func (m *MockTestLogger) Warn(msg string, fields ...zap.Field)

Warn implements the warn logging level

type MockThreadRepository

type MockThreadRepository struct {
	mock.Mock
}

MockThreadRepository is a mock implementation of interfaces.ThreadRepository using testify/mock for expectation-based testing.

func NewMockThreadRepository

func NewMockThreadRepository() *MockThreadRepository

NewMockThreadRepository creates a new mock thread repository

func (*MockThreadRepository) BulkSaveThreadNodes

func (m *MockThreadRepository) BulkSaveThreadNodes(ctx context.Context, nodes []*models.ThreadNode) error

BulkSaveThreadNodes mocks the BulkSaveThreadNodes method

func (*MockThreadRepository) DeleteMissingReply

func (m *MockThreadRepository) DeleteMissingReply(ctx context.Context, rootStatusID, replyID string) error

DeleteMissingReply mocks the DeleteMissingReply method

func (*MockThreadRepository) GetMissingReplies

func (m *MockThreadRepository) GetMissingReplies(ctx context.Context, rootStatusID string) ([]*models.MissingReply, error)

GetMissingReplies mocks the GetMissingReplies method

func (*MockThreadRepository) GetPendingMissingReplies

func (m *MockThreadRepository) GetPendingMissingReplies(ctx context.Context, limit int) ([]*models.MissingReply, error)

GetPendingMissingReplies mocks the GetPendingMissingReplies method

func (*MockThreadRepository) GetThreadContext

func (m *MockThreadRepository) GetThreadContext(ctx context.Context, statusID string) (*interfaces.ThreadContextResult, error)

GetThreadContext mocks the GetThreadContext method

func (*MockThreadRepository) GetThreadNode

func (m *MockThreadRepository) GetThreadNode(ctx context.Context, rootStatusID, statusID string) (*models.ThreadNode, error)

GetThreadNode mocks the GetThreadNode method

func (*MockThreadRepository) GetThreadNodeByStatusID

func (m *MockThreadRepository) GetThreadNodeByStatusID(ctx context.Context, statusID string) (*models.ThreadNode, error)

GetThreadNodeByStatusID mocks the GetThreadNodeByStatusID method

func (*MockThreadRepository) GetThreadNodes

func (m *MockThreadRepository) GetThreadNodes(ctx context.Context, rootStatusID string) ([]*models.ThreadNode, error)

GetThreadNodes mocks the GetThreadNodes method

func (*MockThreadRepository) GetThreadSync

func (m *MockThreadRepository) GetThreadSync(ctx context.Context, statusID string) (*models.ThreadSync, error)

GetThreadSync mocks the GetThreadSync method

func (*MockThreadRepository) MarkMissingReplies

func (m *MockThreadRepository) MarkMissingReplies(ctx context.Context, rootStatusID, parentStatusID string, replyIDs []string) error

MarkMissingReplies mocks the MarkMissingReplies method

func (*MockThreadRepository) SaveMissingReply

func (m *MockThreadRepository) SaveMissingReply(ctx context.Context, missing *models.MissingReply) error

SaveMissingReply mocks the SaveMissingReply method

func (*MockThreadRepository) SaveThreadNode

func (m *MockThreadRepository) SaveThreadNode(ctx context.Context, node *models.ThreadNode) error

SaveThreadNode mocks the SaveThreadNode method

func (*MockThreadRepository) SaveThreadSync

func (m *MockThreadRepository) SaveThreadSync(ctx context.Context, sync *models.ThreadSync) error

SaveThreadSync mocks the SaveThreadSync method

type MockTimelineRepository

type MockTimelineRepository struct {
	mock.Mock
	*theorydb.BaseRepository
}

MockTimelineRepository mocks the TimelineRepository interface

func NewMockTimelineRepository

func NewMockTimelineRepository() *MockTimelineRepository

NewMockTimelineRepository creates a new mock timeline repository

func (*MockTimelineRepository) CreateEntry

func (m *MockTimelineRepository) CreateEntry(ctx context.Context, entry *models.Timeline) error

CreateEntry mocks the CreateEntry method

func (*MockTimelineRepository) DeleteEntry

func (m *MockTimelineRepository) DeleteEntry(ctx context.Context, timelineType, timelineID, entryID string) error

DeleteEntry mocks the DeleteEntry method

func (*MockTimelineRepository) GetTimeline

func (m *MockTimelineRepository) GetTimeline(ctx context.Context, timelineType, timelineID string, limit int, cursor string) ([]*models.Timeline, string, error)

GetTimeline mocks the GetTimeline method

type MockTimelineRepositoryInterface

type MockTimelineRepositoryInterface struct {
	mock.Mock
}

MockTimelineRepositoryInterface is a mock implementation of interfaces.TimelineRepository using testify/mock for expectation-based testing. Note: This is separate from MockTimelineRepository which is an older mock that doesn't implement the full interface.

func NewMockTimelineRepositoryInterface

func NewMockTimelineRepositoryInterface() *MockTimelineRepositoryInterface

NewMockTimelineRepositoryInterface creates a new mock timeline repository

func (*MockTimelineRepositoryInterface) CountTimelineEntries

func (m *MockTimelineRepositoryInterface) CountTimelineEntries(ctx context.Context, timelineType, timelineID string) (int, error)

CountTimelineEntries mocks the CountTimelineEntries method

func (*MockTimelineRepositoryInterface) CreateTimelineEntries

func (m *MockTimelineRepositoryInterface) CreateTimelineEntries(ctx context.Context, entries []*models.Timeline) error

CreateTimelineEntries mocks the CreateTimelineEntries method

func (*MockTimelineRepositoryInterface) CreateTimelineEntry

func (m *MockTimelineRepositoryInterface) CreateTimelineEntry(ctx context.Context, entry *models.Timeline) error

CreateTimelineEntry mocks the CreateTimelineEntry method

func (*MockTimelineRepositoryInterface) DeleteExpiredTimelineEntries

func (m *MockTimelineRepositoryInterface) DeleteExpiredTimelineEntries(ctx context.Context, before time.Time) error

DeleteExpiredTimelineEntries mocks the DeleteExpiredTimelineEntries method

func (*MockTimelineRepositoryInterface) DeleteTimelineEntriesByPost

func (m *MockTimelineRepositoryInterface) DeleteTimelineEntriesByPost(ctx context.Context, postID string) error

DeleteTimelineEntriesByPost mocks the DeleteTimelineEntriesByPost method

func (*MockTimelineRepositoryInterface) DeleteTimelineEntry

func (m *MockTimelineRepositoryInterface) DeleteTimelineEntry(ctx context.Context, timelineType, timelineID, entryID string, timelineAt time.Time) error

DeleteTimelineEntry mocks the DeleteTimelineEntry method

func (*MockTimelineRepositoryInterface) GetConversations

func (m *MockTimelineRepositoryInterface) GetConversations(ctx context.Context, username string, limit int, cursor string) ([]*models.Conversation, string, error)

GetConversations mocks the GetConversations method

func (*MockTimelineRepositoryInterface) GetDirectTimeline

func (m *MockTimelineRepositoryInterface) GetDirectTimeline(ctx context.Context, username string, limit int, cursor string) ([]*models.Timeline, string, error)

GetDirectTimeline mocks the GetDirectTimeline method

func (*MockTimelineRepositoryInterface) GetHashtagTimeline

func (m *MockTimelineRepositoryInterface) GetHashtagTimeline(ctx context.Context, hashtag string, local bool, limit int, cursor string) ([]*models.Timeline, string, error)

GetHashtagTimeline mocks the GetHashtagTimeline method

func (*MockTimelineRepositoryInterface) GetHomeTimeline

func (m *MockTimelineRepositoryInterface) GetHomeTimeline(ctx context.Context, username string, limit int, cursor string) ([]*models.Timeline, string, error)

GetHomeTimeline mocks the GetHomeTimeline method

func (*MockTimelineRepositoryInterface) GetListTimeline

func (m *MockTimelineRepositoryInterface) GetListTimeline(ctx context.Context, listID string, limit int, cursor string) ([]*models.Timeline, string, error)

GetListTimeline mocks the GetListTimeline method

func (*MockTimelineRepositoryInterface) GetPublicTimeline

func (m *MockTimelineRepositoryInterface) GetPublicTimeline(ctx context.Context, local bool, limit int, cursor string) ([]*models.Timeline, string, error)

GetPublicTimeline mocks the GetPublicTimeline method

func (*MockTimelineRepositoryInterface) GetTimelineEntriesByActor

func (m *MockTimelineRepositoryInterface) GetTimelineEntriesByActor(ctx context.Context, actorID string, limit int, cursor string) ([]*models.Timeline, string, error)

GetTimelineEntriesByActor mocks the GetTimelineEntriesByActor method

func (*MockTimelineRepositoryInterface) GetTimelineEntriesByLanguage

func (m *MockTimelineRepositoryInterface) GetTimelineEntriesByLanguage(ctx context.Context, language string, limit int, cursor string) ([]*models.Timeline, string, error)

GetTimelineEntriesByLanguage mocks the GetTimelineEntriesByLanguage method

func (*MockTimelineRepositoryInterface) GetTimelineEntriesByPost

func (m *MockTimelineRepositoryInterface) GetTimelineEntriesByPost(ctx context.Context, postID string, limit int, cursor string) ([]*models.Timeline, string, error)

GetTimelineEntriesByPost mocks the GetTimelineEntriesByPost method

func (*MockTimelineRepositoryInterface) GetTimelineEntriesByVisibility

func (m *MockTimelineRepositoryInterface) GetTimelineEntriesByVisibility(ctx context.Context, visibility string, limit int, cursor string) ([]*models.Timeline, string, error)

GetTimelineEntriesByVisibility mocks the GetTimelineEntriesByVisibility method

func (*MockTimelineRepositoryInterface) GetTimelineEntriesInRange

func (m *MockTimelineRepositoryInterface) GetTimelineEntriesInRange(ctx context.Context, timelineType, timelineID string, startTime, endTime time.Time, limit int) ([]*models.Timeline, error)

GetTimelineEntriesInRange mocks the GetTimelineEntriesInRange method

func (*MockTimelineRepositoryInterface) GetTimelineEntriesWithFilters

func (m *MockTimelineRepositoryInterface) GetTimelineEntriesWithFilters(ctx context.Context, timelineType, timelineID string, filters interfaces.TimelineFilters, limit int, cursor string) ([]*models.Timeline, string, error)

GetTimelineEntriesWithFilters mocks the GetTimelineEntriesWithFilters method

func (*MockTimelineRepositoryInterface) GetTimelineEntry

func (m *MockTimelineRepositoryInterface) GetTimelineEntry(ctx context.Context, timelineType, timelineID, entryID string, timelineAt time.Time) (*models.Timeline, error)

GetTimelineEntry mocks the GetTimelineEntry method

func (*MockTimelineRepositoryInterface) RemoveFromTimelines

func (m *MockTimelineRepositoryInterface) RemoveFromTimelines(ctx context.Context, objectID string) error

RemoveFromTimelines mocks the RemoveFromTimelines method

func (*MockTimelineRepositoryInterface) UpdateTimelineEntry

func (m *MockTimelineRepositoryInterface) UpdateTimelineEntry(ctx context.Context, entry *models.Timeline) error

UpdateTimelineEntry mocks the UpdateTimelineEntry method

type MockTrackingRepository

type MockTrackingRepository struct {
	mock.Mock
}

MockTrackingRepository is a mock implementation of interfaces.TrackingRepository using testify/mock for expectation-based testing.

func NewMockTrackingRepository

func NewMockTrackingRepository() *MockTrackingRepository

NewMockTrackingRepository creates a new mock tracking repository

func (*MockTrackingRepository) Aggregate

func (m *MockTrackingRepository) Aggregate(ctx context.Context, operationType, period string, windowStart, windowEnd time.Time) error

Aggregate mocks the Aggregate method

func (*MockTrackingRepository) BatchCreate

func (m *MockTrackingRepository) BatchCreate(ctx context.Context, trackingList []*models.DynamoDBCostRecord) error

BatchCreate mocks the BatchCreate method

func (*MockTrackingRepository) Create

Create mocks the Create method

func (*MockTrackingRepository) CreateAggregated

func (m *MockTrackingRepository) CreateAggregated(ctx context.Context, aggregated *models.DynamoDBCostAggregation) error

CreateAggregated mocks the CreateAggregated method

func (*MockTrackingRepository) CreateRelayBudget

func (m *MockTrackingRepository) CreateRelayBudget(ctx context.Context, budget *models.RelayBudget) error

CreateRelayBudget mocks the CreateRelayBudget method

func (*MockTrackingRepository) CreateRelayCost

func (m *MockTrackingRepository) CreateRelayCost(ctx context.Context, relayCost *models.RelayCost) error

CreateRelayCost mocks the CreateRelayCost method

func (*MockTrackingRepository) CreateRelayMetrics

func (m *MockTrackingRepository) CreateRelayMetrics(ctx context.Context, metrics *models.RelayMetrics) error

CreateRelayMetrics mocks the CreateRelayMetrics method

func (*MockTrackingRepository) Get

func (m *MockTrackingRepository) Get(ctx context.Context, operationType, id string, timestamp time.Time) (*models.DynamoDBCostRecord, error)

Get mocks the Get method

func (*MockTrackingRepository) GetAggregated

func (m *MockTrackingRepository) GetAggregated(ctx context.Context, period, operationType string, windowStart time.Time) (*models.DynamoDBCostAggregation, error)

GetAggregated mocks the GetAggregated method

func (*MockTrackingRepository) GetAggregatedCostsByPeriod

func (m *MockTrackingRepository) GetAggregatedCostsByPeriod(ctx context.Context, period string, startDate, endDate time.Time) ([]*models.DynamoDBCostAggregation, error)

GetAggregatedCostsByPeriod mocks the GetAggregatedCostsByPeriod method

func (*MockTrackingRepository) GetCostProjections

func (m *MockTrackingRepository) GetCostProjections(ctx context.Context, period string) (*storage.CostProjection, error)

GetCostProjections mocks the GetCostProjections method

func (*MockTrackingRepository) GetCostTrends

func (m *MockTrackingRepository) GetCostTrends(ctx context.Context, period string, operationType string, lookbackDays int) (*interfaces.CostTrend, error)

GetCostTrends mocks the GetCostTrends method

func (*MockTrackingRepository) GetCostsByDateRange

func (m *MockTrackingRepository) GetCostsByDateRange(ctx context.Context, startDate, endDate time.Time) ([]*models.DynamoDBCostRecord, error)

GetCostsByDateRange mocks the GetCostsByDateRange method

func (*MockTrackingRepository) GetCostsByOperationType

func (m *MockTrackingRepository) GetCostsByOperationType(ctx context.Context, startDate, endDate time.Time) (map[string]*models.DynamoDBServiceCostStats, error)

GetCostsByOperationType mocks the GetCostsByOperationType method

func (*MockTrackingRepository) GetCostsByService

func (m *MockTrackingRepository) GetCostsByService(ctx context.Context, startDate, endDate time.Time) (map[string]*models.DynamoDBServiceCostStats, error)

GetCostsByService mocks the GetCostsByService method

func (*MockTrackingRepository) GetDailyAggregates

func (m *MockTrackingRepository) GetDailyAggregates(ctx context.Context, startDate, endDate time.Time) ([]*interfaces.DailyAggregate, error)

GetDailyAggregates mocks the GetDailyAggregates method

func (*MockTrackingRepository) GetHighCostOperations

func (m *MockTrackingRepository) GetHighCostOperations(ctx context.Context, thresholdDollars float64, startTime, endTime time.Time, limit int) ([]*models.DynamoDBCostRecord, error)

GetHighCostOperations mocks the GetHighCostOperations method

func (*MockTrackingRepository) GetMonthlyAggregate

func (m *MockTrackingRepository) GetMonthlyAggregate(ctx context.Context, year, month int) (*interfaces.MonthlyAggregate, error)

GetMonthlyAggregate mocks the GetMonthlyAggregate method

func (*MockTrackingRepository) GetRecentCosts

func (m *MockTrackingRepository) GetRecentCosts(ctx context.Context, since time.Time, limit int) ([]*models.DynamoDBCostRecord, error)

GetRecentCosts mocks the GetRecentCosts method

func (*MockTrackingRepository) GetRelayCostsByDateRange

func (m *MockTrackingRepository) GetRelayCostsByDateRange(ctx context.Context, startDate, endDate time.Time, limit int) ([]*models.RelayCost, error)

GetRelayCostsByDateRange mocks the GetRelayCostsByDateRange method

func (*MockTrackingRepository) GetRelayCostsByURL

func (m *MockTrackingRepository) GetRelayCostsByURL(ctx context.Context, relayURL string, startTime, endTime time.Time, limit int, cursor string, operationType string) ([]*models.RelayCost, string, error)

GetRelayCostsByURL mocks the GetRelayCostsByURL method

func (*MockTrackingRepository) GetRelayMetrics

func (m *MockTrackingRepository) GetRelayMetrics(ctx context.Context, relayURL, period string, windowStart time.Time) (*models.RelayMetrics, error)

GetRelayMetrics mocks the GetRelayMetrics method

func (*MockTrackingRepository) GetRelayMetricsHistory

func (m *MockTrackingRepository) GetRelayMetricsHistory(ctx context.Context, relayURL string, startTime, endTime time.Time, limit int, cursor string) ([]*models.RelayMetrics, string, error)

GetRelayMetricsHistory mocks the GetRelayMetricsHistory method

func (*MockTrackingRepository) GetTableCostStats

func (m *MockTrackingRepository) GetTableCostStats(ctx context.Context, tableName string, startTime, endTime time.Time) (*interfaces.TableCostStats, error)

GetTableCostStats mocks the GetTableCostStats method

func (*MockTrackingRepository) ListAggregatedByPeriod

func (m *MockTrackingRepository) ListAggregatedByPeriod(ctx context.Context, period, operationType string, startTime, endTime time.Time, limit int, cursor string) ([]*models.DynamoDBCostAggregation, string, error)

ListAggregatedByPeriod mocks the ListAggregatedByPeriod method

func (*MockTrackingRepository) ListByOperationType

func (m *MockTrackingRepository) ListByOperationType(ctx context.Context, operationType string, startTime, endTime time.Time, limit int) ([]*models.DynamoDBCostRecord, error)

ListByOperationType mocks the ListByOperationType method

func (*MockTrackingRepository) ListByTable

func (m *MockTrackingRepository) ListByTable(ctx context.Context, tableName string, startTime, endTime time.Time, limit int, cursor string) ([]*models.DynamoDBCostRecord, string, error)

ListByTable mocks the ListByTable method

func (*MockTrackingRepository) UpdateAggregated

func (m *MockTrackingRepository) UpdateAggregated(ctx context.Context, aggregated *models.DynamoDBCostAggregation) error

UpdateAggregated mocks the UpdateAggregated method

func (*MockTrackingRepository) UpdateRelayMetrics

func (m *MockTrackingRepository) UpdateRelayMetrics(ctx context.Context, metrics *models.RelayMetrics) error

UpdateRelayMetrics mocks the UpdateRelayMetrics method

type MockTrendingRepository

type MockTrendingRepository struct {
	mock.Mock
}

MockTrendingRepository is a mock implementation of interfaces.TrendingRepository using testify/mock for expectation-based testing.

func NewMockTrendingRepository

func NewMockTrendingRepository() *MockTrendingRepository

NewMockTrendingRepository creates a new mock trending repository

func (*MockTrendingRepository) GetEngagementMetrics

func (m *MockTrendingRepository) GetEngagementMetrics(ctx context.Context, statusID string) (*storage.EngagementMetrics, error)

GetEngagementMetrics mocks the GetEngagementMetrics method

func (*MockTrendingRepository) GetRecentHashtags

func (m *MockTrendingRepository) GetRecentHashtags(ctx context.Context, since time.Time, limit int) ([]*storage.TrendingHashtag, error)

GetRecentHashtags mocks the GetRecentHashtags method

func (m *MockTrendingRepository) GetRecentLinks(ctx context.Context, since time.Time, limit int) ([]*storage.TrendingLink, error)

GetRecentLinks mocks the GetRecentLinks method

func (*MockTrendingRepository) GetRecentStatusesWithEngagement

func (m *MockTrendingRepository) GetRecentStatusesWithEngagement(ctx context.Context, since time.Time, limit int) ([]*storage.TrendingStatus, error)

GetRecentStatusesWithEngagement mocks the GetRecentStatusesWithEngagement method

func (*MockTrendingRepository) GetTrendingHashtags

func (m *MockTrendingRepository) GetTrendingHashtags(ctx context.Context, since time.Time, limit int) ([]*storage.TrendingHashtag, error)

GetTrendingHashtags mocks the GetTrendingHashtags method

func (m *MockTrendingRepository) GetTrendingLinks(ctx context.Context, since time.Time, limit int) ([]*storage.TrendingLink, error)

GetTrendingLinks mocks the GetTrendingLinks method

func (*MockTrendingRepository) GetTrendingStatuses

func (m *MockTrendingRepository) GetTrendingStatuses(ctx context.Context, since time.Time, limit int) ([]*storage.TrendingStatus, error)

GetTrendingStatuses mocks the GetTrendingStatuses method

func (*MockTrendingRepository) RecordHashtagUsage

func (m *MockTrendingRepository) RecordHashtagUsage(ctx context.Context, hashtag string, statusID string, authorID string) error

RecordHashtagUsage mocks the RecordHashtagUsage method

func (*MockTrendingRepository) RecordLinkShare

func (m *MockTrendingRepository) RecordLinkShare(ctx context.Context, linkURL string, statusID string, authorID string) error

RecordLinkShare mocks the RecordLinkShare method

func (*MockTrendingRepository) RecordStatusEngagement

func (m *MockTrendingRepository) RecordStatusEngagement(ctx context.Context, statusID string, engagementType string, userID string) error

RecordStatusEngagement mocks the RecordStatusEngagement method

func (*MockTrendingRepository) SetStatusRepository

func (m *MockTrendingRepository) SetStatusRepository(statusRepo interface{})

SetStatusRepository mocks the SetStatusRepository method

func (*MockTrendingRepository) StoreEngagementMetrics

func (m *MockTrendingRepository) StoreEngagementMetrics(ctx context.Context, metrics *storage.EngagementMetrics) error

StoreEngagementMetrics mocks the StoreEngagementMetrics method

func (*MockTrendingRepository) StoreHashtagTrend

func (m *MockTrendingRepository) StoreHashtagTrend(ctx context.Context, trend any) error

StoreHashtagTrend mocks the StoreHashtagTrend method

func (*MockTrendingRepository) StoreLinkTrend

func (m *MockTrendingRepository) StoreLinkTrend(ctx context.Context, trend any) error

StoreLinkTrend mocks the StoreLinkTrend method

func (*MockTrendingRepository) StoreStatusTrend

func (m *MockTrendingRepository) StoreStatusTrend(ctx context.Context, trend any) error

StoreStatusTrend mocks the StoreStatusTrend method

type MockTrustRepository

type MockTrustRepository struct {
	mock.Mock
}

MockTrustRepository is a mock implementation of interfaces.TrustRepository using testify/mock for expectation-based testing.

func NewMockTrustRepository

func NewMockTrustRepository() *MockTrustRepository

NewMockTrustRepository creates a new mock trust repository

func (*MockTrustRepository) CreateTrustRelationship

func (m *MockTrustRepository) CreateTrustRelationship(ctx context.Context, relationship *storage.TrustRelationship) error

CreateTrustRelationship mocks the CreateTrustRelationship method

func (*MockTrustRepository) DeleteTrustRelationship

func (m *MockTrustRepository) DeleteTrustRelationship(ctx context.Context, trusterID, trusteeID, category string) error

DeleteTrustRelationship mocks the DeleteTrustRelationship method

func (*MockTrustRepository) GetAllTrustRelationships

func (m *MockTrustRepository) GetAllTrustRelationships(ctx context.Context, limit int) ([]*storage.TrustRelationship, error)

GetAllTrustRelationships mocks the GetAllTrustRelationships method

func (*MockTrustRepository) GetTrustRelationship

func (m *MockTrustRepository) GetTrustRelationship(ctx context.Context, trusterID, trusteeID, category string) (*storage.TrustRelationship, error)

GetTrustRelationship mocks the GetTrustRelationship method

func (*MockTrustRepository) GetTrustRelationships

func (m *MockTrustRepository) GetTrustRelationships(ctx context.Context, trusterID string, limit int, cursor string) ([]*storage.TrustRelationship, string, error)

GetTrustRelationships mocks the GetTrustRelationships method

func (*MockTrustRepository) GetTrustScore

func (m *MockTrustRepository) GetTrustScore(ctx context.Context, actorID, category string) (*storage.TrustScore, error)

GetTrustScore mocks the GetTrustScore method

func (*MockTrustRepository) GetTrustedByRelationships

func (m *MockTrustRepository) GetTrustedByRelationships(ctx context.Context, trusteeID string, limit int, cursor string) ([]*storage.TrustRelationship, string, error)

GetTrustedByRelationships mocks the GetTrustedByRelationships method

func (*MockTrustRepository) GetUserTrustScore

func (m *MockTrustRepository) GetUserTrustScore(ctx context.Context, userID string) (float64, error)

GetUserTrustScore mocks the GetUserTrustScore method

func (*MockTrustRepository) RecordTrustUpdate

func (m *MockTrustRepository) RecordTrustUpdate(ctx context.Context, update *storage.TrustUpdate) error

RecordTrustUpdate mocks the RecordTrustUpdate method

func (*MockTrustRepository) UpdateTrustRelationship

func (m *MockTrustRepository) UpdateTrustRelationship(ctx context.Context, relationship *storage.TrustRelationship) error

UpdateTrustRelationship mocks the UpdateTrustRelationship method

func (*MockTrustRepository) UpdateTrustScore

func (m *MockTrustRepository) UpdateTrustScore(ctx context.Context, score *storage.TrustScore) error

UpdateTrustScore mocks the UpdateTrustScore method

type MockUserRepository

type MockUserRepository struct {
	mock.Mock
	*theorydb.BaseRepository
}

MockUserRepository mocks the UserRepository interface

func NewMockUserRepository

func NewMockUserRepository() *MockUserRepository

NewMockUserRepository creates a new mock user repository

func (*MockUserRepository) Create

func (m *MockUserRepository) Create(ctx context.Context, user *models.User) error

Create mocks the Create method

func (*MockUserRepository) Delete

func (m *MockUserRepository) Delete(ctx context.Context, userID string) error

Delete mocks the Delete method

func (*MockUserRepository) GetByID

func (m *MockUserRepository) GetByID(ctx context.Context, userID string) (*models.User, error)

GetByID mocks the GetByID method

func (*MockUserRepository) GetByUsername

func (m *MockUserRepository) GetByUsername(ctx context.Context, username string) (*models.User, error)

GetByUsername mocks the GetByUsername method

func (*MockUserRepository) Update

func (m *MockUserRepository) Update(ctx context.Context, user *models.User) error

Update mocks the Update method

type MockUserRepositoryInterface

type MockUserRepositoryInterface struct {
	mock.Mock
}

MockUserRepositoryInterface is a mock implementation of interfaces.UserRepository using testify/mock for expectation-based testing.

func NewMockUserRepositoryInterface

func NewMockUserRepositoryInterface() *MockUserRepositoryInterface

NewMockUserRepositoryInterface creates a new mock user repository

func (*MockUserRepositoryInterface) AcceptFollow

func (m *MockUserRepositoryInterface) AcceptFollow(ctx context.Context, followerUsername, followedUsername string) error

AcceptFollow mocks the AcceptFollow method

func (*MockUserRepositoryInterface) CacheRemoteActor

func (m *MockUserRepositoryInterface) CacheRemoteActor(ctx context.Context, handle string, actor *activitypub.Actor, ttl time.Duration) error

CacheRemoteActor mocks the CacheRemoteActor method

func (*MockUserRepositoryInterface) CreateAccountNote

func (m *MockUserRepositoryInterface) CreateAccountNote(ctx context.Context, note *storage.AccountNote) error

CreateAccountNote mocks the CreateAccountNote method

func (*MockUserRepositoryInterface) CreateAccountPin

func (m *MockUserRepositoryInterface) CreateAccountPin(ctx context.Context, pin *storage.AccountPin) error

CreateAccountPin mocks the CreateAccountPin method

func (*MockUserRepositoryInterface) CreateBookmark

func (m *MockUserRepositoryInterface) CreateBookmark(ctx context.Context, username, objectID string) error

CreateBookmark mocks the CreateBookmark method

func (*MockUserRepositoryInterface) CreateConversationMute

func (m *MockUserRepositoryInterface) CreateConversationMute(ctx context.Context, mute *storage.ConversationMute) error

CreateConversationMute mocks the CreateConversationMute method

func (*MockUserRepositoryInterface) CreateTrustRelationship

func (m *MockUserRepositoryInterface) CreateTrustRelationship(ctx context.Context, relationship *storage.TrustRelationship) error

CreateTrustRelationship mocks the CreateTrustRelationship method

func (*MockUserRepositoryInterface) CreateUser

func (m *MockUserRepositoryInterface) CreateUser(ctx context.Context, user *storage.User) error

CreateUser mocks the CreateUser method

func (*MockUserRepositoryInterface) CreateVouch

func (m *MockUserRepositoryInterface) CreateVouch(ctx context.Context, vouch *storage.Vouch) error

CreateVouch mocks the CreateVouch method

func (*MockUserRepositoryInterface) DeleteAccountNote

func (m *MockUserRepositoryInterface) DeleteAccountNote(ctx context.Context, username, targetActorID string) error

DeleteAccountNote mocks the DeleteAccountNote method

func (*MockUserRepositoryInterface) DeleteAccountPin

func (m *MockUserRepositoryInterface) DeleteAccountPin(ctx context.Context, username, pinnedActorID string) error

DeleteAccountPin mocks the DeleteAccountPin method

func (*MockUserRepositoryInterface) DeleteConversationMute

func (m *MockUserRepositoryInterface) DeleteConversationMute(ctx context.Context, username, conversationID string) error

DeleteConversationMute mocks the DeleteConversationMute method

func (*MockUserRepositoryInterface) DeleteExpiredTimelineEntries

func (m *MockUserRepositoryInterface) DeleteExpiredTimelineEntries(ctx context.Context, before time.Time) error

DeleteExpiredTimelineEntries mocks the DeleteExpiredTimelineEntries method

func (*MockUserRepositoryInterface) DeleteFromTimeline

func (m *MockUserRepositoryInterface) DeleteFromTimeline(ctx context.Context, timelineType, timelineID, entryID string) error

DeleteFromTimeline mocks the DeleteFromTimeline method

func (*MockUserRepositoryInterface) DeleteTrustRelationship

func (m *MockUserRepositoryInterface) DeleteTrustRelationship(ctx context.Context, trusterID, trusteeID, category string) error

DeleteTrustRelationship mocks the DeleteTrustRelationship method

func (*MockUserRepositoryInterface) DeleteUser

func (m *MockUserRepositoryInterface) DeleteUser(ctx context.Context, username string) error

DeleteUser mocks the DeleteUser method

func (*MockUserRepositoryInterface) FanOutPost

func (m *MockUserRepositoryInterface) FanOutPost(ctx context.Context, activity *activitypub.Activity) error

FanOutPost mocks the FanOutPost method

func (*MockUserRepositoryInterface) GetAccountNote

func (m *MockUserRepositoryInterface) GetAccountNote(ctx context.Context, username, targetActorID string) (*storage.AccountNote, error)

GetAccountNote mocks the GetAccountNote method

func (*MockUserRepositoryInterface) GetAccountPins

func (m *MockUserRepositoryInterface) GetAccountPins(ctx context.Context, username string) ([]*storage.AccountPin, error)

GetAccountPins mocks the GetAccountPins method

func (*MockUserRepositoryInterface) GetActiveUserCount

func (m *MockUserRepositoryInterface) GetActiveUserCount(ctx context.Context, days int) (int64, error)

GetActiveUserCount mocks the GetActiveUserCount method

func (*MockUserRepositoryInterface) GetAllPreferences

func (m *MockUserRepositoryInterface) GetAllPreferences(ctx context.Context, username string) (map[string]any, error)

GetAllPreferences mocks the GetAllPreferences method

func (*MockUserRepositoryInterface) GetAllTrustRelationships

func (m *MockUserRepositoryInterface) GetAllTrustRelationships(ctx context.Context, limit int) ([]*storage.TrustRelationship, error)

GetAllTrustRelationships mocks the GetAllTrustRelationships method

func (*MockUserRepositoryInterface) GetBookmarks

func (m *MockUserRepositoryInterface) GetBookmarks(ctx context.Context, username string, limit int, cursor string) ([]string, string, error)

GetBookmarks mocks the GetBookmarks method

func (*MockUserRepositoryInterface) GetDirectTimeline

func (m *MockUserRepositoryInterface) GetDirectTimeline(ctx context.Context, username string, limit int, cursor string) ([]*storage.TimelineEntry, string, error)

GetDirectTimeline mocks the GetDirectTimeline method

func (*MockUserRepositoryInterface) GetFollowRequestState

func (m *MockUserRepositoryInterface) GetFollowRequestState(ctx context.Context, followerID, targetID string) (string, error)

GetFollowRequestState mocks the GetFollowRequestState method

func (*MockUserRepositoryInterface) GetHashtagTimeline

func (m *MockUserRepositoryInterface) GetHashtagTimeline(ctx context.Context, hashtag string, local bool, limit int, cursor string) ([]*storage.TimelineEntry, string, error)

GetHashtagTimeline mocks the GetHashtagTimeline method

func (*MockUserRepositoryInterface) GetLinkedProviders

func (m *MockUserRepositoryInterface) GetLinkedProviders(ctx context.Context, username string) ([]string, error)

GetLinkedProviders mocks the GetLinkedProviders method

func (*MockUserRepositoryInterface) GetListTimeline

func (m *MockUserRepositoryInterface) GetListTimeline(ctx context.Context, listID string, limit int, cursor string) ([]*storage.TimelineEntry, string, error)

GetListTimeline mocks the GetListTimeline method

func (*MockUserRepositoryInterface) GetMonthlyVouchCount

func (m *MockUserRepositoryInterface) GetMonthlyVouchCount(ctx context.Context, actorID string, year int, month time.Month) (int, error)

GetMonthlyVouchCount mocks the GetMonthlyVouchCount method

func (*MockUserRepositoryInterface) GetMutedConversations

func (m *MockUserRepositoryInterface) GetMutedConversations(ctx context.Context, username string) ([]string, error)

GetMutedConversations mocks the GetMutedConversations method

func (*MockUserRepositoryInterface) GetPendingFollowRequests

func (m *MockUserRepositoryInterface) GetPendingFollowRequests(ctx context.Context, username string, limit int, cursor string) ([]string, string, error)

GetPendingFollowRequests mocks the GetPendingFollowRequests method

func (*MockUserRepositoryInterface) GetPreference

func (m *MockUserRepositoryInterface) GetPreference(ctx context.Context, username, key string) (any, error)

GetPreference mocks the GetPreference method

func (*MockUserRepositoryInterface) GetReputation

func (m *MockUserRepositoryInterface) GetReputation(ctx context.Context, actorID string) (*storage.Reputation, error)

GetReputation mocks the GetReputation method

func (*MockUserRepositoryInterface) GetReputationHistory

func (m *MockUserRepositoryInterface) GetReputationHistory(ctx context.Context, actorID string, limit int) ([]*storage.Reputation, error)

GetReputationHistory mocks the GetReputationHistory method

func (*MockUserRepositoryInterface) GetTotalUserCount

func (m *MockUserRepositoryInterface) GetTotalUserCount(ctx context.Context) (int64, error)

GetTotalUserCount mocks the GetTotalUserCount method

func (*MockUserRepositoryInterface) GetTrustRelationship

func (m *MockUserRepositoryInterface) GetTrustRelationship(ctx context.Context, trusterID, trusteeID, category string) (*storage.TrustRelationship, error)

GetTrustRelationship mocks the GetTrustRelationship method

func (*MockUserRepositoryInterface) GetTrustRelationships

func (m *MockUserRepositoryInterface) GetTrustRelationships(ctx context.Context, trusterID string, limit int, cursor string) ([]*storage.TrustRelationship, string, error)

GetTrustRelationships mocks the GetTrustRelationships method

func (*MockUserRepositoryInterface) GetTrustScore

func (m *MockUserRepositoryInterface) GetTrustScore(ctx context.Context, actorID, category string) (*storage.TrustScore, error)

GetTrustScore mocks the GetTrustScore method

func (*MockUserRepositoryInterface) GetTrustedByRelationships

func (m *MockUserRepositoryInterface) GetTrustedByRelationships(ctx context.Context, trusteeID string, limit int, cursor string) ([]*storage.TrustRelationship, string, error)

GetTrustedByRelationships mocks the GetTrustedByRelationships method

func (*MockUserRepositoryInterface) GetUser

func (m *MockUserRepositoryInterface) GetUser(ctx context.Context, username string) (*storage.User, error)

GetUser mocks the GetUser method

func (*MockUserRepositoryInterface) GetUserByEmail

func (m *MockUserRepositoryInterface) GetUserByEmail(ctx context.Context, email string) (*storage.User, error)

GetUserByEmail mocks the GetUserByEmail method

func (*MockUserRepositoryInterface) GetUserByProviderID

func (m *MockUserRepositoryInterface) GetUserByProviderID(ctx context.Context, provider, providerID string) (*storage.User, error)

GetUserByProviderID mocks the GetUserByProviderID method

func (*MockUserRepositoryInterface) GetUserLanguagePreference

func (m *MockUserRepositoryInterface) GetUserLanguagePreference(ctx context.Context, username string) (string, error)

GetUserLanguagePreference mocks the GetUserLanguagePreference method

func (*MockUserRepositoryInterface) GetUserPreferences

func (m *MockUserRepositoryInterface) GetUserPreferences(ctx context.Context, username string) (*storage.UserPreferences, error)

GetUserPreferences mocks the GetUserPreferences method

func (*MockUserRepositoryInterface) GetUserTrustScore

func (m *MockUserRepositoryInterface) GetUserTrustScore(ctx context.Context, userID string) (float64, error)

GetUserTrustScore mocks the GetUserTrustScore method

func (*MockUserRepositoryInterface) GetVouch

func (m *MockUserRepositoryInterface) GetVouch(ctx context.Context, vouchID string) (*storage.Vouch, error)

GetVouch mocks the GetVouch method

func (*MockUserRepositoryInterface) GetVouchesByActor

func (m *MockUserRepositoryInterface) GetVouchesByActor(ctx context.Context, actorID string, activeOnly bool) ([]*storage.Vouch, error)

GetVouchesByActor mocks the GetVouchesByActor method

func (*MockUserRepositoryInterface) GetVouchesForActor

func (m *MockUserRepositoryInterface) GetVouchesForActor(ctx context.Context, actorID string, activeOnly bool) ([]*storage.Vouch, error)

GetVouchesForActor mocks the GetVouchesForActor method

func (*MockUserRepositoryInterface) IsAccountPinned

func (m *MockUserRepositoryInterface) IsAccountPinned(ctx context.Context, username, actorID string) (bool, error)

IsAccountPinned mocks the IsAccountPinned method

func (*MockUserRepositoryInterface) IsBookmarked

func (m *MockUserRepositoryInterface) IsBookmarked(ctx context.Context, username, objectID string) (bool, error)

IsBookmarked mocks the IsBookmarked method

func (*MockUserRepositoryInterface) IsConversationMuted

func (m *MockUserRepositoryInterface) IsConversationMuted(ctx context.Context, username, conversationID string) (bool, error)

IsConversationMuted mocks the IsConversationMuted method

func (*MockUserRepositoryInterface) IsNotificationMuted

func (m *MockUserRepositoryInterface) IsNotificationMuted(ctx context.Context, userID, targetID string) (bool, error)

IsNotificationMuted mocks the IsNotificationMuted method

func (*MockUserRepositoryInterface) LinkProviderAccount

func (m *MockUserRepositoryInterface) LinkProviderAccount(ctx context.Context, username, provider, providerID string) error

LinkProviderAccount mocks the LinkProviderAccount method

func (*MockUserRepositoryInterface) ListAgents

func (m *MockUserRepositoryInterface) ListAgents(ctx context.Context, limit int32, cursor string) ([]*storage.User, string, error)

ListAgents mocks the ListAgents method

func (*MockUserRepositoryInterface) ListUsers

func (m *MockUserRepositoryInterface) ListUsers(ctx context.Context, limit int32, cursor string) ([]*storage.User, string, error)

ListUsers mocks the ListUsers method

func (*MockUserRepositoryInterface) ListUsersByRole

func (m *MockUserRepositoryInterface) ListUsersByRole(ctx context.Context, role string) ([]*storage.User, error)

ListUsersByRole mocks the ListUsersByRole method

func (*MockUserRepositoryInterface) RecordTrustUpdate

func (m *MockUserRepositoryInterface) RecordTrustUpdate(ctx context.Context, update *storage.TrustUpdate) error

RecordTrustUpdate mocks the RecordTrustUpdate method

func (*MockUserRepositoryInterface) RejectFollow

func (m *MockUserRepositoryInterface) RejectFollow(ctx context.Context, followerUsername, followedUsername string) error

RejectFollow mocks the RejectFollow method

func (*MockUserRepositoryInterface) RemoveBookmark

func (m *MockUserRepositoryInterface) RemoveBookmark(ctx context.Context, username, objectID string) error

RemoveBookmark mocks the RemoveBookmark method

func (*MockUserRepositoryInterface) RemoveFromFollowers

func (m *MockUserRepositoryInterface) RemoveFromFollowers(ctx context.Context, username, followerUsername string) error

RemoveFromFollowers mocks the RemoveFromFollowers method

func (*MockUserRepositoryInterface) SetPreference

func (m *MockUserRepositoryInterface) SetPreference(ctx context.Context, username, key string, value any) error

SetPreference mocks the SetPreference method

func (*MockUserRepositoryInterface) SetUserLanguagePreference

func (m *MockUserRepositoryInterface) SetUserLanguagePreference(ctx context.Context, username string, language string) error

SetUserLanguagePreference mocks the SetUserLanguagePreference method

func (*MockUserRepositoryInterface) StoreReputation

func (m *MockUserRepositoryInterface) StoreReputation(ctx context.Context, actorID string, reputation *storage.Reputation) error

StoreReputation mocks the StoreReputation method

func (*MockUserRepositoryInterface) UnlinkProviderAccount

func (m *MockUserRepositoryInterface) UnlinkProviderAccount(ctx context.Context, username, provider string) error

UnlinkProviderAccount mocks the UnlinkProviderAccount method

func (*MockUserRepositoryInterface) UpdateAccountNote

func (m *MockUserRepositoryInterface) UpdateAccountNote(ctx context.Context, note *storage.AccountNote) error

UpdateAccountNote mocks the UpdateAccountNote method

func (*MockUserRepositoryInterface) UpdatePreferences

func (m *MockUserRepositoryInterface) UpdatePreferences(ctx context.Context, username string, preferences map[string]any) error

UpdatePreferences mocks the UpdatePreferences method

func (*MockUserRepositoryInterface) UpdateTrustRelationship

func (m *MockUserRepositoryInterface) UpdateTrustRelationship(ctx context.Context, relationship *storage.TrustRelationship) error

UpdateTrustRelationship mocks the UpdateTrustRelationship method

func (*MockUserRepositoryInterface) UpdateTrustScore

func (m *MockUserRepositoryInterface) UpdateTrustScore(ctx context.Context, score *storage.TrustScore) error

UpdateTrustScore mocks the UpdateTrustScore method

func (*MockUserRepositoryInterface) UpdateUser

func (m *MockUserRepositoryInterface) UpdateUser(ctx context.Context, username string, updates map[string]any) error

UpdateUser mocks the UpdateUser method

func (*MockUserRepositoryInterface) UpdateUserPreferences

func (m *MockUserRepositoryInterface) UpdateUserPreferences(ctx context.Context, username string, preferences *storage.UserPreferences) error

UpdateUserPreferences mocks the UpdateUserPreferences method

func (*MockUserRepositoryInterface) UpdateVouchStatus

func (m *MockUserRepositoryInterface) UpdateVouchStatus(ctx context.Context, vouchID string, active bool, revokedAt *time.Time) error

UpdateVouchStatus mocks the UpdateVouchStatus method

type MockWebSocketCostRepository

type MockWebSocketCostRepository struct {
	mock.Mock
}

MockWebSocketCostRepository is a mock implementation of interfaces.WebSocketCostRepository using testify/mock for expectation-based testing.

func NewMockWebSocketCostRepository

func NewMockWebSocketCostRepository() *MockWebSocketCostRepository

NewMockWebSocketCostRepository creates a new mock WebSocket cost repository

func (*MockWebSocketCostRepository) AggregateWebSocketCosts

func (m *MockWebSocketCostRepository) AggregateWebSocketCosts(ctx context.Context, operationType, period string, windowStart, windowEnd time.Time) error

AggregateWebSocketCosts mocks the AggregateWebSocketCosts method

func (*MockWebSocketCostRepository) BatchCreate

BatchCreate mocks the BatchCreate method

func (*MockWebSocketCostRepository) CheckBudgetLimits

func (m *MockWebSocketCostRepository) CheckBudgetLimits(ctx context.Context, userID string) (*interfaces.BudgetStatus, error)

CheckBudgetLimits mocks the CheckBudgetLimits method

func (*MockWebSocketCostRepository) Create

Create mocks the Create method

func (*MockWebSocketCostRepository) CreateAggregation

func (m *MockWebSocketCostRepository) CreateAggregation(ctx context.Context, aggregation *models.WebSocketCostAggregation) error

CreateAggregation mocks the CreateAggregation method

func (*MockWebSocketCostRepository) CreateBudget

CreateBudget mocks the CreateBudget method

func (*MockWebSocketCostRepository) CreateRecord

CreateRecord mocks the CreateRecord method

func (*MockWebSocketCostRepository) Get

func (m *MockWebSocketCostRepository) Get(ctx context.Context, operationType, id string, timestamp time.Time) (*models.WebSocketCostRecord, error)

Get mocks the Get method

func (*MockWebSocketCostRepository) GetAggregation

func (m *MockWebSocketCostRepository) GetAggregation(ctx context.Context, period, operationType string, windowStart time.Time) (*models.WebSocketCostAggregation, error)

GetAggregation mocks the GetAggregation method

func (*MockWebSocketCostRepository) GetBudget

func (m *MockWebSocketCostRepository) GetBudget(ctx context.Context, userID, period string) (*models.WebSocketCostBudget, error)

GetBudget mocks the GetBudget method

func (*MockWebSocketCostRepository) GetConnectionCostSummary

func (m *MockWebSocketCostRepository) GetConnectionCostSummary(ctx context.Context, connectionID string, startTime, endTime time.Time) (*interfaces.WebSocketConnectionCostSummary, error)

GetConnectionCostSummary mocks the GetConnectionCostSummary method

func (*MockWebSocketCostRepository) GetRecentCosts

func (m *MockWebSocketCostRepository) GetRecentCosts(ctx context.Context, since time.Time, limit int) ([]*models.WebSocketCostRecord, error)

GetRecentCosts mocks the GetRecentCosts method

func (*MockWebSocketCostRepository) GetRecord

func (m *MockWebSocketCostRepository) GetRecord(ctx context.Context, operationType, id string, timestamp time.Time) (*models.WebSocketCostRecord, error)

GetRecord mocks the GetRecord method

func (*MockWebSocketCostRepository) GetUserAggregation

func (m *MockWebSocketCostRepository) GetUserAggregation(ctx context.Context, userID, period, operationType string, windowStart time.Time) (*models.WebSocketCostAggregation, error)

GetUserAggregation mocks the GetUserAggregation method

func (*MockWebSocketCostRepository) GetUserBudgets

func (m *MockWebSocketCostRepository) GetUserBudgets(ctx context.Context, userID string) ([]*models.WebSocketCostBudget, error)

GetUserBudgets mocks the GetUserBudgets method

func (*MockWebSocketCostRepository) GetUserCostSummary

func (m *MockWebSocketCostRepository) GetUserCostSummary(ctx context.Context, userID string, startTime, endTime time.Time) (*interfaces.WebSocketUserCostSummary, error)

GetUserCostSummary mocks the GetUserCostSummary method

func (*MockWebSocketCostRepository) ListAggregationsByPeriod

func (m *MockWebSocketCostRepository) ListAggregationsByPeriod(ctx context.Context, period, operationType string, startTime, endTime time.Time, limit int) ([]*models.WebSocketCostAggregation, error)

ListAggregationsByPeriod mocks the ListAggregationsByPeriod method

func (*MockWebSocketCostRepository) ListByConnection

func (m *MockWebSocketCostRepository) ListByConnection(ctx context.Context, connectionID string, startTime, endTime time.Time, limit int) ([]*models.WebSocketCostRecord, error)

ListByConnection mocks the ListByConnection method

func (*MockWebSocketCostRepository) ListByOperationType

func (m *MockWebSocketCostRepository) ListByOperationType(ctx context.Context, operationType string, startTime, endTime time.Time, limit int) ([]*models.WebSocketCostRecord, error)

ListByOperationType mocks the ListByOperationType method

func (*MockWebSocketCostRepository) ListByUser

func (m *MockWebSocketCostRepository) ListByUser(ctx context.Context, userID string, startTime, endTime time.Time, limit int) ([]*models.WebSocketCostRecord, error)

ListByUser mocks the ListByUser method

func (*MockWebSocketCostRepository) UpdateAggregation

func (m *MockWebSocketCostRepository) UpdateAggregation(ctx context.Context, aggregation *models.WebSocketCostAggregation) error

UpdateAggregation mocks the UpdateAggregation method

func (*MockWebSocketCostRepository) UpdateBudget

UpdateBudget mocks the UpdateBudget method

func (*MockWebSocketCostRepository) UpdateBudgetUsage

func (m *MockWebSocketCostRepository) UpdateBudgetUsage(ctx context.Context, userID string, additionalCostMicroCents int64) error

UpdateBudgetUsage mocks the UpdateBudgetUsage method

type RepositoryTestHelper

type RepositoryTestHelper struct {
	MockDB       *mocks.MockDB
	MockQuery    *mocks.MockQuery
	Repositories *MockRepositoryFactory
}

RepositoryTestHelper provides utilities for repository testing

func NewRepositoryTestHelper

func NewRepositoryTestHelper() *RepositoryTestHelper

NewRepositoryTestHelper creates a new test helper

func (*RepositoryTestHelper) ExpectCreate

func (h *RepositoryTestHelper) ExpectCreate(_ interface{}, err error)

ExpectCreate sets up expectations for a create operation

func (*RepositoryTestHelper) ExpectDelete

func (h *RepositoryTestHelper) ExpectDelete(err error)

ExpectDelete sets up expectations for a delete operation

func (*RepositoryTestHelper) ExpectGet

func (h *RepositoryTestHelper) ExpectGet(result interface{}, err error)

ExpectGet sets up expectations for a get operation

func (*RepositoryTestHelper) ExpectQuery

func (h *RepositoryTestHelper) ExpectQuery(results interface{}, err error)

ExpectQuery sets up expectations for a query operation

func (*RepositoryTestHelper) ExpectUpdate

func (h *RepositoryTestHelper) ExpectUpdate(err error)

ExpectUpdate sets up expectations for an update operation

Source Files

Jump to

Keyboard shortcuts

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