1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-16 18:01:37 +00:00

Add integration tests for feed creation

This commit is contained in:
Frédéric Guillot 2017-11-25 16:53:51 -08:00
parent f072439b79
commit 39b03cc393
46 changed files with 860 additions and 37 deletions

View file

@ -7,10 +7,11 @@ package storage
import (
"database/sql"
"fmt"
"github.com/miniflux/miniflux2/helper"
"github.com/miniflux/miniflux2/model"
"strings"
"time"
"github.com/miniflux/miniflux2/helper"
"github.com/miniflux/miniflux2/model"
)
func (s *Storage) HasIcon(feedID int64) bool {
@ -89,7 +90,7 @@ func (s *Storage) CreateFeedIcon(feed *model.Feed, icon *model.Icon) error {
_, err = s.db.Exec(`INSERT INTO feed_icons (feed_id, icon_id) VALUES ($1, $2)`, feed.ID, icon.ID)
if err != nil {
return fmt.Errorf("Unable to create feed icon: %v", err)
return fmt.Errorf("unable to create feed icon: %v", err)
}
return nil