@@ -34,11 +34,12 @@ func TestGodepConfig_Convert(t *testing.T) {
34
34
},
35
35
},
36
36
convertTestCase : & convertTestCase {
37
- projectRoot : gps .ProjectRoot ("github.com/sdboyer/deptest" ),
38
- wantConstraint : "^0.8.0" ,
39
- wantRevision : gps .Revision ("ff2948a2ac8f538c4ecd55962e919d1e13e74baf" ),
40
- wantVersion : "v0.8.0" ,
41
- wantLockCount : 1 ,
37
+ projectRoot : gps .ProjectRoot ("github.com/sdboyer/deptest" ),
38
+ wantConstraint : "^0.8.0" ,
39
+ wantRevision : gps .Revision ("ff2948a2ac8f538c4ecd55962e919d1e13e74baf" ),
40
+ wantVersion : "v0.8.0" ,
41
+ wantLockCount : 1 ,
42
+ wantIgnoredPackages : []string {},
42
43
},
43
44
},
44
45
"with semver suffix" : {
@@ -52,11 +53,11 @@ func TestGodepConfig_Convert(t *testing.T) {
52
53
},
53
54
},
54
55
convertTestCase : & convertTestCase {
55
-
56
- projectRoot : gps . ProjectRoot ( "github.com/sdboyer/deptest" ) ,
57
- wantConstraint : "^1.12.0-12-g2fd980e" ,
58
- wantLockCount : 1 ,
59
- wantVersion : "v1.0.0" ,
56
+ projectRoot : gps . ProjectRoot ( "github.com/sdboyer/deptest" ),
57
+ wantConstraint : "^1.12.0-12-g2fd980e" ,
58
+ wantLockCount : 1 ,
59
+ wantVersion : "v1.0.0" ,
60
+ wantIgnoredPackages : [] string {} ,
60
61
},
61
62
},
62
63
"empty comment" : {
@@ -70,20 +71,19 @@ func TestGodepConfig_Convert(t *testing.T) {
70
71
},
71
72
},
72
73
convertTestCase : & convertTestCase {
73
-
74
- projectRoot : gps . ProjectRoot ( "github.com/sdboyer/deptest" ) ,
75
- wantConstraint : "^1.0.0" ,
76
- wantRevision : gps . Revision ( "ff2948a2ac8f538c4ecd55962e919d1e13e74baf" ) ,
77
- wantVersion : "v1.0.0" ,
78
- wantLockCount : 1 ,
74
+ projectRoot : gps . ProjectRoot ( "github.com/sdboyer/deptest" ),
75
+ wantConstraint : "^1.0.0" ,
76
+ wantRevision : gps . Revision ( "ff2948a2ac8f538c4ecd55962e919d1e13e74baf" ) ,
77
+ wantVersion : "v1.0.0" ,
78
+ wantLockCount : 1 ,
79
+ wantIgnoredPackages : [] string {} ,
79
80
},
80
81
},
81
82
"bad input - empty package name" : {
82
83
json : godepJSON {
83
84
Imports : []godepPackage {{ImportPath : "" }},
84
85
},
85
86
convertTestCase : & convertTestCase {
86
-
87
87
wantConvertErr : true ,
88
88
},
89
89
},
@@ -96,7 +96,6 @@ func TestGodepConfig_Convert(t *testing.T) {
96
96
},
97
97
},
98
98
convertTestCase : & convertTestCase {
99
-
100
99
wantConvertErr : true ,
101
100
},
102
101
},
@@ -116,7 +115,6 @@ func TestGodepConfig_Convert(t *testing.T) {
116
115
},
117
116
},
118
117
convertTestCase : & convertTestCase {
119
-
120
118
projectRoot : gps .ProjectRoot ("github.com/sdboyer/deptest" ),
121
119
wantLockCount : 1 ,
122
120
wantConstraint : "^1.0.0" ,
0 commit comments