Skip to content

Commit 95f8bb7

Browse files
committed
Replace bmizerany/assert with internal/assert
1 parent 5918d1c commit 95f8bb7

30 files changed

Lines changed: 32 additions & 38 deletions

cmd/cmd_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package cmd
33
import (
44
"testing"
55

6-
"github.com/bmizerany/assert"
6+
"github.com/github/hub/internal/assert"
77
)
88

99
func TestNew(t *testing.T) {

commands/args_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package commands
33
import (
44
"testing"
55

6-
"github.com/bmizerany/assert"
6+
"github.com/github/hub/internal/assert"
77
)
88

99
func TestNewArgs(t *testing.T) {

commands/commands_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"regexp"
77
"testing"
88

9-
"github.com/bmizerany/assert"
9+
"github.com/github/hub/internal/assert"
1010
"github.com/github/hub/ui"
1111
)
1212

commands/compare_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package commands
22

33
import (
4-
"github.com/bmizerany/assert"
4+
"github.com/github/hub/internal/assert"
55
"testing"
66
)
77

commands/fetch_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package commands
22

33
import (
4-
"github.com/bmizerany/assert"
4+
"github.com/github/hub/internal/assert"
55
"testing"
66
)
77

commands/init_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"path/filepath"
77
"testing"
88

9-
"github.com/bmizerany/assert"
109
"github.com/github/hub/github"
10+
"github.com/github/hub/internal/assert"
1111
)
1212

1313
func setupInitContext() {

commands/issue_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ type formatIssueTest struct {
1616
}
1717

1818
func testFormatIssue(t *testing.T, tests []formatIssueTest) {
19+
t.Helper()
1920
for _, test := range tests {
2021
if got := formatIssue(test.issue, test.format, test.colorize); got != test.expect {
2122
t.Errorf("%s: formatIssue(..., %q, %t) = %q, want %q", test.name, test.format, test.colorize, got, test.expect)

commands/pull_request_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package commands
33
import (
44
"testing"
55

6-
"github.com/bmizerany/assert"
76
"github.com/github/hub/github"
7+
"github.com/github/hub/internal/assert"
88
)
99

1010
func TestPullRequest_ParsePullRequestProject(t *testing.T) {

commands/push_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package commands
22

33
import (
4-
"github.com/bmizerany/assert"
4+
"github.com/github/hub/internal/assert"
55
"testing"
66
)
77

commands/remote_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55
"regexp"
66
"testing"
77

8-
"github.com/bmizerany/assert"
98
"github.com/github/hub/fixtures"
109
"github.com/github/hub/github"
10+
"github.com/github/hub/internal/assert"
1111
)
1212

1313
func TestTransformRemoteArgs(t *testing.T) {

0 commit comments

Comments
 (0)