This repository was archived by the owner on Sep 11, 2020. It is now read-only.
File tree 4 files changed +48
-0
lines changed
4 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package packfile_test
3
3
import (
4
4
"bytes"
5
5
"math/rand"
6
+ "testing"
6
7
7
8
"gopkg.in/src-d/go-git.v4/plumbing"
8
9
. "gopkg.in/src-d/go-git.v4/plumbing/format/packfile"
@@ -21,6 +22,10 @@ type EncoderAdvancedSuite struct {
21
22
var _ = Suite (& EncoderAdvancedSuite {})
22
23
23
24
func (s * EncoderAdvancedSuite ) TestEncodeDecode (c * C ) {
25
+ if testing .Short () {
26
+ c .Skip ("skipping test in short mode." )
27
+ }
28
+
24
29
fixs := fixtures .Basic ().ByTag ("packfile" ).ByTag (".git" )
25
30
fixs = append (fixs , fixtures .ByURL ("https://github.com/src-d/go-git.git" ).
26
31
ByTag ("packfile" ).ByTag (".git" ).One ())
@@ -33,6 +38,10 @@ func (s *EncoderAdvancedSuite) TestEncodeDecode(c *C) {
33
38
}
34
39
35
40
func (s * EncoderAdvancedSuite ) TestEncodeDecodeNoDeltaCompression (c * C ) {
41
+ if testing .Short () {
42
+ c .Skip ("skipping test in short mode." )
43
+ }
44
+
36
45
fixs := fixtures .Basic ().ByTag ("packfile" ).ByTag (".git" )
37
46
fixs = append (fixs , fixtures .ByURL ("https://github.com/src-d/go-git.git" ).
38
47
ByTag ("packfile" ).ByTag (".git" ).One ())
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import (
10
10
"os/exec"
11
11
"path/filepath"
12
12
"strings"
13
+ "testing"
13
14
"time"
14
15
15
16
"gopkg.in/src-d/go-git.v4/config"
@@ -430,6 +431,10 @@ func (s *RepositorySuite) TestPlainCloneContext(c *C) {
430
431
}
431
432
432
433
func (s * RepositorySuite ) TestPlainCloneWithRecurseSubmodules (c * C ) {
434
+ if testing .Short () {
435
+ c .Skip ("skipping test in short mode." )
436
+ }
437
+
433
438
dir , err := ioutil .TempDir ("" , "plain-clone-submodule" )
434
439
c .Assert (err , IsNil )
435
440
defer os .RemoveAll (dir )
@@ -1396,10 +1401,18 @@ func (s *RepositorySuite) testRepackObjects(
1396
1401
}
1397
1402
1398
1403
func (s * RepositorySuite ) TestRepackObjects (c * C ) {
1404
+ if testing .Short () {
1405
+ c .Skip ("skipping test in short mode." )
1406
+ }
1407
+
1399
1408
s .testRepackObjects (c , time.Time {}, 1 )
1400
1409
}
1401
1410
1402
1411
func (s * RepositorySuite ) TestRepackObjectsWithNoDelete (c * C ) {
1412
+ if testing .Short () {
1413
+ c .Skip ("skipping test in short mode." )
1414
+ }
1415
+
1403
1416
s .testRepackObjects (c , time .Unix (0 , 1 ), 3 )
1404
1417
}
1405
1418
Original file line number Diff line number Diff line change 5
5
"io/ioutil"
6
6
"os"
7
7
"path/filepath"
8
+ "testing"
8
9
9
10
"gopkg.in/src-d/go-git.v4/plumbing"
10
11
@@ -66,6 +67,10 @@ func (s *SubmoduleSuite) TestInit(c *C) {
66
67
}
67
68
68
69
func (s * SubmoduleSuite ) TestUpdate (c * C ) {
70
+ if testing .Short () {
71
+ c .Skip ("skipping test in short mode." )
72
+ }
73
+
69
74
sm , err := s .Worktree .Submodule ("basic" )
70
75
c .Assert (err , IsNil )
71
76
@@ -118,6 +123,10 @@ func (s *SubmoduleSuite) TestUpdateWithNotFetch(c *C) {
118
123
}
119
124
120
125
func (s * SubmoduleSuite ) TestUpdateWithRecursion (c * C ) {
126
+ if testing .Short () {
127
+ c .Skip ("skipping test in short mode." )
128
+ }
129
+
121
130
sm , err := s .Worktree .Submodule ("itself" )
122
131
c .Assert (err , IsNil )
123
132
@@ -134,6 +143,10 @@ func (s *SubmoduleSuite) TestUpdateWithRecursion(c *C) {
134
143
}
135
144
136
145
func (s * SubmoduleSuite ) TestUpdateWithInitAndUpdate (c * C ) {
146
+ if testing .Short () {
147
+ c .Skip ("skipping test in short mode." )
148
+ }
149
+
137
150
sm , err := s .Worktree .Submodule ("basic" )
138
151
c .Assert (err , IsNil )
139
152
@@ -193,6 +206,10 @@ func (s *SubmoduleSuite) TestSubmodulesStatus(c *C) {
193
206
}
194
207
195
208
func (s * SubmoduleSuite ) TestSubmodulesUpdateContext (c * C ) {
209
+ if testing .Short () {
210
+ c .Skip ("skipping test in short mode." )
211
+ }
212
+
196
213
sm , err := s .Worktree .Submodules ()
197
214
c .Assert (err , IsNil )
198
215
Original file line number Diff line number Diff line change 8
8
"path/filepath"
9
9
"regexp"
10
10
"runtime"
11
+ "testing"
11
12
12
13
"gopkg.in/src-d/go-git.v4/config"
13
14
"gopkg.in/src-d/go-git.v4/plumbing"
@@ -196,6 +197,10 @@ func (s *WorktreeSuite) TestPullProgress(c *C) {
196
197
}
197
198
198
199
func (s * WorktreeSuite ) TestPullProgressWithRecursion (c * C ) {
200
+ if testing .Short () {
201
+ c .Skip ("skipping test in short mode." )
202
+ }
203
+
199
204
path := fixtures .ByTag ("submodule" ).One ().Worktree ().Root ()
200
205
201
206
dir , err := ioutil .TempDir ("" , "plain-clone-submodule" )
@@ -613,6 +618,10 @@ func (s *WorktreeSuite) TestCheckoutTag(c *C) {
613
618
}
614
619
615
620
func (s * WorktreeSuite ) TestCheckoutBisect (c * C ) {
621
+ if testing .Short () {
622
+ c .Skip ("skipping test in short mode." )
623
+ }
624
+
616
625
s .testCheckoutBisect (c , "https://github.com/src-d/go-git.git" )
617
626
}
618
627
You can’t perform that action at this time.
0 commit comments