Testing List notes

This commit is contained in:
Micheal Wilkinson
2026-03-17 21:26:28 +00:00
parent 9d35cc39c6
commit 7e0701d50d
4 changed files with 67 additions and 0 deletions

View File

@@ -24,3 +24,7 @@ func (m *mockNoteStore) GetNoteByID(id int) (models.Note, error) {
}
return models.Note{}, fmt.Errorf("note with ID %d not found", id)
}
func (m *mockNoteStore) GetAllNotes() ([]models.Note, error) {
return m.Notes, nil
}