Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-datastore
Commits
10b34df0
Commit
10b34df0
authored
Aug 07, 2018
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run the test suite against the map datastore
parent
813d38e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
basic_ds_test.go
basic_ds_test.go
+19
-0
No files found.
basic_ds_test.go
0 → 100644
View file @
10b34df0
package
datastore_test
import
(
"testing"
dstore
"github.com/ipfs/go-datastore"
dstest
"github.com/ipfs/go-datastore/test"
)
func
TestMapDatastore
(
t
*
testing
.
T
)
{
ds
:=
dstore
.
NewMapDatastore
()
dstest
.
SubtestAll
(
t
,
ds
)
}
func
TestNullDatastore
(
t
*
testing
.
T
)
{
ds
:=
dstore
.
NewNullDatastore
()
// The only test that passes. Nothing should be found.
dstest
.
SubtestNotFounds
(
t
,
ds
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment