We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c94573b commit c015a0fCopy full SHA for c015a0f
store/json.go
@@ -246,6 +246,7 @@ func (kvs *jsonFileStore) Remove() {
246
kvs.Mutex.Unlock()
247
}
248
249
+// Dump returns the contents of the store in string format, erroring if it could not be read
250
func (kvs *jsonFileStore) Dump() (string, error) {
251
kvs.Mutex.Lock()
252
defer kvs.Mutex.Unlock()
store/json_test.go
@@ -134,7 +134,7 @@ func TestKeyValuePairsAreWrittenAndReadCorrectly(t *testing.T) {
134
// Dump empty store.
135
_, err = kvs.Dump()
136
if err == nil {
137
- t.Fatal("Expected store to be empty")
+ t.Fatal("Expected store to not exist")
138
139
140
// Write a key value pair.
0 commit comments