Skip to content

Commit

Permalink
Merge pull request #22 from shane-ns1/name-fields-in-tests
Browse files Browse the repository at this point in the history
Add names to fields used in tests
  • Loading branch information
wojas authored Oct 31, 2023
2 parents 1510b01 + 50390d4 commit 6c2e01d
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions lmdbscan/scanner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ func TestScanner_Scan(t *testing.T) {
}

items := lmdbtest.SimpleItemList{
{"k0", "v0"},
{"k1", "v1"},
{"k2", "v2"},
{"k3", "v3"},
{"k4", "v4"},
{"k5", "v5"},
{K: "k0", V: "v0"},
{K: "k1", V: "v1"},
{K: "k2", V: "v2"},
{K: "k3", V: "v3"},
{K: "k4", V: "v4"},
{K: "k5", V: "v5"},
}
err = lmdbtest.Put(env, dbi, items)
if err != nil {
Expand Down Expand Up @@ -119,12 +119,12 @@ func TestScanner_Set(t *testing.T) {
}

items := lmdbtest.SimpleItemList{
{"k0", "v0"},
{"k1", "v1"},
{"k2", "v2"},
{"k3", "v3"},
{"k4", "v4"},
{"k5", "v5"},
{K: "k0", V: "v0"},
{K: "k1", V: "v1"},
{K: "k2", V: "v2"},
{K: "k3", V: "v3"},
{K: "k4", V: "v4"},
{K: "k5", V: "v5"},
}
err = lmdbtest.Put(env, dbi, items)
if err != nil {
Expand Down Expand Up @@ -166,12 +166,12 @@ func TestScanner_SetNext(t *testing.T) {
}

items := lmdbtest.SimpleItemList{
{"k0", "v0"},
{"k1", "v1"},
{"k2", "v2"},
{"k3", "v3"},
{"k4", "v4"},
{"k5", "v5"},
{K: "k0", V: "v0"},
{K: "k1", V: "v1"},
{K: "k2", V: "v2"},
{K: "k3", V: "v3"},
{K: "k4", V: "v4"},
{K: "k5", V: "v5"},
}
err = lmdbtest.Put(env, dbi, items)
if err != nil {
Expand Down Expand Up @@ -220,12 +220,12 @@ func TestScanner_Del(t *testing.T) {
}

items := lmdbtest.SimpleItemList{
{"k0", "v0"},
{"k1", "v1"},
{"k2", "v2"},
{"k3", "v3"},
{"k4", "v4"},
{"k5", "v5"},
{K: "k0", V: "v0"},
{K: "k1", V: "v1"},
{K: "k2", V: "v2"},
{K: "k3", V: "v3"},
{K: "k4", V: "v4"},
{K: "k5", V: "v5"},
}
err = lmdbtest.Put(env, dbi, items)
if err != nil {
Expand Down Expand Up @@ -277,12 +277,12 @@ func TestScanner_Del_closed(t *testing.T) {
}

items := lmdbtest.SimpleItemList{
{"k0", "v0"},
{"k1", "v1"},
{"k2", "v2"},
{"k3", "v3"},
{"k4", "v4"},
{"k5", "v5"},
{K: "k0", V: "v0"},
{K: "k1", V: "v1"},
{K: "k2", V: "v2"},
{K: "k3", V: "v3"},
{K: "k4", V: "v4"},
{K: "k5", V: "v5"},
}
err = lmdbtest.Put(env, dbi, items)
if err != nil {
Expand Down Expand Up @@ -313,12 +313,12 @@ func TestScanner_Cursor_Del(t *testing.T) {
}

items := lmdbtest.SimpleItemList{
{"k0", "v0"},
{"k1", "v1"},
{"k2", "v2"},
{"k3", "v3"},
{"k4", "v4"},
{"k5", "v5"},
{K: "k0", V: "v0"},
{K: "k1", V: "v1"},
{K: "k2", V: "v2"},
{K: "k3", V: "v3"},
{K: "k4", V: "v4"},
{K: "k5", V: "v5"},
}
err = lmdbtest.Put(env, dbi, items)
if err != nil {
Expand Down

0 comments on commit 6c2e01d

Please sign in to comment.