mo3ta-coverage 1.0.13 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { getJsOnlyFiles, separateSourceAndTestFiles, findReverseDeps, findTestFilesForSource } from './fileUtils';
1
+ import { getJsOnlyFiles, separateSourceAndTestFiles, findTestFilesForSource, findTestFilesByImport } from './fileUtils';
2
2
  import fs from 'fs';
3
3
  import os from 'os';
4
4
  import path from 'path';
@@ -234,32 +234,88 @@ describe('findTestFilesForSource', () => {
234
234
  expect(result).toContain('src/components/Button.test.jsx');
235
235
  });
236
236
  });
237
+ describe('findTestFilesByImport', () => {
238
+ let tempDir;
239
+
240
+ function createFixture(structure) {
241
+ tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'mo3ta-import-'));
242
+ Object.entries(structure).forEach(([filePath, content]) => {
243
+ const absolutePath = path.join(tempDir, filePath);
244
+ fs.mkdirSync(path.dirname(absolutePath), { recursive: true });
245
+ fs.writeFileSync(absolutePath, content);
246
+ });
247
+ return tempDir;
248
+ }
237
249
 
238
- describe('findReverseDeps', () => {
239
- const originalCwd = process.cwd();
250
+ afterEach(() => {
251
+ fs.rmSync(tempDir, { recursive: true, force: true });
252
+ });
240
253
 
241
- beforeEach(() => {
242
- const tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'mo3ta-reverse-deps-'));
243
- process.chdir(tempDir);
244
- fs.mkdirSync('src', { recursive: true });
254
+ it('finds a spec file with a different name that imports the source file', () => {
255
+ const root = createFixture({
256
+ 'src/utils/helper.js': 'export const add = (a, b) => a + b;',
257
+ 'src/utils/custom-name.spec.js': "import { add } from './helper';\n"
258
+ });
259
+
260
+ const result = findTestFilesByImport('src/utils/helper.js', root);
261
+
262
+ expect(result).toEqual(['src/utils/custom-name.spec.js']);
245
263
  });
246
264
 
247
- afterEach(() => {
248
- process.chdir(originalCwd);
265
+ it('resolves imports with explicit extensions', () => {
266
+ const root = createFixture({
267
+ 'src/utils/helper.ts': 'export const add = (a, b) => a + b;',
268
+ 'src/renamed.test.ts': "import { add } from './utils/helper.js';\n"
269
+ });
270
+
271
+ const result = findTestFilesByImport('src/utils/helper.ts', root);
272
+
273
+ expect(result).toEqual(['src/renamed.test.ts']);
249
274
  });
250
275
 
251
- it('limits traversal to the configured depth', () => {
252
- fs.writeFileSync('src/leaf.js', 'export const leaf = 1;\n');
253
- fs.writeFileSync('src/mid.js', "import './leaf.js';\nexport const mid = 1;\n");
254
- fs.writeFileSync('src/top.js', "import './mid.js';\nexport const top = 1;\n");
276
+ it('matches alias imports by path suffix', () => {
277
+ const root = createFixture({
278
+ 'src/utils/helper.js': 'export const add = (a, b) => a + b;',
279
+ 'src/alias.test.js': "import { add } from '@/utils/helper';\n"
280
+ });
255
281
 
256
- const depthOne = findReverseDeps(['src/leaf.js'], 1);
257
- const depthTwo = findReverseDeps(['src/leaf.js'], 2);
282
+ const result = findTestFilesByImport('src/utils/helper.js', root);
258
283
 
259
- expect(depthOne).toEqual([path.resolve('src/mid.js')]);
260
- expect(depthTwo).toEqual([
261
- path.resolve('src/mid.js'),
262
- path.resolve('src/top.js')
263
- ]);
284
+ expect(result).toEqual(['src/alias.test.js']);
285
+ });
286
+
287
+ it('resolves directory imports to the source file index', () => {
288
+ const root = createFixture({
289
+ 'src/utils/index.js': "export * from './helper';",
290
+ 'src/utils/helper.js': 'export const add = (a, b) => a + b;',
291
+ 'src/index-import.test.js': "import { add } from './utils';\n"
292
+ });
293
+
294
+ const result = findTestFilesByImport('src/utils/index.js', root);
295
+
296
+ expect(result).toEqual(['src/index-import.test.js']);
264
297
  });
265
- });
298
+
299
+ it('returns empty array when no test file imports the source', () => {
300
+ const root = createFixture({
301
+ 'src/utils/helper.js': 'export const add = (a, b) => a + b;',
302
+ 'src/unrelated.test.js': "import { other } from './other';\n"
303
+ });
304
+
305
+ const result = findTestFilesByImport('src/utils/helper.js', root);
306
+
307
+ expect(result).toEqual([]);
308
+ });
309
+
310
+ it('skips node_modules when scanning', () => {
311
+ const root = createFixture({
312
+ 'src/utils/helper.js': 'export const add = (a, b) => a + b;',
313
+ 'node_modules/pkg/dep.test.js': "import { add } from '../../src/utils/helper';\n",
314
+ 'src/real.test.js': "import { add } from './utils/helper';\n"
315
+ });
316
+
317
+ const result = findTestFilesByImport('src/utils/helper.js', root);
318
+
319
+ expect(result).toEqual(['src/real.test.js']);
320
+ });
321
+ });
@@ -1,427 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1777386680304" clover="3.2.0">
3
- <project timestamp="1777386680304" name="All files">
4
- <metrics statements="409" coveredstatements="126" conditionals="222" coveredconditionals="64" methods="66" coveredmethods="26" elements="697" coveredelements="216" complexity="0" loc="409" ncloc="409" packages="1" files="4" classes="4"/>
5
- <file name="cli.js" path="/Users/mahmoud.maghrabia/Documents/coverage/src/cli.js">
6
- <metrics statements="200" coveredstatements="32" conditionals="82" coveredconditionals="18" methods="31" coveredmethods="8"/>
7
- <line num="10" count="0" type="cond" truecount="0" falsecount="2"/>
8
- <line num="11" count="0" type="stmt"/>
9
- <line num="14" count="0" type="stmt"/>
10
- <line num="15" count="0" type="stmt"/>
11
- <line num="17" count="0" type="stmt"/>
12
- <line num="18" count="0" type="stmt"/>
13
- <line num="20" count="0" type="stmt"/>
14
- <line num="24" count="0" type="stmt"/>
15
- <line num="31" count="0" type="stmt"/>
16
- <line num="32" count="0" type="stmt"/>
17
- <line num="33" count="0" type="stmt"/>
18
- <line num="37" count="0" type="stmt"/>
19
- <line num="44" count="0" type="stmt"/>
20
- <line num="46" count="0" type="stmt"/>
21
- <line num="48" count="0" type="stmt"/>
22
- <line num="49" count="0" type="stmt"/>
23
- <line num="50" count="0" type="stmt"/>
24
- <line num="51" count="0" type="cond" truecount="0" falsecount="2"/>
25
- <line num="52" count="0" type="stmt"/>
26
- <line num="53" count="0" type="stmt"/>
27
- <line num="55" count="0" type="stmt"/>
28
- <line num="57" count="0" type="stmt"/>
29
- <line num="58" count="0" type="stmt"/>
30
- <line num="59" count="0" type="stmt"/>
31
- <line num="61" count="0" type="cond" truecount="0" falsecount="2"/>
32
- <line num="62" count="0" type="stmt"/>
33
- <line num="69" count="0" type="stmt"/>
34
- <line num="71" count="0" type="stmt"/>
35
- <line num="77" count="0" type="stmt"/>
36
- <line num="78" count="0" type="stmt"/>
37
- <line num="79" count="0" type="stmt"/>
38
- <line num="80" count="0" type="stmt"/>
39
- <line num="82" count="0" type="cond" truecount="0" falsecount="2"/>
40
- <line num="84" count="0" type="cond" truecount="0" falsecount="2"/>
41
- <line num="85" count="0" type="stmt"/>
42
- <line num="90" count="0" type="cond" truecount="0" falsecount="2"/>
43
- <line num="91" count="0" type="stmt"/>
44
- <line num="92" count="0" type="stmt"/>
45
- <line num="95" count="0" type="stmt"/>
46
- <line num="98" count="0" type="stmt"/>
47
- <line num="100" count="0" type="stmt"/>
48
- <line num="101" count="0" type="stmt"/>
49
- <line num="102" count="0" type="stmt"/>
50
- <line num="103" count="0" type="cond" truecount="0" falsecount="2"/>
51
- <line num="104" count="0" type="stmt"/>
52
- <line num="105" count="0" type="stmt"/>
53
- <line num="107" count="0" type="cond" truecount="0" falsecount="2"/>
54
- <line num="108" count="0" type="stmt"/>
55
- <line num="109" count="0" type="stmt"/>
56
- <line num="113" count="0" type="stmt"/>
57
- <line num="114" count="0" type="stmt"/>
58
- <line num="116" count="0" type="stmt"/>
59
- <line num="117" count="0" type="stmt"/>
60
- <line num="118" count="0" type="cond" truecount="0" falsecount="2"/>
61
- <line num="119" count="0" type="stmt"/>
62
- <line num="120" count="0" type="stmt"/>
63
- <line num="121" count="0" type="stmt"/>
64
- <line num="122" count="0" type="cond" truecount="0" falsecount="2"/>
65
- <line num="123" count="0" type="stmt"/>
66
- <line num="125" count="0" type="stmt"/>
67
- <line num="128" count="0" type="stmt"/>
68
- <line num="132" count="0" type="stmt"/>
69
- <line num="134" count="0" type="cond" truecount="0" falsecount="2"/>
70
- <line num="135" count="0" type="stmt"/>
71
- <line num="136" count="0" type="stmt"/>
72
- <line num="137" count="0" type="stmt"/>
73
- <line num="140" count="0" type="stmt"/>
74
- <line num="142" count="0" type="cond" truecount="0" falsecount="2"/>
75
- <line num="143" count="0" type="stmt"/>
76
- <line num="144" count="0" type="stmt"/>
77
- <line num="145" count="0" type="stmt"/>
78
- <line num="146" count="0" type="stmt"/>
79
- <line num="147" count="0" type="stmt"/>
80
- <line num="148" count="0" type="stmt"/>
81
- <line num="149" count="0" type="stmt"/>
82
- <line num="151" count="0" type="stmt"/>
83
- <line num="152" count="0" type="stmt"/>
84
- <line num="154" count="0" type="cond" truecount="0" falsecount="2"/>
85
- <line num="155" count="0" type="stmt"/>
86
- <line num="157" count="0" type="cond" truecount="0" falsecount="2"/>
87
- <line num="158" count="0" type="stmt"/>
88
- <line num="159" count="0" type="stmt"/>
89
- <line num="160" count="0" type="stmt"/>
90
- <line num="161" count="0" type="stmt"/>
91
- <line num="162" count="0" type="stmt"/>
92
- <line num="163" count="0" type="stmt"/>
93
- <line num="164" count="0" type="stmt"/>
94
- <line num="165" count="0" type="cond" truecount="0" falsecount="2"/>
95
- <line num="166" count="0" type="stmt"/>
96
- <line num="168" count="0" type="cond" truecount="0" falsecount="2"/>
97
- <line num="169" count="0" type="stmt"/>
98
- <line num="170" count="0" type="stmt"/>
99
- <line num="171" count="0" type="stmt"/>
100
- <line num="172" count="0" type="stmt"/>
101
- <line num="173" count="0" type="cond" truecount="0" falsecount="2"/>
102
- <line num="177" count="0" type="stmt"/>
103
- <line num="178" count="0" type="stmt"/>
104
- <line num="179" count="0" type="stmt"/>
105
- <line num="180" count="0" type="stmt"/>
106
- <line num="182" count="0" type="stmt"/>
107
- <line num="183" count="0" type="stmt"/>
108
- <line num="185" count="0" type="cond" truecount="0" falsecount="2"/>
109
- <line num="186" count="0" type="stmt"/>
110
- <line num="189" count="0" type="stmt"/>
111
- <line num="190" count="0" type="stmt"/>
112
- <line num="191" count="0" type="stmt"/>
113
- <line num="192" count="0" type="stmt"/>
114
- <line num="193" count="0" type="stmt"/>
115
- <line num="194" count="0" type="stmt"/>
116
- <line num="195" count="0" type="stmt"/>
117
- <line num="196" count="0" type="stmt"/>
118
- <line num="198" count="0" type="stmt"/>
119
- <line num="199" count="0" type="stmt"/>
120
- <line num="201" count="0" type="cond" truecount="0" falsecount="2"/>
121
- <line num="202" count="0" type="stmt"/>
122
- <line num="208" count="0" type="stmt"/>
123
- <line num="209" count="0" type="stmt"/>
124
- <line num="211" count="0" type="stmt"/>
125
- <line num="213" count="0" type="stmt"/>
126
- <line num="214" count="0" type="stmt"/>
127
- <line num="215" count="0" type="cond" truecount="0" falsecount="2"/>
128
- <line num="216" count="0" type="stmt"/>
129
- <line num="217" count="0" type="stmt"/>
130
- <line num="221" count="0" type="stmt"/>
131
- <line num="225" count="4" type="stmt"/>
132
- <line num="226" count="4" type="stmt"/>
133
- <line num="227" count="4" type="stmt"/>
134
- <line num="229" count="4" type="stmt"/>
135
- <line num="230" count="19" type="cond" truecount="2" falsecount="0"/>
136
- <line num="231" count="4" type="stmt"/>
137
- <line num="232" count="4" type="stmt"/>
138
- <line num="236" count="15" type="cond" truecount="4" falsecount="0"/>
139
- <line num="237" count="7" type="stmt"/>
140
- <line num="238" count="7" type="stmt"/>
141
- <line num="239" count="7" type="cond" truecount="2" falsecount="0"/>
142
- <line num="240" count="3" type="stmt"/>
143
- <line num="245" count="4" type="stmt"/>
144
- <line num="249" count="3" type="cond" truecount="1" falsecount="1"/>
145
- <line num="254" count="3" type="stmt"/>
146
- <line num="255" count="3" type="stmt"/>
147
- <line num="257" count="3" type="stmt"/>
148
- <line num="260" count="10" type="cond" truecount="2" falsecount="0"/>
149
- <line num="261" count="6" type="stmt"/>
150
- <line num="264" count="4" type="cond" truecount="2" falsecount="0"/>
151
- <line num="265" count="2" type="stmt"/>
152
- <line num="267" count="2" type="stmt"/>
153
- <line num="271" count="3" type="stmt"/>
154
- <line num="278" count="2" type="cond" truecount="1" falsecount="1"/>
155
- <line num="279" count="0" type="stmt"/>
156
- <line num="286" count="2" type="stmt"/>
157
- <line num="287" count="2" type="stmt"/>
158
- <line num="289" count="2" type="stmt"/>
159
- <line num="297" count="2" type="cond" truecount="2" falsecount="0"/>
160
- <line num="298" count="1" type="stmt"/>
161
- <line num="301" count="1" type="stmt"/>
162
- <line num="305" count="2" type="stmt"/>
163
- <line num="307" count="3" type="stmt"/>
164
- <line num="313" count="0" type="cond" truecount="0" falsecount="2"/>
165
- <line num="314" count="0" type="stmt"/>
166
- <line num="315" count="0" type="stmt"/>
167
- <line num="318" count="0" type="stmt"/>
168
- <line num="320" count="0" type="stmt"/>
169
- <line num="322" count="0" type="stmt"/>
170
- <line num="324" count="0" type="cond" truecount="0" falsecount="2"/>
171
- <line num="325" count="0" type="stmt"/>
172
- <line num="326" count="0" type="stmt"/>
173
- <line num="329" count="0" type="stmt"/>
174
- <line num="331" count="0" type="stmt"/>
175
- <line num="332" count="0" type="stmt"/>
176
- <line num="333" count="0" type="stmt"/>
177
- <line num="335" count="0" type="stmt"/>
178
- <line num="336" count="0" type="stmt"/>
179
- <line num="337" count="0" type="stmt"/>
180
- <line num="339" count="0" type="cond" truecount="0" falsecount="2"/>
181
- <line num="340" count="0" type="stmt"/>
182
- <line num="341" count="0" type="stmt"/>
183
- <line num="344" count="0" type="stmt"/>
184
- <line num="345" count="0" type="cond" truecount="0" falsecount="2"/>
185
- <line num="346" count="0" type="stmt"/>
186
- <line num="352" count="0" type="stmt"/>
187
- <line num="353" count="0" type="stmt"/>
188
- <line num="355" count="0" type="stmt"/>
189
- <line num="356" count="0" type="stmt"/>
190
- <line num="358" count="0" type="cond" truecount="0" falsecount="2"/>
191
- <line num="359" count="0" type="stmt"/>
192
- <line num="365" count="0" type="cond" truecount="0" falsecount="2"/>
193
- <line num="366" count="0" type="stmt"/>
194
- <line num="367" count="0" type="cond" truecount="0" falsecount="2"/>
195
- <line num="368" count="0" type="stmt"/>
196
- <line num="371" count="0" type="stmt"/>
197
- <line num="372" count="0" type="cond" truecount="0" falsecount="4"/>
198
- <line num="373" count="0" type="stmt"/>
199
- <line num="375" count="0" type="cond" truecount="0" falsecount="2"/>
200
- <line num="376" count="0" type="stmt"/>
201
- <line num="378" count="0" type="stmt"/>
202
- <line num="383" count="0" type="cond" truecount="0" falsecount="2"/>
203
- <line num="384" count="0" type="stmt"/>
204
- <line num="385" count="0" type="stmt"/>
205
- <line num="386" count="0" type="stmt"/>
206
- <line num="387" count="0" type="stmt"/>
207
- </file>
208
- <file name="fileUtils.js" path="/Users/mahmoud.maghrabia/Documents/coverage/src/fileUtils.js">
209
- <metrics statements="100" coveredstatements="92" conditionals="56" coveredconditionals="46" methods="18" coveredmethods="18"/>
210
- <line num="6" count="6" type="stmt"/>
211
- <line num="8" count="54" type="cond" truecount="4" falsecount="0"/>
212
- <line num="10" count="50" type="cond" truecount="2" falsecount="0"/>
213
- <line num="12" count="34" type="cond" truecount="4" falsecount="0"/>
214
- <line num="14" count="16" type="cond" truecount="2" falsecount="0"/>
215
- <line num="16" count="14" type="cond" truecount="4" falsecount="0"/>
216
- <line num="26" count="4" type="stmt"/>
217
- <line num="27" count="4" type="stmt"/>
218
- <line num="29" count="4" type="stmt"/>
219
- <line num="31" count="12" type="cond" truecount="4" falsecount="0"/>
220
- <line num="32" count="2" type="stmt"/>
221
- <line num="35" count="10" type="cond" truecount="2" falsecount="0"/>
222
- <line num="36" count="1" type="stmt"/>
223
- <line num="40" count="9" type="cond" truecount="2" falsecount="0"/>
224
- <line num="41" count="5" type="stmt"/>
225
- <line num="42" count="4" type="cond" truecount="1" falsecount="1"/>
226
- <line num="43" count="4" type="stmt"/>
227
- <line num="47" count="4" type="stmt"/>
228
- <line num="57" count="7" type="stmt"/>
229
- <line num="58" count="7" type="stmt"/>
230
- <line num="59" count="7" type="stmt"/>
231
- <line num="63" count="7" type="stmt"/>
232
- <line num="64" count="28" type="stmt"/>
233
- <line num="65" count="28" type="stmt"/>
234
- <line num="70" count="7" type="stmt"/>
235
- <line num="71" count="28" type="stmt"/>
236
- <line num="72" count="28" type="stmt"/>
237
- <line num="73" count="28" type="stmt"/>
238
- <line num="78" count="7" type="stmt"/>
239
- <line num="79" count="7" type="cond" truecount="2" falsecount="0"/>
240
- <line num="80" count="1" type="stmt"/>
241
- <line num="81" count="1" type="stmt"/>
242
- <line num="82" count="1" type="stmt"/>
243
- <line num="84" count="1" type="stmt"/>
244
- <line num="85" count="4" type="stmt"/>
245
- <line num="86" count="4" type="stmt"/>
246
- <line num="91" count="148" type="stmt"/>
247
- <line num="100" count="8" type="stmt"/>
248
- <line num="101" count="8" type="stmt"/>
249
- <line num="102" count="8" type="stmt"/>
250
- <line num="105" count="8" type="stmt"/>
251
- <line num="107" count="8" type="stmt"/>
252
- <line num="108" count="0" type="stmt"/>
253
- <line num="112" count="8" type="stmt"/>
254
- <line num="113" count="8" type="stmt"/>
255
- <line num="114" count="6" type="stmt"/>
256
- <line num="118" count="8" type="stmt"/>
257
- <line num="119" count="8" type="stmt"/>
258
- <line num="120" count="0" type="stmt"/>
259
- <line num="123" count="8" type="stmt"/>
260
- <line num="125" count="0" type="stmt"/>
261
- <line num="137" count="6" type="cond" truecount="1" falsecount="1"/>
262
- <line num="138" count="0" type="stmt"/>
263
- <line num="141" count="6" type="stmt"/>
264
- <line num="142" count="6" type="stmt"/>
265
- <line num="145" count="6" type="stmt"/>
266
- <line num="146" count="6" type="stmt"/>
267
- <line num="147" count="36" type="stmt"/>
268
- <line num="148" count="36" type="cond" truecount="1" falsecount="1"/>
269
- <line num="149" count="0" type="stmt"/>
270
- <line num="154" count="6" type="cond" truecount="1" falsecount="1"/>
271
- <line num="155" count="6" type="stmt"/>
272
- <line num="158" count="0" type="stmt"/>
273
- <line num="169" count="2" type="stmt"/>
274
- <line num="170" count="2" type="stmt"/>
275
- <line num="173" count="2" type="stmt"/>
276
- <line num="174" count="2" type="stmt"/>
277
- <line num="175" count="2" type="stmt"/>
278
- <line num="176" count="2" type="cond" truecount="1" falsecount="1"/>
279
- <line num="177" count="2" type="stmt"/>
280
- <line num="178" count="2" type="stmt"/>
281
- <line num="179" count="2" type="stmt"/>
282
- <line num="180" count="6" type="stmt"/>
283
- <line num="181" count="6" type="stmt"/>
284
- <line num="183" count="6" type="cond" truecount="2" falsecount="3"/>
285
- <line num="184" count="0" type="stmt"/>
286
- <line num="185" count="6" type="cond" truecount="3" falsecount="1"/>
287
- <line num="186" count="6" type="stmt"/>
288
- <line num="190" count="2" type="stmt"/>
289
- <line num="193" count="0" type="stmt"/>
290
- <line num="197" count="2" type="stmt"/>
291
- <line num="198" count="2" type="stmt"/>
292
- <line num="200" count="2" type="cond" truecount="2" falsecount="0"/>
293
- <line num="201" count="3" type="stmt"/>
294
- <line num="203" count="3" type="stmt"/>
295
- <line num="204" count="9" type="stmt"/>
296
- <line num="206" count="9" type="cond" truecount="2" falsecount="0"/>
297
- <line num="208" count="8" type="stmt"/>
298
- <line num="209" count="8" type="stmt"/>
299
- <line num="211" count="8" type="stmt"/>
300
- <line num="212" count="6" type="stmt"/>
301
- <line num="213" count="6" type="cond" truecount="4" falsecount="0"/>
302
- <line num="214" count="3" type="stmt"/>
303
- <line num="218" count="8" type="cond" truecount="2" falsecount="0"/>
304
- <line num="219" count="3" type="stmt"/>
305
- <line num="220" count="3" type="stmt"/>
306
- <line num="224" count="3" type="stmt"/>
307
- <line num="225" count="3" type="stmt"/>
308
- <line num="226" count="3" type="stmt"/>
309
- <line num="229" count="2" type="stmt"/>
310
- </file>
311
- <file name="gitUtils.js" path="/Users/mahmoud.maghrabia/Documents/coverage/src/gitUtils.js">
312
- <metrics statements="8" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="0"/>
313
- <line num="5" count="0" type="stmt"/>
314
- <line num="6" count="0" type="stmt"/>
315
- <line num="8" count="0" type="stmt"/>
316
- <line num="9" count="0" type="stmt"/>
317
- <line num="14" count="0" type="stmt"/>
318
- <line num="15" count="0" type="stmt"/>
319
- <line num="17" count="0" type="stmt"/>
320
- <line num="18" count="0" type="stmt"/>
321
- </file>
322
- <file name="importer.js" path="/Users/mahmoud.maghrabia/Documents/coverage/src/importer.js">
323
- <metrics statements="101" coveredstatements="2" conditionals="84" coveredconditionals="0" methods="15" coveredmethods="0"/>
324
- <line num="10" count="0" type="cond" truecount="0" falsecount="2"/>
325
- <line num="11" count="0" type="cond" truecount="0" falsecount="2"/>
326
- <line num="12" count="0" type="cond" truecount="0" falsecount="2"/>
327
- <line num="17" count="0" type="stmt"/>
328
- <line num="19" count="0" type="stmt"/>
329
- <line num="24" count="0" type="stmt"/>
330
- <line num="25" count="0" type="stmt"/>
331
- <line num="27" count="0" type="stmt"/>
332
- <line num="30" count="0" type="stmt"/>
333
- <line num="38" count="0" type="stmt"/>
334
- <line num="42" count="0" type="cond" truecount="0" falsecount="4"/>
335
- <line num="43" count="0" type="stmt"/>
336
- <line num="46" count="0" type="cond" truecount="0" falsecount="2"/>
337
- <line num="52" count="0" type="stmt"/>
338
- <line num="55" count="0" type="cond" truecount="0" falsecount="2"/>
339
- <line num="62" count="0" type="stmt"/>
340
- <line num="65" count="0" type="cond" truecount="0" falsecount="2"/>
341
- <line num="73" count="0" type="stmt"/>
342
- <line num="76" count="0" type="stmt"/>
343
- <line num="79" count="0" type="stmt"/>
344
- <line num="80" count="0" type="stmt"/>
345
- <line num="89" count="0" type="cond" truecount="0" falsecount="2"/>
346
- <line num="92" count="0" type="cond" truecount="0" falsecount="2"/>
347
- <line num="93" count="0" type="stmt"/>
348
- <line num="99" count="0" type="stmt"/>
349
- <line num="100" count="0" type="cond" truecount="0" falsecount="2"/>
350
- <line num="101" count="0" type="stmt"/>
351
- <line num="109" count="0" type="stmt"/>
352
- <line num="110" count="0" type="stmt"/>
353
- <line num="112" count="0" type="stmt"/>
354
- <line num="119" count="0" type="stmt"/>
355
- <line num="127" count="0" type="stmt"/>
356
- <line num="128" count="0" type="cond" truecount="0" falsecount="2"/>
357
- <line num="129" count="0" type="cond" truecount="0" falsecount="2"/>
358
- <line num="130" count="0" type="cond" truecount="0" falsecount="2"/>
359
- <line num="131" count="0" type="stmt"/>
360
- <line num="138" count="1" type="stmt"/>
361
- <line num="139" count="1" type="stmt"/>
362
- <line num="142" count="0" type="stmt"/>
363
- <line num="143" count="0" type="stmt"/>
364
- <line num="147" count="0" type="stmt"/>
365
- <line num="148" count="0" type="stmt"/>
366
- <line num="150" count="0" type="stmt"/>
367
- <line num="153" count="0" type="stmt"/>
368
- <line num="154" count="0" type="stmt"/>
369
- <line num="156" count="0" type="cond" truecount="0" falsecount="2"/>
370
- <line num="158" count="0" type="cond" truecount="0" falsecount="2"/>
371
- <line num="159" count="0" type="cond" truecount="0" falsecount="2"/>
372
- <line num="160" count="0" type="stmt"/>
373
- <line num="161" count="0" type="cond" truecount="0" falsecount="2"/>
374
- <line num="162" count="0" type="cond" truecount="0" falsecount="2"/>
375
- <line num="163" count="0" type="cond" truecount="0" falsecount="2"/>
376
- <line num="164" count="0" type="stmt"/>
377
- <line num="170" count="0" type="stmt"/>
378
- <line num="171" count="0" type="stmt"/>
379
- <line num="206" count="0" type="stmt"/>
380
- <line num="208" count="0" type="stmt"/>
381
- <line num="209" count="0" type="stmt"/>
382
- <line num="210" count="0" type="stmt"/>
383
- <line num="212" count="0" type="stmt"/>
384
- <line num="213" count="0" type="stmt"/>
385
- <line num="215" count="0" type="stmt"/>
386
- <line num="217" count="0" type="stmt"/>
387
- <line num="218" count="0" type="stmt"/>
388
- <line num="219" count="0" type="stmt"/>
389
- <line num="220" count="0" type="stmt"/>
390
- <line num="221" count="0" type="cond" truecount="0" falsecount="2"/>
391
- <line num="222" count="0" type="stmt"/>
392
- <line num="223" count="0" type="cond" truecount="0" falsecount="2"/>
393
- <line num="224" count="0" type="stmt"/>
394
- <line num="225" count="0" type="stmt"/>
395
- <line num="227" count="0" type="stmt"/>
396
- <line num="231" count="0" type="stmt"/>
397
- <line num="259" count="0" type="cond" truecount="0" falsecount="2"/>
398
- <line num="260" count="0" type="stmt"/>
399
- <line num="263" count="0" type="stmt"/>
400
- <line num="264" count="0" type="stmt"/>
401
- <line num="265" count="0" type="stmt"/>
402
- <line num="266" count="0" type="stmt"/>
403
- <line num="268" count="0" type="stmt"/>
404
- <line num="269" count="0" type="stmt"/>
405
- <line num="271" count="0" type="cond" truecount="0" falsecount="2"/>
406
- <line num="273" count="0" type="cond" truecount="0" falsecount="2"/>
407
- <line num="274" count="0" type="stmt"/>
408
- <line num="275" count="0" type="cond" truecount="0" falsecount="2"/>
409
- <line num="278" count="0" type="cond" truecount="0" falsecount="2"/>
410
- <line num="280" count="0" type="stmt"/>
411
- <line num="281" count="0" type="cond" truecount="0" falsecount="2"/>
412
- <line num="283" count="0" type="stmt"/>
413
- <line num="284" count="0" type="cond" truecount="0" falsecount="4"/>
414
- <line num="285" count="0" type="stmt"/>
415
- <line num="290" count="0" type="stmt"/>
416
- <line num="291" count="0" type="cond" truecount="0" falsecount="2"/>
417
- <line num="294" count="0" type="stmt"/>
418
- <line num="305" count="0" type="stmt"/>
419
- <line num="306" count="0" type="stmt"/>
420
- <line num="317" count="0" type="stmt"/>
421
- <line num="318" count="0" type="stmt"/>
422
- <line num="319" count="0" type="stmt"/>
423
- <line num="320" count="0" type="stmt"/>
424
- <line num="322" count="0" type="stmt"/>
425
- </file>
426
- </project>
427
- </coverage>