Skip to content

Commit

Permalink
feat: unit dvstore
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Dec 24, 2019
1 parent 39f69b0 commit 515f66f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions internal/dvstore/query_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package dvstore

import (
"fmt"
"testing"

"github.com/cayleygraph/cayley"
"github.com/cayleygraph/cayley/schema"
"github.com/stretchr/testify/assert"
"go.uber.org/zap"
"moul.io/godev"
)

func TestLoadTasks(t *testing.T) {
var (
h *cayley.Handle
schema *schema.Config
filters LoadTasksFilters
logger *zap.Logger
)
tasks, err := LoadTasks(h, schema, filters, logger)
assert.NotNil(t, tasks)
assert.NoError(t, err)
fmt.Println(godev.PrettyJSON(tasks))
}

0 comments on commit 515f66f

Please sign in to comment.