@@ -35,9 +35,11 @@ func TestParse(t *testing.T) {
35
35
// tr "\n" "\t" | awk -F "\t" '{printf("\{\""$1"\", \""$2"\", \""$3"\"\}\n")}'
36
36
want : []ftypes.Package {
37
37
{
38
- Name : "setuptools" ,
39
- Version : "51.3.3" ,
40
- Licenses : []string {"UNKNOWN" },
38
+ Name : "setuptools" ,
39
+ Version : "51.3.3" ,
40
+ Licenses : []string {
41
+ "UNKNOWN" ,
42
+ },
41
43
},
42
44
},
43
45
},
@@ -46,9 +48,11 @@ func TestParse(t *testing.T) {
46
48
input : "testdata/unidecode-egg-info.PKG-INFO" ,
47
49
want : []ftypes.Package {
48
50
{
49
- Name : "Unidecode" ,
50
- Version : "0.4.1" ,
51
- Licenses : []string {"UNKNOWN" },
51
+ Name : "Unidecode" ,
52
+ Version : "0.4.1" ,
53
+ Licenses : []string {
54
+ "UNKNOWN" ,
55
+ },
52
56
},
53
57
},
54
58
},
@@ -63,9 +67,11 @@ func TestParse(t *testing.T) {
63
67
// tr "\n" "\t" | awk -F "\t" '{printf("\{\""$1"\", \""$2"\", \""$3"\"\}\n")}'
64
68
want : []ftypes.Package {
65
69
{
66
- Name : "distlib" ,
67
- Version : "0.3.1" ,
68
- Licenses : []string {"Python license" },
70
+ Name : "distlib" ,
71
+ Version : "0.3.1" ,
72
+ Licenses : []string {
73
+ "Python license" ,
74
+ },
69
75
},
70
76
},
71
77
},
@@ -96,9 +102,11 @@ func TestParse(t *testing.T) {
96
102
input : "testdata/distlib-0.3.1.METADATA" ,
97
103
want : []ftypes.Package {
98
104
{
99
- Name : "distlib" ,
100
- Version : "0.3.1" ,
101
- Licenses : []string {"Python Software Foundation License" },
105
+ Name : "distlib" ,
106
+ Version : "0.3.1" ,
107
+ Licenses : []string {
108
+ "Python Software Foundation License" ,
109
+ },
102
110
},
103
111
},
104
112
},
@@ -109,9 +117,11 @@ func TestParse(t *testing.T) {
109
117
110
118
want : []ftypes.Package {
111
119
{
112
- Name : "asyncssh" ,
113
- Version : "2.14.2" ,
114
- Licenses : []string {"Eclipse Public License v2.0" },
120
+ Name : "asyncssh" ,
121
+ Version : "2.14.2" ,
122
+ Licenses : []string {
123
+ "Eclipse Public License v2.0" ,
124
+ },
115
125
},
116
126
},
117
127
},
@@ -122,9 +132,13 @@ func TestParse(t *testing.T) {
122
132
123
133
want : []ftypes.Package {
124
134
{
125
- Name : "pyphen" ,
126
- Version : "0.14.0" ,
127
- Licenses : []string {"GNU General Public License v2 or later (GPLv2+), GNU Lesser General Public License v2 or later (LGPLv2+), Mozilla Public License 1.1 (MPL 1.1)" },
135
+ Name : "pyphen" ,
136
+ Version : "0.14.0" ,
137
+ Licenses : []string {
138
+ "GNU General Public License v2 or later (GPLv2+)" ,
139
+ "GNU Lesser General Public License v2 or later (LGPLv2+)" ,
140
+ "Mozilla Public License 1.1 (MPL 1.1)" ,
141
+ },
128
142
},
129
143
},
130
144
},
@@ -138,9 +152,11 @@ func TestParse(t *testing.T) {
138
152
input : "testdata/iniconfig-2.0.0.METADATA" ,
139
153
want : []ftypes.Package {
140
154
{
141
- Name : "iniconfig" ,
142
- Version : "2.0.0" ,
143
- Licenses : []string {"MIT" },
155
+ Name : "iniconfig" ,
156
+ Version : "2.0.0" ,
157
+ Licenses : []string {
158
+ "MIT" ,
159
+ },
144
160
},
145
161
},
146
162
},
@@ -149,9 +165,11 @@ func TestParse(t *testing.T) {
149
165
input : "testdata/zipp-3.12.1.METADATA" ,
150
166
want : []ftypes.Package {
151
167
{
152
- Name : "zipp" ,
153
- Version : "3.12.1" ,
154
- Licenses : []string {"MIT License" },
168
+ Name : "zipp" ,
169
+ Version : "3.12.1" ,
170
+ Licenses : []string {
171
+ "MIT License" ,
172
+ },
155
173
},
156
174
},
157
175
},
@@ -160,9 +178,11 @@ func TestParse(t *testing.T) {
160
178
input : "testdata/networkx-3.0.METADATA" ,
161
179
want : []ftypes.Package {
162
180
{
163
- Name : "networkx" ,
164
- Version : "3.0" ,
165
- Licenses : []string {"file://LICENSE.txt" },
181
+ Name : "networkx" ,
182
+ Version : "3.0" ,
183
+ Licenses : []string {
184
+ "file://LICENSE.txt" ,
185
+ },
166
186
},
167
187
},
168
188
},
0 commit comments