Replace string type with graph.Direction
This conversion is not complete as there are still uses of string directions via the Direction.String method in leveldb.
This commit is contained in:
parent
cd11053c98
commit
0a03cec497
21 changed files with 340 additions and 298 deletions
|
|
@ -16,6 +16,7 @@ package http
|
|||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
. "github.com/smartystreets/goconvey/convey"
|
||||
)
|
||||
|
||||
|
|
@ -28,7 +29,7 @@ func TestParseJSONOkay(t *testing.T) {
|
|||
x, err := ParseJsonToTripleList(bytelist)
|
||||
So(err, ShouldBeNil)
|
||||
So(len(x), ShouldEqual, 2)
|
||||
So(x[0].Sub, ShouldEqual, "foo")
|
||||
So(x[0].Subject, ShouldEqual, "foo")
|
||||
So(x[0].Provenance, ShouldEqual, "")
|
||||
So(x[1].Provenance, ShouldEqual, "graph")
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue