Skip to content

Commit

Permalink
Merge pull request #2 from gotamer/robotamer-patch-2
Browse files Browse the repository at this point in the history
using exported Datastore type
  • Loading branch information
robotamer authored Jul 28, 2018
2 parents 9b122c4 + 353a8a7 commit 964af97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ds_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var testcases = map[string]string{
//
// d, close := newDS(t)
// defer close()
func newDS(t *testing.T) (*datastore, func()) {
func newDS(t *testing.T) (*Datastore, func()) {
path, err := ioutil.TempDir("/tmp", "testing_badger_")
if err != nil {
t.Fatal(err)
Expand All @@ -46,7 +46,7 @@ func newDS(t *testing.T) (*datastore, func()) {
}
}

func addTestCases(t *testing.T, d *datastore, testcases map[string]string) {
func addTestCases(t *testing.T, d *Datastore, testcases map[string]string) {
for k, v := range testcases {
dsk := ds.NewKey(k)
if err := d.Put(dsk, []byte(v)); err != nil {
Expand Down

0 comments on commit 964af97

Please sign in to comment.