Skip to content

Commit

Permalink
Adjustments after running `fieldalignment -fix github.com/authzed/spi…
Browse files Browse the repository at this point in the history
…cedb/pkg/tuple`
  • Loading branch information
josephschorr committed Oct 21, 2024
1 parent 70d7928 commit 487e85b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/tuple/comparison_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ func TestEqual(t *testing.T) {
}

notEqualTestCases := []struct {
name string
lhs Relationship
rhs Relationship
name string
}{
{
name: "Mismatch Resource Type",
Expand Down
4 changes: 2 additions & 2 deletions pkg/tuple/core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (

func TestONRStringToCore(t *testing.T) {
tests := []struct {
expected *core.ObjectAndRelation
name string
ns string
oid string
rel string
expected *core.ObjectAndRelation
}{
{
name: "basic",
Expand All @@ -39,10 +39,10 @@ func TestONRStringToCore(t *testing.T) {

func TestRelationReference(t *testing.T) {
tests := []struct {
expected *core.RelationReference
name string
ns string
rel string
expected *core.RelationReference
}{
{
name: "basic",
Expand Down
4 changes: 2 additions & 2 deletions pkg/tuple/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ type RelationshipReference struct {

// Relationship represents a relationship between two objects.
type Relationship struct {
RelationshipReference
OptionalCaveat *core.ContextualizedCaveat
OptionalIntegrity *core.RelationshipIntegrity
RelationshipReference
}

// ToCoreTuple converts the Relationship to a core.RelationTuple.
Expand Down Expand Up @@ -133,8 +133,8 @@ const (

// RelationshipUpdate represents an update to a relationship.
type RelationshipUpdate struct {
Operation UpdateOperation
Relationship Relationship
Operation UpdateOperation
}

func (ru RelationshipUpdate) OperationString() string {
Expand Down

0 comments on commit 487e85b

Please sign in to comment.