|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
2 |
| -<coverage generated="1692093037238" clover="3.2.0"> |
3 |
| - <project timestamp="1692093037238" name="All files"> |
4 |
| - <metrics statements="330" coveredstatements="164" conditionals="63" coveredconditionals="5" methods="89" coveredmethods="21" elements="482" coveredelements="190" complexity="0" loc="330" ncloc="330" packages="13" files="24" classes="24"/> |
| 2 | +<coverage generated="1692093571214" clover="3.2.0"> |
| 3 | + <project timestamp="1692093571214" name="All files"> |
| 4 | + <metrics statements="330" coveredstatements="177" conditionals="63" coveredconditionals="12" methods="89" coveredmethods="23" elements="482" coveredelements="212" complexity="0" loc="330" ncloc="330" packages="13" files="24" classes="24"/> |
5 | 5 | <package name="src">
|
6 | 6 | <metrics statements="15" coveredstatements="14" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="2"/>
|
7 | 7 | <file name="app.ts" path="/Users/chiranjeevthomas/Documents/rest-api-structure/src/app.ts">
|
|
45 | 45 | </file>
|
46 | 46 | </package>
|
47 | 47 | <package name="src.controllers.auth">
|
48 |
| - <metrics statements="88" coveredstatements="46" conditionals="11" coveredconditionals="0" methods="20" coveredmethods="2"/> |
| 48 | + <metrics statements="88" coveredstatements="47" conditionals="11" coveredconditionals="0" methods="20" coveredmethods="2"/> |
49 | 49 | <file name="loginController.ts" path="/Users/chiranjeevthomas/Documents/rest-api-structure/src/controllers/auth/loginController.ts">
|
50 | 50 | <metrics statements="22" coveredstatements="9" conditionals="4" coveredconditionals="0" methods="7" coveredmethods="0"/>
|
51 | 51 | <line num="2" count="1" type="stmt"/>
|
|
96 | 96 | <line num="73" count="1" type="stmt"/>
|
97 | 97 | </file>
|
98 | 98 | <file name="registerController.ts" path="/Users/chiranjeevthomas/Documents/rest-api-structure/src/controllers/auth/registerController.ts">
|
99 |
| - <metrics statements="23" coveredstatements="21" conditionals="1" coveredconditionals="0" methods="2" coveredmethods="2"/> |
| 99 | + <metrics statements="23" coveredstatements="22" conditionals="1" coveredconditionals="0" methods="2" coveredmethods="2"/> |
100 | 100 | <line num="2" count="1" type="stmt"/>
|
101 | 101 | <line num="3" count="1" type="stmt"/>
|
102 | 102 | <line num="5" count="1" type="stmt"/>
|
103 | 103 | <line num="6" count="1" type="stmt"/>
|
104 | 104 | <line num="7" count="1" type="stmt"/>
|
105 | 105 | <line num="9" count="1" type="stmt"/>
|
106 | 106 | <line num="16" count="1" type="stmt"/>
|
107 |
| - <line num="20" count="1" type="stmt"/> |
108 |
| - <line num="21" count="1" type="stmt"/> |
109 |
| - <line num="23" count="1" type="stmt"/> |
| 107 | + <line num="20" count="2" type="stmt"/> |
| 108 | + <line num="21" count="2" type="stmt"/> |
| 109 | + <line num="23" count="2" type="stmt"/> |
110 | 110 | <line num="28" count="1" type="stmt"/>
|
111 | 111 | <line num="30" count="1" type="cond" truecount="0" falsecount="1"/>
|
112 | 112 | <line num="31" count="0" type="stmt"/>
|
|
118 | 118 | <line num="67" count="1" type="stmt"/>
|
119 | 119 | <line num="70" count="1" type="stmt"/>
|
120 | 120 | <line num="71" count="1" type="stmt"/>
|
121 |
| - <line num="73" count="0" type="stmt"/> |
| 121 | + <line num="73" count="1" type="stmt"/> |
122 | 122 | <line num="77" count="1" type="stmt"/>
|
123 | 123 | </file>
|
124 | 124 | <file name="userController.ts" path="/Users/chiranjeevthomas/Documents/rest-api-structure/src/controllers/auth/userController.ts">
|
|
258 | 258 | </file>
|
259 | 259 | </package>
|
260 | 260 | <package name="src.middlewares">
|
261 |
| - <metrics statements="55" coveredstatements="18" conditionals="18" coveredconditionals="0" methods="12" coveredmethods="2"/> |
| 261 | + <metrics statements="55" coveredstatements="30" conditionals="18" coveredconditionals="7" methods="12" coveredmethods="4"/> |
262 | 262 | <file name="admin.ts" path="/Users/chiranjeevthomas/Documents/rest-api-structure/src/middlewares/admin.ts">
|
263 | 263 | <metrics statements="9" coveredstatements="4" conditionals="3" coveredconditionals="0" methods="6" coveredmethods="0"/>
|
264 | 264 | <line num="3" count="1" type="stmt"/>
|
|
296 | 296 | <line num="71" count="1" type="stmt"/>
|
297 | 297 | </file>
|
298 | 298 | <file name="errorHandler.ts" path="/Users/chiranjeevthomas/Documents/rest-api-structure/src/middlewares/errorHandler.ts">
|
299 |
| - <metrics statements="23" coveredstatements="6" conditionals="11" coveredconditionals="0" methods="2" coveredmethods="0"/> |
| 299 | + <metrics statements="23" coveredstatements="18" conditionals="11" coveredconditionals="7" methods="2" coveredmethods="2"/> |
300 | 300 | <line num="2" count="1" type="stmt"/>
|
301 | 301 | <line num="3" count="1" type="stmt"/>
|
302 | 302 | <line num="4" count="1" type="stmt"/>
|
303 | 303 | <line num="5" count="1" type="stmt"/>
|
304 | 304 | <line num="7" count="1" type="stmt"/>
|
305 |
| - <line num="14" count="0" type="stmt"/> |
306 |
| - <line num="15" count="0" type="cond" truecount="0" falsecount="4"/> |
307 |
| - <line num="16" count="0" type="stmt"/> |
308 |
| - <line num="17" count="0" type="stmt"/> |
309 |
| - <line num="19" count="0" type="stmt"/> |
310 |
| - <line num="21" count="0" type="stmt"/> |
311 |
| - <line num="28" count="0" type="cond" truecount="0" falsecount="2"/> |
| 305 | + <line num="14" count="1" type="stmt"/> |
| 306 | + <line num="15" count="1" type="cond" truecount="3" falsecount="1"/> |
| 307 | + <line num="16" count="1" type="stmt"/> |
| 308 | + <line num="17" count="1" type="stmt"/> |
| 309 | + <line num="19" count="1" type="stmt"/> |
| 310 | + <line num="21" count="1" type="stmt"/> |
| 311 | + <line num="28" count="1" type="cond" truecount="1" falsecount="1"/> |
312 | 312 | <line num="29" count="0" type="stmt"/>
|
313 | 313 | <line num="30" count="0" type="stmt"/>
|
314 |
| - <line num="33" count="0" type="cond" truecount="0" falsecount="2"/> |
315 |
| - <line num="34" count="0" type="stmt"/> |
316 |
| - <line num="36" count="0" type="stmt"/> |
317 |
| - <line num="38" count="0" type="stmt"/> |
| 314 | + <line num="33" count="1" type="cond" truecount="1" falsecount="1"/> |
| 315 | + <line num="34" count="1" type="stmt"/> |
| 316 | + <line num="36" count="1" type="stmt"/> |
| 317 | + <line num="38" count="1" type="stmt"/> |
318 | 318 | <line num="41" count="0" type="cond" truecount="0" falsecount="1"/>
|
319 | 319 | <line num="43" count="0" type="stmt"/>
|
320 | 320 | <line num="44" count="0" type="stmt"/>
|
321 |
| - <line num="47" count="0" type="stmt"/> |
| 321 | + <line num="47" count="1" type="stmt"/> |
322 | 322 | <line num="50" count="1" type="stmt"/>
|
323 | 323 | </file>
|
324 | 324 | <file name="index.ts" path="/Users/chiranjeevthomas/Documents/rest-api-structure/src/middlewares/index.ts">
|
|
428 | 428 | <metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
|
429 | 429 | <line num="2" count="1" type="stmt"/>
|
430 | 430 | <line num="9" count="1" type="stmt"/>
|
431 |
| - <line num="16" count="1" type="stmt"/> |
| 431 | + <line num="16" count="2" type="stmt"/> |
432 | 432 | <line num="21" count="1" type="stmt"/>
|
433 | 433 | <line num="26" count="1" type="stmt"/>
|
434 | 434 | <line num="30" count="1" type="stmt"/>
|
|
0 commit comments