mo3ta-coverage 1.0.11 → 1.0.13
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.
- package/README.md +21 -13
- package/coverage/clover.xml +318 -127
- package/coverage/coverage-final.json +3 -2
- package/coverage/lcov-report/cli.js.html +178 -16
- package/coverage/lcov-report/fileUtils.js.html +423 -9
- package/coverage/lcov-report/gitUtils.js.html +1 -1
- package/coverage/lcov-report/importer.js.html +1051 -0
- package/coverage/lcov-report/index.html +43 -28
- package/coverage/lcov.info +609 -226
- package/index.js +49 -3
- package/package.json +3 -2
- package/src/cli.js +56 -6
- package/src/fileUtils.js +138 -0
- package/src/fileUtils.test.js +32 -1
- package/src/importer.js +323 -0
package/README.md
CHANGED
|
@@ -4,11 +4,13 @@ mo3ta-coverage checks coverage for changed lines in a pull request. It finds cha
|
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
- Detects changed JS/TS files from
|
|
7
|
+
- Detects changed JS/TS files from all commits in the current branch, uncommitted changes, and staged files
|
|
8
8
|
- Maps changed source files to nearby test files automatically
|
|
9
9
|
- Supports three execution modes: `fast`, `smart`, and `full`
|
|
10
|
+
- Smart mode includes reverse dependency analysis with configurable depth
|
|
10
11
|
- Parses `lcov.info` and reports uncovered changed lines
|
|
11
12
|
- Enforces a minimum coverage threshold for changed lines
|
|
13
|
+
- Helpful error messages when invalid options are provided
|
|
12
14
|
|
|
13
15
|
## Installation
|
|
14
16
|
|
|
@@ -26,17 +28,21 @@ mo3ta-coverage --mode smart --base origin/main --limit 80
|
|
|
26
28
|
|
|
27
29
|
| Option | Description | Default |
|
|
28
30
|
|--------|-------------|---------|
|
|
31
|
+
| `-v, --version` | Output the current version | - |
|
|
29
32
|
| `--base <branch>` | Base branch to compare against | `origin/main` |
|
|
30
33
|
| `--lcov <path>` | Path to `lcov.info` | `coverage/lcov.info` |
|
|
31
34
|
| `--limit <percent>` | Minimum changed-line coverage percentage | `80` |
|
|
32
35
|
| `--showCovered <bool>` | Show covered changed lines in output | `false` |
|
|
33
|
-
| `--mode <mode>` | Execution mode: `fast`, `smart`, or `full` | `smart` |
|
|
36
|
+
| `--mode <mode>` | Execution mode: `fast`, `smart`, or `full` (required) | `smart` |
|
|
37
|
+
| `--maxDepth <number>` | Maximum reverse dependency depth for smart mode | `3` |
|
|
34
38
|
|
|
35
39
|
## Modes
|
|
36
40
|
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
41
|
+
- **`fast`**: Direct execution of mapped test files only. No Jest dependency traversal. Fastest option.
|
|
42
|
+
- **`smart`**: Direct execution of changed source files plus mapped test files, with reverse dependency analysis. Includes tests for files that import your changes up to `--maxDepth` levels. Recommended for most projects.
|
|
43
|
+
- **`full`**: Runs mapped test files through `jest --findRelatedTests`. Let Jest expand to related tests. Use with caution in large projects.
|
|
44
|
+
|
|
45
|
+
If an invalid mode is provided, the tool will display available options with descriptions.
|
|
40
46
|
|
|
41
47
|
## Recommended Mode
|
|
42
48
|
|
|
@@ -53,11 +59,20 @@ Use `full` only when you intentionally want Jest to expand to related tests.
|
|
|
53
59
|
You can persist defaults with the `config` subcommand:
|
|
54
60
|
|
|
55
61
|
```sh
|
|
56
|
-
mo3ta-coverage config --base origin/main --mode smart
|
|
62
|
+
mo3ta-coverage config --base origin/main --mode smart --maxDepth 3
|
|
57
63
|
```
|
|
58
64
|
|
|
59
65
|
This writes `.mo3ta-coverage.json` in the project root.
|
|
60
66
|
|
|
67
|
+
## Changed Files Detection
|
|
68
|
+
|
|
69
|
+
The tool detects changed files by comparing against the specified base branch:
|
|
70
|
+
- All committed files in the current branch (from merge-base to HEAD)
|
|
71
|
+
- Uncommitted changes in the working tree
|
|
72
|
+
- Staged changes (files added with `git add`)
|
|
73
|
+
|
|
74
|
+
This means coverage is checked for all changes in your branch, not just your authored commits.
|
|
75
|
+
|
|
61
76
|
## How It Works
|
|
62
77
|
|
|
63
78
|
1. Reads CLI options and saved config from [index.js](index.js).
|
|
@@ -73,13 +88,6 @@ npm install
|
|
|
73
88
|
npm test
|
|
74
89
|
```
|
|
75
90
|
|
|
76
|
-
## Additional Reading
|
|
77
|
-
|
|
78
|
-
- [OPTIMIZATION_GUIDE.md](OPTIMIZATION_GUIDE.md)
|
|
79
|
-
- [QUICK_REFERENCE.md](QUICK_REFERENCE.md)
|
|
80
|
-
- [RECOMMENDED_USAGE.md](RECOMMENDED_USAGE.md)
|
|
81
|
-
- [JEST_PR_HISTORY.md](JEST_PR_HISTORY.md)
|
|
82
|
-
|
|
83
91
|
## License
|
|
84
92
|
|
|
85
93
|
MIT
|
package/coverage/clover.xml
CHANGED
|
@@ -1,188 +1,212 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
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
5
|
<file name="cli.js" path="/Users/mahmoud.maghrabia/Documents/coverage/src/cli.js">
|
|
6
|
-
<metrics statements="
|
|
7
|
-
<line num="
|
|
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
8
|
<line num="11" count="0" type="stmt"/>
|
|
9
|
-
<line num="13" count="0" type="stmt"/>
|
|
10
9
|
<line num="14" count="0" type="stmt"/>
|
|
11
10
|
<line num="15" count="0" type="stmt"/>
|
|
12
|
-
<line num="16" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
13
11
|
<line num="17" count="0" type="stmt"/>
|
|
14
|
-
<line num="
|
|
15
|
-
<line num="
|
|
16
|
-
<line num="
|
|
17
|
-
<line num="
|
|
18
|
-
<line num="
|
|
19
|
-
<line num="26" 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"/>
|
|
20
17
|
<line num="33" count="0" type="stmt"/>
|
|
21
|
-
<line num="
|
|
22
|
-
<line num="41" count="0" type="stmt"/>
|
|
23
|
-
<line num="42" count="0" type="stmt"/>
|
|
24
|
-
<line num="43" count="0" type="stmt"/>
|
|
18
|
+
<line num="37" count="0" type="stmt"/>
|
|
25
19
|
<line num="44" count="0" type="stmt"/>
|
|
26
|
-
<line num="46" count="0" type="
|
|
27
|
-
<line num="48" count="0" type="
|
|
20
|
+
<line num="46" count="0" type="stmt"/>
|
|
21
|
+
<line num="48" count="0" type="stmt"/>
|
|
28
22
|
<line num="49" count="0" type="stmt"/>
|
|
29
|
-
<line num="
|
|
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"/>
|
|
30
27
|
<line num="55" count="0" type="stmt"/>
|
|
31
|
-
<line num="
|
|
28
|
+
<line num="57" count="0" type="stmt"/>
|
|
29
|
+
<line num="58" count="0" type="stmt"/>
|
|
32
30
|
<line num="59" count="0" type="stmt"/>
|
|
31
|
+
<line num="61" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
33
32
|
<line num="62" count="0" type="stmt"/>
|
|
34
|
-
<line num="64" count="0" type="stmt"/>
|
|
35
|
-
<line num="65" count="0" type="stmt"/>
|
|
36
|
-
<line num="66" count="0" type="stmt"/>
|
|
37
|
-
<line num="67" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
38
|
-
<line num="68" count="0" type="stmt"/>
|
|
39
33
|
<line num="69" count="0" type="stmt"/>
|
|
40
|
-
<line num="71" count="0" type="
|
|
41
|
-
<line num="72" count="0" type="stmt"/>
|
|
42
|
-
<line num="73" count="0" type="stmt"/>
|
|
34
|
+
<line num="71" count="0" type="stmt"/>
|
|
43
35
|
<line num="77" count="0" type="stmt"/>
|
|
44
36
|
<line num="78" count="0" type="stmt"/>
|
|
37
|
+
<line num="79" count="0" type="stmt"/>
|
|
45
38
|
<line num="80" count="0" type="stmt"/>
|
|
46
|
-
<line num="81" count="0" type="stmt"/>
|
|
47
39
|
<line num="82" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
48
|
-
<line num="
|
|
49
|
-
<line num="84" count="0" type="stmt"/>
|
|
40
|
+
<line num="84" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
50
41
|
<line num="85" count="0" type="stmt"/>
|
|
51
|
-
<line num="
|
|
52
|
-
<line num="
|
|
53
|
-
<line num="89" count="0" type="stmt"/>
|
|
42
|
+
<line num="90" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
43
|
+
<line num="91" count="0" type="stmt"/>
|
|
54
44
|
<line num="92" count="0" type="stmt"/>
|
|
55
|
-
<line num="
|
|
56
|
-
<line num="98" count="0" type="
|
|
57
|
-
<line num="99" count="0" type="stmt"/>
|
|
45
|
+
<line num="95" count="0" type="stmt"/>
|
|
46
|
+
<line num="98" count="0" type="stmt"/>
|
|
58
47
|
<line num="100" count="0" type="stmt"/>
|
|
59
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"/>
|
|
60
51
|
<line num="104" count="0" type="stmt"/>
|
|
61
|
-
<line num="
|
|
62
|
-
<line num="107" count="0" type="
|
|
52
|
+
<line num="105" count="0" type="stmt"/>
|
|
53
|
+
<line num="107" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
63
54
|
<line num="108" count="0" type="stmt"/>
|
|
64
55
|
<line num="109" count="0" type="stmt"/>
|
|
65
|
-
<line num="110" count="0" type="stmt"/>
|
|
66
|
-
<line num="111" count="0" type="stmt"/>
|
|
67
|
-
<line num="112" count="0" type="stmt"/>
|
|
68
56
|
<line num="113" count="0" type="stmt"/>
|
|
69
|
-
<line num="
|
|
57
|
+
<line num="114" count="0" type="stmt"/>
|
|
70
58
|
<line num="116" count="0" type="stmt"/>
|
|
59
|
+
<line num="117" count="0" type="stmt"/>
|
|
71
60
|
<line num="118" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
72
61
|
<line num="119" count="0" type="stmt"/>
|
|
73
|
-
<line num="
|
|
74
|
-
<line num="
|
|
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"/>
|
|
75
65
|
<line num="123" count="0" type="stmt"/>
|
|
76
|
-
<line num="124" count="0" type="stmt"/>
|
|
77
66
|
<line num="125" count="0" type="stmt"/>
|
|
78
|
-
<line num="126" count="0" type="stmt"/>
|
|
79
|
-
<line num="127" count="0" type="stmt"/>
|
|
80
67
|
<line num="128" count="0" type="stmt"/>
|
|
81
|
-
<line num="129" count="0" type="stmt"/>
|
|
82
|
-
<line num="130" count="0" type="stmt"/>
|
|
83
68
|
<line num="132" count="0" type="stmt"/>
|
|
84
|
-
<line num="
|
|
85
|
-
<line num="135" count="0" type="
|
|
69
|
+
<line num="134" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
70
|
+
<line num="135" count="0" type="stmt"/>
|
|
86
71
|
<line num="136" count="0" type="stmt"/>
|
|
87
|
-
<line num="
|
|
72
|
+
<line num="137" count="0" type="stmt"/>
|
|
88
73
|
<line num="140" count="0" type="stmt"/>
|
|
89
|
-
<line num="
|
|
90
|
-
<line num="142" count="0" type="stmt"/>
|
|
74
|
+
<line num="142" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
91
75
|
<line num="143" count="0" type="stmt"/>
|
|
92
76
|
<line num="144" count="0" type="stmt"/>
|
|
93
77
|
<line num="145" count="0" type="stmt"/>
|
|
94
78
|
<line num="146" count="0" type="stmt"/>
|
|
79
|
+
<line num="147" count="0" type="stmt"/>
|
|
95
80
|
<line num="148" count="0" type="stmt"/>
|
|
96
81
|
<line num="149" count="0" type="stmt"/>
|
|
97
|
-
<line num="151" count="0" type="
|
|
82
|
+
<line num="151" count="0" type="stmt"/>
|
|
98
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"/>
|
|
99
87
|
<line num="158" count="0" type="stmt"/>
|
|
100
88
|
<line num="159" count="0" type="stmt"/>
|
|
89
|
+
<line num="160" count="0" type="stmt"/>
|
|
101
90
|
<line num="161" count="0" type="stmt"/>
|
|
91
|
+
<line num="162" count="0" type="stmt"/>
|
|
102
92
|
<line num="163" count="0" type="stmt"/>
|
|
103
93
|
<line num="164" count="0" type="stmt"/>
|
|
104
94
|
<line num="165" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
105
95
|
<line num="166" count="0" type="stmt"/>
|
|
106
|
-
<line num="
|
|
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"/>
|
|
107
99
|
<line num="171" count="0" type="stmt"/>
|
|
108
|
-
<line num="
|
|
109
|
-
<line num="
|
|
110
|
-
<line num="177" count="
|
|
111
|
-
<line num="
|
|
112
|
-
<line num="
|
|
113
|
-
<line num="
|
|
114
|
-
<line num="182" count="
|
|
115
|
-
<line num="
|
|
116
|
-
<line num="
|
|
117
|
-
<line num="
|
|
118
|
-
<line num="189" count="
|
|
119
|
-
<line num="190" count="
|
|
120
|
-
<line num="
|
|
121
|
-
<line num="
|
|
122
|
-
<line num="
|
|
123
|
-
<line num="
|
|
124
|
-
<line num="
|
|
125
|
-
<line num="
|
|
126
|
-
<line num="
|
|
127
|
-
<line num="
|
|
128
|
-
<line num="
|
|
129
|
-
<line num="
|
|
130
|
-
<line num="
|
|
131
|
-
<line num="
|
|
132
|
-
<line num="
|
|
133
|
-
<line num="
|
|
134
|
-
<line num="
|
|
135
|
-
<line num="
|
|
136
|
-
<line num="
|
|
137
|
-
<line num="
|
|
138
|
-
<line num="
|
|
139
|
-
<line num="
|
|
140
|
-
<line num="
|
|
141
|
-
<line num="
|
|
142
|
-
<line num="
|
|
143
|
-
<line num="
|
|
144
|
-
<line num="
|
|
145
|
-
<line num="
|
|
146
|
-
<line num="
|
|
147
|
-
<line num="
|
|
148
|
-
<line num="
|
|
149
|
-
<line num="
|
|
150
|
-
<line num="
|
|
151
|
-
<line num="
|
|
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"/>
|
|
152
155
|
<line num="279" count="0" type="stmt"/>
|
|
153
|
-
<line num="
|
|
154
|
-
<line num="
|
|
155
|
-
<line num="
|
|
156
|
-
<line num="
|
|
157
|
-
<line num="
|
|
158
|
-
<line num="
|
|
159
|
-
<line num="
|
|
160
|
-
<line num="
|
|
161
|
-
<line num="292" count="0" type="stmt"/>
|
|
162
|
-
<line num="298" count="0" type="stmt"/>
|
|
163
|
-
<line num="299" count="0" type="stmt"/>
|
|
164
|
-
<line num="301" count="0" type="stmt"/>
|
|
165
|
-
<line num="302" count="0" type="stmt"/>
|
|
166
|
-
<line num="304" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
167
|
-
<line num="305" count="0" type="stmt"/>
|
|
168
|
-
<line num="311" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
169
|
-
<line num="312" 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"/>
|
|
170
164
|
<line num="313" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
171
165
|
<line num="314" count="0" type="stmt"/>
|
|
172
|
-
<line num="
|
|
173
|
-
<line num="318" count="0" type="
|
|
174
|
-
<line num="
|
|
175
|
-
<line num="321" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
166
|
+
<line num="315" count="0" type="stmt"/>
|
|
167
|
+
<line num="318" count="0" type="stmt"/>
|
|
168
|
+
<line num="320" count="0" type="stmt"/>
|
|
176
169
|
<line num="322" count="0" type="stmt"/>
|
|
177
|
-
<line num="324" count="0" type="
|
|
178
|
-
<line num="
|
|
179
|
-
<line num="
|
|
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"/>
|
|
180
174
|
<line num="331" count="0" type="stmt"/>
|
|
181
175
|
<line num="332" count="0" type="stmt"/>
|
|
182
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"/>
|
|
183
207
|
</file>
|
|
184
208
|
<file name="fileUtils.js" path="/Users/mahmoud.maghrabia/Documents/coverage/src/fileUtils.js">
|
|
185
|
-
<metrics statements="
|
|
209
|
+
<metrics statements="100" coveredstatements="92" conditionals="56" coveredconditionals="46" methods="18" coveredmethods="18"/>
|
|
186
210
|
<line num="6" count="6" type="stmt"/>
|
|
187
211
|
<line num="8" count="54" type="cond" truecount="4" falsecount="0"/>
|
|
188
212
|
<line num="10" count="50" type="cond" truecount="2" falsecount="0"/>
|
|
@@ -220,6 +244,69 @@
|
|
|
220
244
|
<line num="85" count="4" type="stmt"/>
|
|
221
245
|
<line num="86" count="4" type="stmt"/>
|
|
222
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"/>
|
|
223
310
|
</file>
|
|
224
311
|
<file name="gitUtils.js" path="/Users/mahmoud.maghrabia/Documents/coverage/src/gitUtils.js">
|
|
225
312
|
<metrics statements="8" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="0"/>
|
|
@@ -232,5 +319,109 @@
|
|
|
232
319
|
<line num="17" count="0" type="stmt"/>
|
|
233
320
|
<line num="18" count="0" type="stmt"/>
|
|
234
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>
|
|
235
426
|
</project>
|
|
236
427
|
</coverage>
|