Documentation
¶
Overview ¶
Package notifytest holds the notification history helpers the shell's tests share: a store on a temporary file, and the history, the store and the popup list read back as pages and id sets.
Index ¶
- func AttachStore(t *testing.T, svc *notifications.Service) *notifications.Store
- func History(t *testing.T, svc *notifications.Service) []*notifications.Notification
- func IDs(notifs []*notifications.Notification) map[uint32]bool
- func Stored(t *testing.T, st *notifications.Store) []*notifications.Notification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachStore ¶
func AttachStore(t *testing.T, svc *notifications.Service) *notifications.Store
AttachStore persists svc's history in a store on a temporary file, closed when the test ends; call it before the first notification.
func History ¶
func History(t *testing.T, svc *notifications.Service) []*notifications.Notification
History is the first page of svc's history, newest first.
func IDs ¶
func IDs(notifs []*notifications.Notification) map[uint32]bool
IDs is the set of the notifications' ids.
func Stored ¶
func Stored(t *testing.T, st *notifications.Store) []*notifications.Notification
Stored is the first page of what st holds, newest first.
Types ¶
This section is empty.