Add bookmark tests

This commit is contained in:
Dan Sosedoff
2015-03-03 20:44:14 -06:00
parent 96bcaa5baa
commit 1e58c94598
7 changed files with 90 additions and 3 deletions

View File

@@ -42,8 +42,7 @@ func bookmarksPath() string {
return fmt.Sprintf("%s/.pgweb/bookmarks", path)
}
func readAllBookmarks() (map[string]Bookmark, error) {
path := bookmarksPath()
func readAllBookmarks(path string) (map[string]Bookmark, error) {
results := map[string]Bookmark{}
files, err := ioutil.ReadDir(path)