Skip to content

Commit

Permalink
test: Add mock implementation for GetLockedNotesClipPaths method
Browse files Browse the repository at this point in the history
- Extend mockStore to include GetLockedNotesClipPaths method
- Prepare test infrastructure for locked notes clip path retrieval
  • Loading branch information
tphakala committed Feb 15, 2025
1 parent 1c45406 commit 2e2767e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/imageprovider/imageprovider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ func (m *mockStore) LockNote(noteID string) error { re
func (m *mockStore) UnlockNote(noteID string) error { return nil }
func (m *mockStore) GetNoteLock(noteID string) (*datastore.NoteLock, error) { return nil, nil }
func (m *mockStore) IsNoteLocked(noteID string) (bool, error) { return false, nil }
func (m *mockStore) GetLockedNotesClipPaths() ([]string, error) { return nil, nil }

// mockFailingStore is a mock implementation that simulates database failures
type mockFailingStore struct {
Expand Down

0 comments on commit 2e2767e

Please sign in to comment.