Skip to content

Commit

Permalink
Remove unused test helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
ronenh committed Mar 26, 2024
1 parent 17fe1d5 commit 3fe3686
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions graph/utils_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package graph_test

import (
"fmt"
"regexp"
"testing"

Expand All @@ -20,10 +19,6 @@ func graphReq(expr string) *dsr.GetGraphRequest {
return parseRelation(expr).graphReq()
}

func invertedGraphReq(expr string) *dsr.GetGraphRequest {
return parseRelation(expr).invert().graphReq()
}

type relation struct {
ObjectType model.ObjectName
ObjectID model.ObjectID
Expand Down Expand Up @@ -89,16 +84,6 @@ func (r *relation) graphReq() *dsr.GetGraphRequest {
}
}

func (r *relation) invert() *relation {
return &relation{
ObjectType: r.SubjectType,
ObjectID: r.SubjectID,
Relation: model.RelationName(fmt.Sprintf("%s_%s", r.ObjectType, r.Relation)),
SubjectType: r.ObjectType,
SubjectID: r.ObjectID,
}
}

type RelationsReader []*relation

func NewRelationsReader(rels ...string) RelationsReader {
Expand Down

0 comments on commit 3fe3686

Please sign in to comment.