@@ -25,7 +25,7 @@ func TestGodepConfig_Import(t *testing.T) {
25
25
h .TempDir (cacheDir )
26
26
h .TempDir ("src" )
27
27
h .TempDir (filepath .Join ("src" , testGodepProjectRoot ))
28
- h .TempCopy (filepath .Join (testGodepProjectRoot , "Godeps" , godepJsonName ), "godep/Godeps.json" )
28
+ h .TempCopy (filepath .Join (testGodepProjectRoot , "Godeps" , godepJSONName ), "godep/Godeps.json" )
29
29
30
30
projectRoot := h .Path (testGodepProjectRoot )
31
31
sm , err := gps .NewSourceManager (h .Path (cacheDir ))
@@ -68,7 +68,7 @@ func TestGodepConfig_Import(t *testing.T) {
68
68
69
69
func TestGodepConfig_JsonLoad (t * testing.T ) {
70
70
// This is same as cmd/dep/testdata/Godeps.json
71
- wantJSON := godepJson {
71
+ wantJSON := godepJSON {
72
72
Name : "github.com/golang/notexist" ,
73
73
Imports : []godepPackage {
74
74
{
@@ -88,7 +88,7 @@ func TestGodepConfig_JsonLoad(t *testing.T) {
88
88
89
89
ctx := newTestContext (h )
90
90
91
- h .TempCopy (filepath .Join (testGodepProjectRoot , "Godeps" , godepJsonName ), "godep/Godeps.json" )
91
+ h .TempCopy (filepath .Join (testGodepProjectRoot , "Godeps" , godepJSONName ), "godep/Godeps.json" )
92
92
93
93
projectRoot := h .Path (testGodepProjectRoot )
94
94
@@ -117,7 +117,7 @@ func TestGodepConfig_ConvertProject(t *testing.T) {
117
117
defer sm .Release ()
118
118
119
119
g := newGodepImporter (discardLogger , true , sm )
120
- g .json = godepJson {
120
+ g .json = godepJSON {
121
121
Name : "github.com/foo/bar" ,
122
122
Imports : []godepPackage {
123
123
{
@@ -177,7 +177,7 @@ func TestGodepConfig_ConvertProject_EmptyComment(t *testing.T) {
177
177
defer sm .Release ()
178
178
179
179
g := newGodepImporter (discardLogger , true , sm )
180
- g .json = godepJson {
180
+ g .json = godepJSON {
181
181
Name : "github.com/foo/bar" ,
182
182
Imports : []godepPackage {
183
183
{
@@ -227,7 +227,7 @@ func TestGodepConfig_ConvertProject_EmptyComment(t *testing.T) {
227
227
228
228
func TestGodepConfig_Convert_BadInput_EmptyPackageName (t * testing.T ) {
229
229
g := newGodepImporter (discardLogger , true , nil )
230
- g .json = godepJson {
230
+ g .json = godepJSON {
231
231
Imports : []godepPackage {{ImportPath : "" }},
232
232
}
233
233
0 commit comments