Documentation ¶
Overview ¶
Package shortcuttest has common code for tests of implementations of shortcut.Store.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SubTests = map[string]SubTestFunction{ "Shortcut_GetAll": GetAll, "Shortcut_InsertGet": InsertGet, "Shortcut_GetNonExistent": GetNonExistent, "Shortcut_DeleteShortcut": GetNonExistent, }
SubTests are all the subtests we have for regression.Store.
Functions ¶
func DeleteShortcut ¶
Shortcut_DeleteShortcut tests that DeleteShortcut removes the shortcut id.
func GetAll ¶
Shortcut_GetAll tests that GetAll produces a channel of all the shortcuts in the database.
func GetNonExistent ¶
Shortcut_GetNonExistent tests that we fail when retrieving an unknown shortcut.
Types ¶
Click to show internal directories.
Click to hide internal directories.