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
b086f25e
Commit
b086f25e
authored
Apr 06, 2019
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: remove some dead code
parent
d5f86f30
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
25 deletions
+0
-25
batch.go
batch.go
+0
-2
key_test.go
key_test.go
+0
-11
query/filter_test.go
query/filter_test.go
+0
-6
query/order_test.go
query/order_test.go
+0
-6
No files found.
batch.go
View file @
b086f25e
package
datastore
type
verb
int
type
op
struct
{
delete
bool
value
[]
byte
...
...
key_test.go
View file @
b086f25e
...
...
@@ -2,7 +2,6 @@ package datastore_test
import
(
"bytes"
"math/rand"
"path"
"strings"
"testing"
...
...
@@ -14,16 +13,6 @@ import (
// Hook up gocheck into the "go test" runner.
func
Test
(
t
*
testing
.
T
)
{
TestingT
(
t
)
}
func
randomString
()
string
{
chars
:=
"abcdefghijklmnopqrstuvwxyz1234567890"
var
buf
bytes
.
Buffer
l
:=
rand
.
Intn
(
50
)
for
j
:=
0
;
j
<
l
;
j
++
{
buf
.
WriteByte
(
chars
[
rand
.
Intn
(
len
(
chars
))])
}
return
buf
.
String
()
}
type
KeySuite
struct
{}
var
_
=
Suite
(
&
KeySuite
{})
...
...
query/filter_test.go
View file @
b086f25e
...
...
@@ -5,12 +5,6 @@ import (
"testing"
)
type
filterTestCase
struct
{
filter
Filter
keys
[]
string
expect
[]
string
}
func
testKeyFilter
(
t
*
testing
.
T
,
f
Filter
,
keys
[]
string
,
expect
[]
string
)
{
e
:=
make
([]
Entry
,
len
(
keys
))
for
i
,
k
:=
range
keys
{
...
...
query/order_test.go
View file @
b086f25e
...
...
@@ -5,12 +5,6 @@ import (
"testing"
)
type
orderTestCase
struct
{
order
Order
keys
[]
string
expect
[]
string
}
func
testKeyOrder
(
t
*
testing
.
T
,
f
Order
,
keys
[]
string
,
expect
[]
string
)
{
e
:=
make
([]
Entry
,
len
(
keys
))
for
i
,
k
:=
range
keys
{
...
...
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