Skip to content

Commit f9cf9a9

Browse files
committed
fix nil
1 parent 27a034c commit f9cf9a9

File tree

7 files changed

+11
-9
lines changed

7 files changed

+11
-9
lines changed

plumbing/format/index/decoder_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"github.com/go-git/go-git/v5/plumbing"
77
"github.com/go-git/go-git/v5/plumbing/filemode"
88

9+
fixtures "github.com/go-git/go-git-fixtures/v4"
910
. "gopkg.in/check.v1"
10-
"github.com/go-git/go-git-fixtures/v4"
1111
)
1212

1313
func Test(t *testing.T) { TestingT(t) }

plumbing/format/objfile/reader_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ import (
77
"io"
88
"io/ioutil"
99

10-
. "gopkg.in/check.v1"
1110
"github.com/go-git/go-git/v5/plumbing"
11+
12+
. "gopkg.in/check.v1"
1213
)
1314

1415
type SuiteReader struct{}

plumbing/object/file_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"github.com/go-git/go-git/v5/plumbing/storer"
1010
"github.com/go-git/go-git/v5/storage/filesystem"
1111

12+
fixtures "github.com/go-git/go-git-fixtures/v4"
1213
. "gopkg.in/check.v1"
13-
"github.com/go-git/go-git-fixtures/v4"
1414
)
1515

1616
type FileSuite struct {

plumbing/transport/file/receive_pack_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55

66
"github.com/go-git/go-git/v5/plumbing/transport/test"
77

8+
fixtures "github.com/go-git/go-git-fixtures/v4"
89
. "gopkg.in/check.v1"
9-
"github.com/go-git/go-git-fixtures/v4"
1010
)
1111

1212
type ReceivePackSuite struct {

plumbing/transport/git/upload_pack_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package git
33
import (
44
"github.com/go-git/go-git/v5/plumbing/transport/test"
55

6+
fixtures "github.com/go-git/go-git-fixtures/v4"
67
. "gopkg.in/check.v1"
7-
"github.com/go-git/go-git-fixtures/v4"
88
)
99

1010
type UploadPackSuite struct {

plumbing/transport/server/receive_pack_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ func (s *ReceivePackSuite) TestReceivePackWithNilPackfile(c *C) {
6060

6161
report, err := r.ReceivePack(context.Background(), req)
6262
c.Assert(report, IsNil, comment)
63-
c.Assert(err, IsNil, comment)
63+
c.Assert(err, NotNil, comment)
6464
}

utils/merkletrie/filesystem/node_test.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ import (
77
"path"
88
"testing"
99

10-
"github.com/go-git/go-billy/v5"
11-
"github.com/go-git/go-billy/v5/memfs"
12-
. "gopkg.in/check.v1"
1310
"github.com/go-git/go-git/v5/plumbing"
1411
"github.com/go-git/go-git/v5/utils/merkletrie"
1512
"github.com/go-git/go-git/v5/utils/merkletrie/noder"
13+
14+
"github.com/go-git/go-billy/v5"
15+
"github.com/go-git/go-billy/v5/memfs"
16+
. "gopkg.in/check.v1"
1617
)
1718

1819
func Test(t *testing.T) { TestingT(t) }

0 commit comments

Comments
 (0)