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
|
|
@ -23,10 +23,10 @@ func TestLinksTo(t *testing.T) {
|
|||
tsFixed := newFixedIterator()
|
||||
tsFixed.AddValue(2)
|
||||
ts.On("GetIdFor", "cool").Return(1)
|
||||
ts.On("GetTripleIterator", "o", 1).Return(tsFixed)
|
||||
ts.On("GetTripleIterator", Object, 1).Return(tsFixed)
|
||||
fixed := newFixedIterator()
|
||||
fixed.AddValue(ts.GetIdFor("cool"))
|
||||
lto := NewLinksToIterator(ts, fixed, "o")
|
||||
lto := NewLinksToIterator(ts, fixed, Object)
|
||||
val, ok := lto.Next()
|
||||
if !ok {
|
||||
t.Error("At least one triple matches the fixed object")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue