Added Save/Load to db

Fixes #3. Fixes #2
This commit is contained in:
sm
2016-02-14 22:20:10 -08:00
parent af4faf0206
commit 4cfaf2124f
4 changed files with 70 additions and 17 deletions
+4 -4
View File
@@ -9,7 +9,7 @@ import (
)
func TestAdd(t *testing.T) {
ms := NewMemStore()
ms := NewMemStore("")
s := &Server{
storage: ms,
}
@@ -60,7 +60,7 @@ func TestAdd(t *testing.T) {
}
func TestInvalidPath(t *testing.T) {
ms := NewMemStore()
ms := NewMemStore("")
s := &Server{
storage: ms,
}
@@ -80,7 +80,7 @@ func TestInvalidPath(t *testing.T) {
}
func TestCannotDuplicateExistingPath(t *testing.T) {
ms := NewMemStore()
ms := NewMemStore("")
s := &Server{
storage: ms,
}
@@ -105,7 +105,7 @@ func TestCannotDuplicateExistingPath(t *testing.T) {
}
func TestCannotAddExistingSubPath(t *testing.T) {
ms := NewMemStore()
ms := NewMemStore("")
s := &Server{
storage: ms,
}