@@ -59,60 +59,60 @@ func TestInitializeForPackageIndex(t *testing.T) {
59
59
packageIndexPackagesAssertion : assert .NotNil ,
60
60
packageIndexPackagesDataAssertion : []PackageIndexData {
61
61
{
62
- ID : "myboard1 " ,
62
+ ID : "foopackager1 " ,
63
63
JSONPointer : "/packages/0" ,
64
64
},
65
65
{
66
- ID : "myboard2 " ,
66
+ ID : "foopackager2 " ,
67
67
JSONPointer : "/packages/1" ,
68
68
},
69
69
},
70
70
packageIndexPlatformsAssertion : assert .NotNil ,
71
71
packageIndexPlatformsDataAssertion : []PackageIndexData {
72
72
{
73
-
73
+ ID :
"foopackager1 :[email protected] " ,
74
74
JSONPointer : "/packages/0/platforms/0" ,
75
75
},
76
76
{
77
-
77
+ ID :
"foopackager1 :[email protected] " ,
78
78
JSONPointer : "/packages/0/platforms/1" ,
79
79
},
80
80
{
81
-
81
+ ID :
"foopackager2 :[email protected] " ,
82
82
JSONPointer : "/packages/1/platforms/0" ,
83
83
},
84
84
{
85
-
85
+ ID :
"foopackager2 :[email protected] " ,
86
86
JSONPointer : "/packages/1/platforms/1" ,
87
87
},
88
88
},
89
89
packageIndexToolsAssertion : assert .NotNil ,
90
90
packageIndexToolsDataAssertion : []PackageIndexData {
91
91
{
92
-
92
+ ID :
"foopackager2 :[email protected] " ,
93
93
JSONPointer : "/packages/1/tools/0" ,
94
94
},
95
95
{
96
-
96
+ ID :
"foopackager2 :[email protected] " ,
97
97
JSONPointer : "/packages/1/tools/1" ,
98
98
},
99
99
},
100
100
packageIndexSystemsAssertion : assert .NotNil ,
101
101
packageIndexSystemsDataAssertion : []PackageIndexData {
102
102
{
103
- ID :
"myboard2 :[email protected] - i386-apple-darwin11" ,
103
+ ID :
"foopackager2 :[email protected] - i386-apple-darwin11" ,
104
104
JSONPointer : "/packages/1/tools/0/systems/0" ,
105
105
},
106
106
{
107
- ID :
"myboard2 :[email protected] - x86_64-linux-gnu" ,
107
+ ID :
"foopackager2 :[email protected] - x86_64-linux-gnu" ,
108
108
JSONPointer : "/packages/1/tools/0/systems/1" ,
109
109
},
110
110
{
111
- ID :
"myboard2 :[email protected] - arm-linux-gnueabihf" ,
111
+ ID :
"foopackager2 :[email protected] - arm-linux-gnueabihf" ,
112
112
JSONPointer : "/packages/1/tools/1/systems/0" ,
113
113
},
114
114
{
115
- ID :
"myboard2 :[email protected] - i686-mingw32" ,
115
+ ID :
"foopackager2 :[email protected] - i686-mingw32" ,
116
116
JSONPointer : "/packages/1/tools/1/systems/1" ,
117
117
},
118
118
},
@@ -159,32 +159,32 @@ func TestInitializeForPackageIndex(t *testing.T) {
159
159
testTable .packageIndexPackagesAssertion (t , PackageIndexPackages (), testTable .testName )
160
160
if PackageIndexPackages () != nil {
161
161
for index , packageIndexPackage := range PackageIndexPackages () {
162
- assert .Equal (t , packageIndexPackage . ID , testTable .packageIndexPackagesDataAssertion [index ].ID )
163
- assert .Equal (t , packageIndexPackage . JSONPointer , testTable .packageIndexPackagesDataAssertion [index ].JSONPointer )
162
+ assert .Equal (t , testTable .packageIndexPackagesDataAssertion [index ].ID , packageIndexPackage . ID , testTable . testName )
163
+ assert .Equal (t , testTable .packageIndexPackagesDataAssertion [index ].JSONPointer , packageIndexPackage . JSONPointer , testTable . testName )
164
164
}
165
165
}
166
166
167
167
testTable .packageIndexPlatformsAssertion (t , PackageIndexPlatforms (), testTable .testName )
168
168
if PackageIndexPlatforms () != nil {
169
169
for index , packageIndexPlatform := range PackageIndexPlatforms () {
170
- assert .Equal (t , packageIndexPlatform . ID , testTable .packageIndexPlatformsDataAssertion [index ].ID )
171
- assert .Equal (t , packageIndexPlatform . JSONPointer , testTable .packageIndexPlatformsDataAssertion [index ].JSONPointer )
170
+ assert .Equal (t , testTable .packageIndexPlatformsDataAssertion [index ].ID , packageIndexPlatform . ID , testTable . testName )
171
+ assert .Equal (t , testTable .packageIndexPlatformsDataAssertion [index ].JSONPointer , packageIndexPlatform . JSONPointer , testTable . testName )
172
172
}
173
173
}
174
174
175
175
testTable .packageIndexToolsAssertion (t , PackageIndexTools (), testTable .testName )
176
176
if PackageIndexTools () != nil {
177
177
for index , packageIndexTool := range PackageIndexTools () {
178
- assert .Equal (t , packageIndexTool . ID , testTable .packageIndexToolsDataAssertion [index ].ID )
179
- assert .Equal (t , packageIndexTool . JSONPointer , testTable .packageIndexToolsDataAssertion [index ].JSONPointer )
178
+ assert .Equal (t , testTable .packageIndexToolsDataAssertion [index ].ID , packageIndexTool . ID , testTable . testName )
179
+ assert .Equal (t , testTable .packageIndexToolsDataAssertion [index ].JSONPointer , packageIndexTool . JSONPointer , testTable . testName )
180
180
}
181
181
}
182
182
183
183
testTable .packageIndexSystemsAssertion (t , PackageIndexSystems (), testTable .testName )
184
184
if PackageIndexSystems () != nil {
185
185
for index , packageIndexSystem := range PackageIndexSystems () {
186
- assert .Equal (t , packageIndexSystem . ID , testTable .packageIndexSystemsDataAssertion [index ].ID )
187
- assert .Equal (t , packageIndexSystem . JSONPointer , testTable .packageIndexSystemsDataAssertion [index ].JSONPointer )
186
+ assert .Equal (t , testTable .packageIndexSystemsDataAssertion [index ].ID , packageIndexSystem . ID , testTable . testName )
187
+ assert .Equal (t , testTable .packageIndexSystemsDataAssertion [index ].JSONPointer , packageIndexSystem . JSONPointer , testTable . testName )
188
188
}
189
189
}
190
190
}
0 commit comments