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

Add unit tests for models

This commit is contained in:
Frédéric Guillot 2017-11-25 19:06:02 -08:00
parent 4560af165e
commit 51f7775466
7 changed files with 224 additions and 1 deletions

View file

@ -7,6 +7,7 @@ package model
import "time"
import "fmt"
// Session represents a user session in the system.
type Session struct {
ID int64
UserID int64
@ -20,4 +21,5 @@ func (s *Session) String() string {
return fmt.Sprintf("ID=%d, UserID=%d, IP=%s", s.ID, s.UserID, s.IP)
}
// Sessions represents a list of sessions.
type Sessions []*Session