added some tests for the json storage.

This commit is contained in:
sm
2016-02-15 01:42:20 -08:00
parent 9e9bb74c4a
commit 456d502b72
4 changed files with 96 additions and 13 deletions
+2 -2
View File
@@ -35,8 +35,8 @@ type SimpleStore struct {
path string
}
// NewMemStore returns a ready-to-use SimpleStore storing json at path.
func NewMemStore(path string) *SimpleStore {
// NewSimpleStore returns a ready-to-use SimpleStore storing json at path.
func NewSimpleStore(path string) *SimpleStore {
return &SimpleStore{
path: path,
p: make(map[string]Package),