You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/api/qcFlags.test.js
+75-1Lines changed: 75 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,12 @@ module.exports = () => {
89
89
mcReproducible: false,
90
90
missingVerificationsCount: 1,
91
91
},
92
+
22: {
93
+
badEffectiveRunCoverage: 0.2222222,
94
+
explicitlyNotBadEffectiveRunCoverage: 0.7777778,
95
+
mcReproducible: false,
96
+
missingVerificationsCount: 2,
97
+
}
92
98
},
93
99
107: {
94
100
1: {
@@ -125,6 +131,12 @@ module.exports = () => {
125
131
mcReproducible: false,
126
132
missingVerificationsCount: 1,
127
133
},
134
+
22: {
135
+
badEffectiveRunCoverage: 0.2222222,
136
+
explicitlyNotBadEffectiveRunCoverage: 0.7777778,
137
+
mcReproducible: false,
138
+
missingVerificationsCount: 2,
139
+
}
128
140
},
129
141
107: {
130
142
1: {
@@ -143,6 +155,68 @@ module.exports = () => {
143
155
});
144
156
});
145
157
158
+
it('should successfully get non-empty QC flags summary for a data pass when filtering by CreatedBy and detectors',async()=>{
159
+
{
160
+
constresponse=awaitrequest(server).get('/api/qcFlags/summary?dataPassId=1&detectorIds=22,1');// VTX and CPV
161
+
expect(response.status).to.be.equal(200);
162
+
const{body: { data }}=response;
163
+
expect(data).to.be.eql({
164
+
106: {
165
+
22: {
166
+
badEffectiveRunCoverage: 0.2222222,
167
+
explicitlyNotBadEffectiveRunCoverage: 0.7777778,
168
+
mcReproducible: false,
169
+
missingVerificationsCount: 2
170
+
},
171
+
1: {
172
+
missingVerificationsCount: 3,
173
+
mcReproducible: true,
174
+
badEffectiveRunCoverage: 0.3333333,
175
+
explicitlyNotBadEffectiveRunCoverage: 0,
176
+
},
177
+
},
178
+
107: {
179
+
1: {
180
+
badEffectiveRunCoverage: 0.2403462,
181
+
explicitlyNotBadEffectiveRunCoverage: 0.7596538,
182
+
mcReproducible: true,
183
+
missingVerificationsCount: 2,
184
+
},
185
+
},
186
+
});
187
+
}
188
+
189
+
{
190
+
constresponse=awaitrequest(server).get('/api/qcFlags/summary?dataPassId=1&detectorIds=22,1&filter[createdBy][names]=Anonymous&filter[createdBy][operator]=none');// VTX and CPV
191
+
expect(response.status).to.be.equal(200);
192
+
const{body: { data }}=response;
193
+
expect(data).to.be.eql({
194
+
106: {
195
+
22: {
196
+
badEffectiveRunCoverage: 0,
197
+
explicitlyNotBadEffectiveRunCoverage: 0.7777778,
198
+
mcReproducible: false,
199
+
missingVerificationsCount: 1
200
+
},
201
+
1: {
202
+
missingVerificationsCount: 3,
203
+
mcReproducible: true,
204
+
badEffectiveRunCoverage: 0.3333333,
205
+
explicitlyNotBadEffectiveRunCoverage: 0,
206
+
},
207
+
},
208
+
107: {
209
+
1: {
210
+
badEffectiveRunCoverage: 0.2403462,
211
+
explicitlyNotBadEffectiveRunCoverage: 0.7596538,
212
+
mcReproducible: true,
213
+
missingVerificationsCount: 2,
214
+
},
215
+
},
216
+
});
217
+
}
218
+
});
219
+
146
220
it('should successfully get non-empty QC flag summary for simulation pass',async()=>{
0 commit comments