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:
parent
4560af165e
commit
51f7775466
7 changed files with 224 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue