Skip to content

Commit

Permalink
Dot-import fixtures.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalloc committed Sep 24, 2024
1 parent 8b9bd02 commit 30c05ee
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions compare_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/dogmatiq/dogma"
. "github.com/dogmatiq/enginekit/enginetest/stubs"
. "github.com/dogmatiq/testkit"
"github.com/dogmatiq/testkit/internal/fixtures"
. "github.com/dogmatiq/testkit/internal/fixtures"
"github.com/dogmatiq/testkit/internal/testingmock"
g "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
Expand All @@ -29,14 +29,14 @@ var _ = g.Describe("func DefaultMessageComparator()", func() {
),
g.Entry(
"protocol buffers",
&fixtures.ProtoMessage{Value: "<value>"},
&fixtures.ProtoMessage{Value: "<value>"},
&ProtoMessage{Value: "<value>"},
&ProtoMessage{Value: "<value>"},
),
)

g.It("ignores unexported fields when comparing protocol buffers messages", func() {
a := &fixtures.ProtoMessage{Value: "<value>"}
b := &fixtures.ProtoMessage{Value: "<value>"}
a := &ProtoMessage{Value: "<value>"}
b := &ProtoMessage{Value: "<value>"}

g.By("initializing the unexported fields within one of the messages")
_ = a.String()
Expand Down Expand Up @@ -69,8 +69,8 @@ var _ = g.Describe("func DefaultMessageComparator()", func() {
),
g.Entry(
"protocol buffers",
&fixtures.ProtoMessage{Value: "<value-a>"},
&fixtures.ProtoMessage{Value: "<value-b>"},
&ProtoMessage{Value: "<value-a>"},
&ProtoMessage{Value: "<value-b>"},
),
)
})
Expand Down

0 comments on commit 30c05ee

Please sign in to comment.