Skip to content

Commit 0ee255e

Browse files
committed
test
1 parent d375a8c commit 0ee255e

2 files changed

Lines changed: 290 additions & 0 deletions

File tree

test/api/qcFlags.test.js

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,48 @@ module.exports = () => {
8282
mcReproducible: true,
8383
badEffectiveRunCoverage: 0.3333333,
8484
explicitlyNotBadEffectiveRunCoverage: 0,
85+
flagComments: [
86+
{
87+
"id": 1,
88+
"comment": "Some qc comment 1",
89+
"flagType": {
90+
"name": "Limited Acceptance MC Reproducible",
91+
"color": "#FFFF00"
92+
}
93+
},
94+
{
95+
"id": 2,
96+
"comment": "Some qc comment 2",
97+
"flagType": {
98+
"name": "Limited acceptance",
99+
"color": "#FFFF00"
100+
}
101+
},
102+
{
103+
"id": 3,
104+
"comment": "Some qc comment 3",
105+
"flagType": {
106+
"name": "Bad",
107+
"color": null
108+
}
109+
}
110+
],
85111
},
86112
16: {
87113
badEffectiveRunCoverage: 0,
88114
explicitlyNotBadEffectiveRunCoverage: 1,
89115
mcReproducible: false,
90116
missingVerificationsCount: 1,
117+
flagComments: [
118+
{
119+
"id": 7,
120+
"comment": "Some qc comment 7",
121+
"flagType": {
122+
"name": "Good",
123+
"color": null
124+
}
125+
}
126+
],
91127
},
92128
},
93129
107: {
@@ -96,12 +132,40 @@ module.exports = () => {
96132
explicitlyNotBadEffectiveRunCoverage: 0.7596538,
97133
mcReproducible: true,
98134
missingVerificationsCount: 2,
135+
flagComments: [
136+
{
137+
"id": 202,
138+
"comment": "Some qc comment 1",
139+
"flagType": {
140+
"name": "Good",
141+
"color": null
142+
}
143+
},
144+
{
145+
"id": 201,
146+
"comment": "Some qc comment 1",
147+
"flagType": {
148+
"name": "Limited Acceptance MC Reproducible",
149+
"color": "#FFFF00"
150+
}
151+
}
152+
],
99153
},
100154
2: {
101155
badEffectiveRunCoverage: 0,
102156
explicitlyNotBadEffectiveRunCoverage: 1,
103157
mcReproducible: false,
104158
missingVerificationsCount: 1,
159+
flagComments: [
160+
{
161+
"id": 203,
162+
"comment": "Some qc comment 1",
163+
"flagType": {
164+
"name": "Good",
165+
"color": null
166+
}
167+
}
168+
],
105169
},
106170
},
107171
});
@@ -118,12 +182,36 @@ module.exports = () => {
118182
mcReproducible: true,
119183
badEffectiveRunCoverage: 0.1111111,
120184
explicitlyNotBadEffectiveRunCoverage: 0.2222222,
185+
flagComments: [
186+
{
187+
id: 1,
188+
comment: 'Some qc comment 1',
189+
flagType: { name: 'Limited Acceptance MC Reproducible', color: '#FFFF00' },
190+
},
191+
{
192+
id: 2,
193+
comment: 'Some qc comment 2',
194+
flagType: { name: 'Limited acceptance', color: '#FFFF00' },
195+
},
196+
{
197+
id: 3,
198+
comment: 'Some qc comment 3',
199+
flagType: { name: 'Bad', color: null },
200+
},
201+
],
121202
},
122203
16: {
123204
badEffectiveRunCoverage: 0,
124205
explicitlyNotBadEffectiveRunCoverage: 1,
125206
mcReproducible: false,
126207
missingVerificationsCount: 1,
208+
flagComments: [
209+
{
210+
id: 7,
211+
comment: 'Some qc comment 7',
212+
flagType: { name: 'Good', color: null },
213+
},
214+
],
127215
},
128216
},
129217
107: {
@@ -132,12 +220,31 @@ module.exports = () => {
132220
explicitlyNotBadEffectiveRunCoverage: 1,
133221
mcReproducible: true,
134222
missingVerificationsCount: 2,
223+
flagComments: [
224+
{
225+
id: 201,
226+
comment: 'Some qc comment 1',
227+
flagType: { name: 'Limited Acceptance MC Reproducible', color: '#FFFF00' },
228+
},
229+
{
230+
id: 202,
231+
comment: 'Some qc comment 1',
232+
flagType: { name: 'Good', color: null },
233+
},
234+
],
135235
},
136236
2: {
137237
badEffectiveRunCoverage: 0,
138238
explicitlyNotBadEffectiveRunCoverage: 1,
139239
mcReproducible: false,
140240
missingVerificationsCount: 1,
241+
flagComments: [
242+
{
243+
id: 203,
244+
comment: 'Some qc comment 1',
245+
flagType: { name: 'Good', color: null },
246+
},
247+
],
141248
},
142249
},
143250
});
@@ -154,6 +261,18 @@ module.exports = () => {
154261
mcReproducible: false,
155262
badEffectiveRunCoverage: 0.9288889,
156263
explicitlyNotBadEffectiveRunCoverage: 0,
264+
flagComments: [
265+
{
266+
id: 5,
267+
comment: 'Some qc comment 4',
268+
flagType: { name: 'Bad', color: null },
269+
},
270+
{
271+
id: 6,
272+
comment: 'Some qc comment 4',
273+
flagType: { name: 'Bad', color: null },
274+
},
275+
],
157276
},
158277
},
159278
});
@@ -171,6 +290,18 @@ module.exports = () => {
171290
mcReproducible: false,
172291
badEffectiveRunCoverage: 0.1666667,
173292
explicitlyNotBadEffectiveRunCoverage: 0.8333333,
293+
flagComments: [
294+
{
295+
id: 100,
296+
comment: 'first part good',
297+
flagType: { name: 'Good', color: null },
298+
},
299+
{
300+
id: 101,
301+
comment: 'second part bad',
302+
flagType: { name: 'Bad PID', color: null },
303+
},
304+
],
174305
},
175306

176307
// ITS
@@ -179,6 +310,13 @@ module.exports = () => {
179310
mcReproducible: false,
180311
badEffectiveRunCoverage: 0,
181312
explicitlyNotBadEffectiveRunCoverage: 1,
313+
flagComments: [
314+
{
315+
id: 102,
316+
comment: 'all good',
317+
flagType: { name: 'Good', color: null },
318+
},
319+
],
182320
},
183321
},
184322
});

0 commit comments

Comments
 (0)