Skip to content

Commit 485adb0

Browse files
committed
Refer to recently migrated assertions module.
Closes #52
1 parent 1705da8 commit 485adb0

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

convey/assertions.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ package convey
44

55
//go:generate ./update_assertions.sh
66

7-
import "github.com/smartystreets/assertions"
7+
import "github.com/smarty/assertions"
88

9-
// These assertions are forwarded from github.com/smartystreets/assertions
9+
// These assertions are forwarded from github.com/smarty/assertions
1010
// in order to make convey self-contained.
1111
var (
1212
ShouldAlmostEqual = assertions.ShouldAlmostEqual

convey/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"os"
66

77
"github.com/jtolds/gls"
8-
"github.com/smartystreets/assertions"
8+
"github.com/smarty/assertions"
99
"github.com/smartystreets/goconvey/convey/reporting"
1010
)
1111

convey/reporting/reports.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func removePackagePath(name string) string {
7676

7777
/////////////////// FailureView ////////////////////////
7878

79-
// This struct is also declared in github.com/smartystreets/assertions.
79+
// FailureView is also declared in github.com/smarty/assertions.
8080
// The json struct tags should be equal in both declarations.
8181
type FailureView struct {
8282
Message string `json:"Message"`

convey/reporting_hooks_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func TestComparisonFailureDeserializedAndReported(t *testing.T) {
6363
So("hi", ShouldEqual, "bye")
6464
})
6565

66-
expectEqual(t, "Begin|A|Failure(bye/hi)|Exit|End", myReporter.wholeStory())
66+
expectEqual(t, `Begin|A|Failure("bye"/"hi")|Exit|End`, myReporter.wholeStory())
6767
}
6868

6969
func TestNestedFailureReported(t *testing.T) {
@@ -311,7 +311,7 @@ func (self *fakeReporter) wholeStory() string {
311311

312312
type fakeGoTest struct{}
313313

314-
func (self *fakeGoTest) Fail() {}
314+
func (self *fakeGoTest) Fail() {}
315315
func (self *fakeGoTest) Fatalf(format string, args ...any) {}
316316

317317
var test t = new(fakeGoTest)

convey/update_assertions.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
cd "$(dirname $(realpath $0))"
44

55
ASSERTIONS=($(
6-
go tool nm "$(go list -export -f '{{.Export}}' github.com/smartystreets/assertions)" |\
7-
awk '/ T github\.com\/smartystreets\/assertions\.Should/{split($3, a, "."); print a[3]}' |\
6+
go tool nm "$(go list -export -f '{{.Export}}' github.com/smarty/assertions)" |\
7+
awk '/ T github\.com\/smarty\/assertions\.Should/{split($3, a, "."); print a[3]}' |\
88
sort | uniq))
99

1010
(
@@ -14,9 +14,9 @@ ASSERTIONS=($(
1414
echo
1515
echo "//go:generate ./update_assertions.sh"
1616
echo
17-
echo "import \"github.com/smartystreets/assertions\""
17+
echo "import \"github.com/smarty/assertions\""
1818
echo
19-
echo "// These assertions are forwarded from github.com/smartystreets/assertions"
19+
echo "// These assertions are forwarded from github.com/smarty/assertions"
2020
echo "// in order to make convey self-contained."
2121
echo "var ("
2222

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.18
44

55
require (
66
github.com/jtolds/gls v4.20.0+incompatible
7-
github.com/smartystreets/assertions v1.13.1
7+
github.com/smarty/assertions v1.15.0
88
golang.org/x/tools v0.7.0
99
)
1010

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ github.com/gopherjs/gopherjs v1.17.2 h1:fQnZVsXk8uxXIStYb0N4bGk7jeyTalG/wsZjQ25d
22
github.com/gopherjs/gopherjs v1.17.2/go.mod h1:pRRIvn/QzFLrKfvEz3qUuEhtE/zLCWfreZ6J5gM2i+k=
33
github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=
44
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
5-
github.com/smartystreets/assertions v1.13.1 h1:Ef7KhSmjZcK6AVf9YbJdvPYG9avaF0ZxudX+ThRdWfU=
6-
github.com/smartystreets/assertions v1.13.1/go.mod h1:cXr/IwVfSo/RbCSPhoAPv73p3hlSdrBH/b3SdnW/LMY=
5+
github.com/smarty/assertions v1.15.0 h1:cR//PqUBUiQRakZWqBiFFQ9wb8emQGDb0HeGdqGByCY=
6+
github.com/smarty/assertions v1.15.0/go.mod h1:yABtdzeQs6l1brC900WlRNwj6ZR55d7B+E8C6HtKdec=
77
golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs=
88
golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
99
golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=

0 commit comments

Comments
 (0)