Adding tests for deleting notes

This commit is contained in:
Micheal Wilkinson
2026-03-17 23:30:21 +00:00
parent c453f1582a
commit 4fc10c8a5b
2 changed files with 69 additions and 0 deletions

View File

@@ -155,6 +155,10 @@ func (s *SQLiteStore) GetAllNotes(ctx context.Context) ([]models.Note, error) {
return notes, nil
}
func (s *SQLiteStore) DeleteNoteByID(ctx context.Context, id int) error {
return fmt.Errorf("not implemented")
}
func (s *SQLiteStore) validateSchema(ctx context.Context) error {
_, err := s.write.ExecContext(ctx, `
CREATE TABLE IF NOT EXISTS notes (