private accessor

This commit is contained in:
mr
2024-07-31 10:07:55 +02:00
parent d6a2a416c1
commit 7ae1399a9a
21 changed files with 121 additions and 87 deletions

View File

@@ -21,7 +21,7 @@ func TestStoreOneData(t *testing.T) {
},
}
dma := DataMongoAccessor{}
dma := New()
id, _, _ := dma.StoreOne(&d)
assert.NotEmpty(t, id)
@@ -39,7 +39,7 @@ func TestLoadOneDate(t *testing.T) {
},
}
dma := DataMongoAccessor{}
dma := New()
new_d, _, _ := dma.StoreOne(&d)
assert.Equal(t, d, new_d)
}