@aiready/doc-drift 0.11.17 → 0.11.21

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.
@@ -0,0 +1,224 @@
1
+ body, html {
2
+ margin:0; padding: 0;
3
+ height: 100%;
4
+ }
5
+ body {
6
+ font-family: Helvetica Neue, Helvetica, Arial;
7
+ font-size: 14px;
8
+ color:#333;
9
+ }
10
+ .small { font-size: 12px; }
11
+ *, *:after, *:before {
12
+ -webkit-box-sizing:border-box;
13
+ -moz-box-sizing:border-box;
14
+ box-sizing:border-box;
15
+ }
16
+ h1 { font-size: 20px; margin: 0;}
17
+ h2 { font-size: 14px; }
18
+ pre {
19
+ font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
20
+ margin: 0;
21
+ padding: 0;
22
+ -moz-tab-size: 2;
23
+ -o-tab-size: 2;
24
+ tab-size: 2;
25
+ }
26
+ a { color:#0074D9; text-decoration:none; }
27
+ a:hover { text-decoration:underline; }
28
+ .strong { font-weight: bold; }
29
+ .space-top1 { padding: 10px 0 0 0; }
30
+ .pad2y { padding: 20px 0; }
31
+ .pad1y { padding: 10px 0; }
32
+ .pad2x { padding: 0 20px; }
33
+ .pad2 { padding: 20px; }
34
+ .pad1 { padding: 10px; }
35
+ .space-left2 { padding-left:55px; }
36
+ .space-right2 { padding-right:20px; }
37
+ .center { text-align:center; }
38
+ .clearfix { display:block; }
39
+ .clearfix:after {
40
+ content:'';
41
+ display:block;
42
+ height:0;
43
+ clear:both;
44
+ visibility:hidden;
45
+ }
46
+ .fl { float: left; }
47
+ @media only screen and (max-width:640px) {
48
+ .col3 { width:100%; max-width:100%; }
49
+ .hide-mobile { display:none!important; }
50
+ }
51
+
52
+ .quiet {
53
+ color: #7f7f7f;
54
+ color: rgba(0,0,0,0.5);
55
+ }
56
+ .quiet a { opacity: 0.7; }
57
+
58
+ .fraction {
59
+ font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
60
+ font-size: 10px;
61
+ color: #555;
62
+ background: #E8E8E8;
63
+ padding: 4px 5px;
64
+ border-radius: 3px;
65
+ vertical-align: middle;
66
+ }
67
+
68
+ div.path a:link, div.path a:visited { color: #333; }
69
+ table.coverage {
70
+ border-collapse: collapse;
71
+ margin: 10px 0 0 0;
72
+ padding: 0;
73
+ }
74
+
75
+ table.coverage td {
76
+ margin: 0;
77
+ padding: 0;
78
+ vertical-align: top;
79
+ }
80
+ table.coverage td.line-count {
81
+ text-align: right;
82
+ padding: 0 5px 0 20px;
83
+ }
84
+ table.coverage td.line-coverage {
85
+ text-align: right;
86
+ padding-right: 10px;
87
+ min-width:20px;
88
+ }
89
+
90
+ table.coverage td span.cline-any {
91
+ display: inline-block;
92
+ padding: 0 5px;
93
+ width: 100%;
94
+ }
95
+ .missing-if-branch {
96
+ display: inline-block;
97
+ margin-right: 5px;
98
+ border-radius: 3px;
99
+ position: relative;
100
+ padding: 0 4px;
101
+ background: #333;
102
+ color: yellow;
103
+ }
104
+
105
+ .skip-if-branch {
106
+ display: none;
107
+ margin-right: 10px;
108
+ position: relative;
109
+ padding: 0 4px;
110
+ background: #ccc;
111
+ color: white;
112
+ }
113
+ .missing-if-branch .typ, .skip-if-branch .typ {
114
+ color: inherit !important;
115
+ }
116
+ .coverage-summary {
117
+ border-collapse: collapse;
118
+ width: 100%;
119
+ }
120
+ .coverage-summary tr { border-bottom: 1px solid #bbb; }
121
+ .keyline-all { border: 1px solid #ddd; }
122
+ .coverage-summary td, .coverage-summary th { padding: 10px; }
123
+ .coverage-summary tbody { border: 1px solid #bbb; }
124
+ .coverage-summary td { border-right: 1px solid #bbb; }
125
+ .coverage-summary td:last-child { border-right: none; }
126
+ .coverage-summary th {
127
+ text-align: left;
128
+ font-weight: normal;
129
+ white-space: nowrap;
130
+ }
131
+ .coverage-summary th.file { border-right: none !important; }
132
+ .coverage-summary th.pct { }
133
+ .coverage-summary th.pic,
134
+ .coverage-summary th.abs,
135
+ .coverage-summary td.pct,
136
+ .coverage-summary td.abs { text-align: right; }
137
+ .coverage-summary td.file { white-space: nowrap; }
138
+ .coverage-summary td.pic { min-width: 120px !important; }
139
+ .coverage-summary tfoot td { }
140
+
141
+ .coverage-summary .sorter {
142
+ height: 10px;
143
+ width: 7px;
144
+ display: inline-block;
145
+ margin-left: 0.5em;
146
+ background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
147
+ }
148
+ .coverage-summary .sorted .sorter {
149
+ background-position: 0 -20px;
150
+ }
151
+ .coverage-summary .sorted-desc .sorter {
152
+ background-position: 0 -10px;
153
+ }
154
+ .status-line { height: 10px; }
155
+ /* yellow */
156
+ .cbranch-no { background: yellow !important; color: #111; }
157
+ /* dark red */
158
+ .red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
159
+ .low .chart { border:1px solid #C21F39 }
160
+ .highlighted,
161
+ .highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
162
+ background: #C21F39 !important;
163
+ }
164
+ /* medium red */
165
+ .cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
166
+ /* light red */
167
+ .low, .cline-no { background:#FCE1E5 }
168
+ /* light green */
169
+ .high, .cline-yes { background:rgb(230,245,208) }
170
+ /* medium green */
171
+ .cstat-yes { background:rgb(161,215,106) }
172
+ /* dark green */
173
+ .status-line.high, .high .cover-fill { background:rgb(77,146,33) }
174
+ .high .chart { border:1px solid rgb(77,146,33) }
175
+ /* dark yellow (gold) */
176
+ .status-line.medium, .medium .cover-fill { background: #f9cd0b; }
177
+ .medium .chart { border:1px solid #f9cd0b; }
178
+ /* light yellow */
179
+ .medium { background: #fff4c2; }
180
+
181
+ .cstat-skip { background: #ddd; color: #111; }
182
+ .fstat-skip { background: #ddd; color: #111 !important; }
183
+ .cbranch-skip { background: #ddd !important; color: #111; }
184
+
185
+ span.cline-neutral { background: #eaeaea; }
186
+
187
+ .coverage-summary td.empty {
188
+ opacity: .5;
189
+ padding-top: 4px;
190
+ padding-bottom: 4px;
191
+ line-height: 1;
192
+ color: #888;
193
+ }
194
+
195
+ .cover-fill, .cover-empty {
196
+ display:inline-block;
197
+ height: 12px;
198
+ }
199
+ .chart {
200
+ line-height: 0;
201
+ }
202
+ .cover-empty {
203
+ background: white;
204
+ }
205
+ .cover-full {
206
+ border-right: none !important;
207
+ }
208
+ pre.prettyprint {
209
+ border: none !important;
210
+ padding: 0 !important;
211
+ margin: 0 !important;
212
+ }
213
+ .com { color: #999 !important; }
214
+ .ignore-none { color: #999; font-weight: normal; }
215
+
216
+ .wrapper {
217
+ min-height: 100%;
218
+ height: auto !important;
219
+ height: 100%;
220
+ margin: 0 auto -48px;
221
+ }
222
+ .footer, .push {
223
+ height: 48px;
224
+ }
@@ -0,0 +1,87 @@
1
+ /* eslint-disable */
2
+ var jumpToCode = (function init() {
3
+ // Classes of code we would like to highlight in the file view
4
+ var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
5
+
6
+ // Elements to highlight in the file listing view
7
+ var fileListingElements = ['td.pct.low'];
8
+
9
+ // We don't want to select elements that are direct descendants of another match
10
+ var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
11
+
12
+ // Selector that finds elements on the page to which we can jump
13
+ var selector =
14
+ fileListingElements.join(', ') +
15
+ ', ' +
16
+ notSelector +
17
+ missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
18
+
19
+ // The NodeList of matching elements
20
+ var missingCoverageElements = document.querySelectorAll(selector);
21
+
22
+ var currentIndex;
23
+
24
+ function toggleClass(index) {
25
+ missingCoverageElements
26
+ .item(currentIndex)
27
+ .classList.remove('highlighted');
28
+ missingCoverageElements.item(index).classList.add('highlighted');
29
+ }
30
+
31
+ function makeCurrent(index) {
32
+ toggleClass(index);
33
+ currentIndex = index;
34
+ missingCoverageElements.item(index).scrollIntoView({
35
+ behavior: 'smooth',
36
+ block: 'center',
37
+ inline: 'center'
38
+ });
39
+ }
40
+
41
+ function goToPrevious() {
42
+ var nextIndex = 0;
43
+ if (typeof currentIndex !== 'number' || currentIndex === 0) {
44
+ nextIndex = missingCoverageElements.length - 1;
45
+ } else if (missingCoverageElements.length > 1) {
46
+ nextIndex = currentIndex - 1;
47
+ }
48
+
49
+ makeCurrent(nextIndex);
50
+ }
51
+
52
+ function goToNext() {
53
+ var nextIndex = 0;
54
+
55
+ if (
56
+ typeof currentIndex === 'number' &&
57
+ currentIndex < missingCoverageElements.length - 1
58
+ ) {
59
+ nextIndex = currentIndex + 1;
60
+ }
61
+
62
+ makeCurrent(nextIndex);
63
+ }
64
+
65
+ return function jump(event) {
66
+ if (
67
+ document.getElementById('fileSearch') === document.activeElement &&
68
+ document.activeElement != null
69
+ ) {
70
+ // if we're currently focused on the search input, we don't want to navigate
71
+ return;
72
+ }
73
+
74
+ switch (event.which) {
75
+ case 78: // n
76
+ case 74: // j
77
+ goToNext();
78
+ break;
79
+ case 66: // b
80
+ case 75: // k
81
+ case 80: // p
82
+ goToPrevious();
83
+ break;
84
+ }
85
+ };
86
+ })();
87
+ window.addEventListener('keydown', jumpToCode);
@@ -0,0 +1,84 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <coverage generated="1773024675774" clover="3.2.0">
3
+ <project timestamp="1773024675774" name="All files">
4
+ <metrics statements="69" coveredstatements="56" conditionals="42" coveredconditionals="19" methods="8" coveredmethods="7" elements="119" coveredelements="82" complexity="0" loc="69" ncloc="69" packages="1" files="3" classes="3"/>
5
+ <file name="analyzer.ts" path="/Users/pengcao/projects/aiready/packages/doc-drift/src/analyzer.ts">
6
+ <metrics statements="50" coveredstatements="41" conditionals="32" coveredconditionals="14" methods="2" coveredmethods="2"/>
7
+ <line num="19" count="1" type="stmt"/>
8
+ <line num="20" count="1" type="stmt"/>
9
+ <line num="21" count="1" type="cond" truecount="2" falsecount="0"/>
10
+ <line num="22" count="1" type="stmt"/>
11
+ <line num="24" count="1" type="stmt"/>
12
+ <line num="25" count="1" type="stmt"/>
13
+ <line num="26" count="1" type="stmt"/>
14
+ <line num="27" count="1" type="stmt"/>
15
+ <line num="29" count="1" type="stmt"/>
16
+ <line num="31" count="1" type="stmt"/>
17
+ <line num="32" count="1" type="stmt"/>
18
+ <line num="33" count="2" type="stmt"/>
19
+ <line num="34" count="2" type="stmt"/>
20
+ <line num="42" count="2" type="stmt"/>
21
+ <line num="43" count="2" type="cond" truecount="1" falsecount="1"/>
22
+ <line num="46" count="2" type="stmt"/>
23
+ <line num="47" count="2" type="stmt"/>
24
+ <line num="49" count="0" type="stmt"/>
25
+ <line num="52" count="2" type="stmt"/>
26
+ <line num="54" count="2" type="stmt"/>
27
+ <line num="55" count="2" type="stmt"/>
28
+ <line num="59" count="2" type="stmt"/>
29
+ <line num="61" count="2" type="cond" truecount="2" falsecount="2"/>
30
+ <line num="62" count="2" type="stmt"/>
31
+ <line num="64" count="2" type="cond" truecount="2" falsecount="0"/>
32
+ <line num="65" count="1" type="stmt"/>
33
+ <line num="68" count="1" type="cond" truecount="1" falsecount="1"/>
34
+ <line num="69" count="1" type="stmt"/>
35
+ <line num="70" count="1" type="cond" truecount="1" falsecount="1"/>
36
+ <line num="73" count="1" type="stmt"/>
37
+ <line num="74" count="1" type="stmt"/>
38
+ <line num="77" count="1" type="cond" truecount="3" falsecount="1"/>
39
+ <line num="78" count="1" type="stmt"/>
40
+ <line num="81" count="1" type="stmt"/>
41
+ <line num="82" count="2" type="stmt"/>
42
+ <line num="83" count="2" type="stmt"/>
43
+ <line num="86" count="1" type="cond" truecount="1" falsecount="1"/>
44
+ <line num="87" count="1" type="stmt"/>
45
+ <line num="88" count="1" type="stmt"/>
46
+ <line num="94" count="1" type="stmt"/>
47
+ <line num="99" count="0" type="cond" truecount="0" falsecount="2"/>
48
+ <line num="100" count="0" type="cond" truecount="0" falsecount="2"/>
49
+ <line num="101" count="0" type="stmt"/>
50
+ <line num="106" count="0" type="stmt"/>
51
+ <line num="112" count="0" type="cond" truecount="0" falsecount="2"/>
52
+ <line num="114" count="0" type="cond" truecount="0" falsecount="2"/>
53
+ <line num="130" count="0" type="stmt"/>
54
+ <line num="131" count="0" type="stmt"/>
55
+ <line num="135" count="1" type="stmt"/>
56
+ <line num="142" count="1" type="stmt"/>
57
+ </file>
58
+ <file name="provider.ts" path="/Users/pengcao/projects/aiready/packages/doc-drift/src/provider.ts">
59
+ <metrics statements="14" coveredstatements="10" conditionals="8" coveredconditionals="3" methods="4" coveredmethods="3"/>
60
+ <line num="16" count="1" type="stmt"/>
61
+ <line num="21" count="1" type="stmt"/>
62
+ <line num="24" count="1" type="stmt"/>
63
+ <line num="25" count="1" type="stmt"/>
64
+ <line num="26" count="0" type="stmt"/>
65
+ <line num="27" count="0" type="cond" truecount="0" falsecount="2"/>
66
+ <line num="28" count="0" type="stmt"/>
67
+ <line num="31" count="1" type="stmt"/>
68
+ <line num="32" count="0" type="stmt"/>
69
+ <line num="39" count="1" type="stmt"/>
70
+ <line num="52" count="1" type="stmt"/>
71
+ <line num="53" count="1" type="cond" truecount="1" falsecount="1"/>
72
+ <line num="55" count="1" type="stmt"/>
73
+ <line num="64" count="1" type="stmt"/>
74
+ </file>
75
+ <file name="scoring.ts" path="/Users/pengcao/projects/aiready/packages/doc-drift/src/scoring.ts">
76
+ <metrics statements="5" coveredstatements="5" conditionals="2" coveredconditionals="2" methods="2" coveredmethods="2"/>
77
+ <line num="11" count="2" type="stmt"/>
78
+ <line num="14" count="2" type="stmt"/>
79
+ <line num="21" count="2" type="stmt"/>
80
+ <line num="40" count="6" type="stmt"/>
81
+ <line num="46" count="2" type="stmt"/>
82
+ </file>
83
+ </project>
84
+ </coverage>
@@ -0,0 +1,4 @@
1
+ {"/Users/pengcao/projects/aiready/packages/doc-drift/src/analyzer.ts": {"path":"/Users/pengcao/projects/aiready/packages/doc-drift/src/analyzer.ts","statementMap":{"0":{"start":{"line":19,"column":16},"end":{"line":19,"column":null}},"1":{"start":{"line":20,"column":34},"end":{"line":20,"column":null}},"2":{"start":{"line":21,"column":22},"end":{"line":21,"column":null}},"3":{"start":{"line":22,"column":23},"end":{"line":22,"column":null}},"4":{"start":{"line":24,"column":27},"end":{"line":24,"column":null}},"5":{"start":{"line":25,"column":21},"end":{"line":25,"column":null}},"6":{"start":{"line":26,"column":25},"end":{"line":26,"column":null}},"7":{"start":{"line":27,"column":31},"end":{"line":27,"column":null}},"8":{"start":{"line":29,"column":14},"end":{"line":29,"column":null}},"9":{"start":{"line":31,"column":18},"end":{"line":31,"column":null}},"10":{"start":{"line":32,"column":2},"end":{"line":133,"column":null}},"11":{"start":{"line":33,"column":4},"end":{"line":33,"column":null}},"12":{"start":{"line":34,"column":4},"end":{"line":40,"column":null}},"13":{"start":{"line":42,"column":10},"end":{"line":42,"column":null}},"14":{"start":{"line":43,"column":4},"end":{"line":43,"column":null}},"15":{"start":{"line":43,"column":17},"end":{"line":43,"column":null}},"16":{"start":{"line":46,"column":4},"end":{"line":50,"column":null}},"17":{"start":{"line":47,"column":6},"end":{"line":47,"column":null}},"18":{"start":{"line":49,"column":6},"end":{"line":49,"column":null}},"19":{"start":{"line":52,"column":4},"end":{"line":132,"column":null}},"20":{"start":{"line":54,"column":6},"end":{"line":54,"column":null}},"21":{"start":{"line":55,"column":26},"end":{"line":55,"column":null}},"22":{"start":{"line":59,"column":6},"end":{"line":128,"column":null}},"23":{"start":{"line":61,"column":8},"end":{"line":127,"column":null}},"24":{"start":{"line":62,"column":10},"end":{"line":62,"column":null}},"25":{"start":{"line":64,"column":10},"end":{"line":126,"column":null}},"26":{"start":{"line":65,"column":12},"end":{"line":65,"column":null}},"27":{"start":{"line":68,"column":12},"end":{"line":71,"column":null}},"28":{"start":{"line":69,"column":28},"end":{"line":69,"column":null}},"29":{"start":{"line":70,"column":14},"end":{"line":70,"column":null}},"30":{"start":{"line":70,"column":30},"end":{"line":70,"column":null}},"31":{"start":{"line":73,"column":24},"end":{"line":73,"column":null}},"32":{"start":{"line":74,"column":31},"end":{"line":74,"column":null}},"33":{"start":{"line":77,"column":12},"end":{"line":96,"column":null}},"34":{"start":{"line":78,"column":29},"end":{"line":78,"column":null}},"35":{"start":{"line":81,"column":36},"end":{"line":84,"column":null}},"36":{"start":{"line":82,"column":30},"end":{"line":82,"column":null}},"37":{"start":{"line":83,"column":16},"end":{"line":83,"column":null}},"38":{"start":{"line":86,"column":14},"end":{"line":95,"column":null}},"39":{"start":{"line":87,"column":16},"end":{"line":87,"column":null}},"40":{"start":{"line":88,"column":16},"end":{"line":93,"column":null}},"41":{"start":{"line":94,"column":16},"end":{"line":94,"column":null}},"42":{"start":{"line":99,"column":12},"end":{"line":125,"column":null}},"43":{"start":{"line":100,"column":14},"end":{"line":102,"column":null}},"44":{"start":{"line":101,"column":16},"end":{"line":101,"column":null}},"45":{"start":{"line":106,"column":20},"end":{"line":110,"column":null}},"46":{"start":{"line":112,"column":14},"end":{"line":124,"column":null}},"47":{"start":{"line":114,"column":16},"end":{"line":120,"column":null}},"48":{"start":{"line":130,"column":6},"end":{"line":130,"column":null}},"49":{"start":{"line":131,"column":6},"end":{"line":131,"column":null}},"50":{"start":{"line":135,"column":8},"end":{"line":140,"column":null}},"51":{"start":{"line":142,"column":2},"end":{"line":157,"column":null}}},"fnMap":{"0":{"name":"analyzeDocDrift","decl":{"start":{"line":15,"column":22},"end":{"line":15,"column":null}},"loc":{"start":{"line":17,"column":27},"end":{"line":158,"column":null}},"line":17},"1":{"name":"(anonymous_1)","decl":{"start":{"line":81,"column":50},"end":{"line":81,"column":51}},"loc":{"start":{"line":81,"column":57},"end":{"line":84,"column":15}},"line":81}},"branchMap":{"0":{"loc":{"start":{"line":21,"column":22},"end":{"line":21,"column":null}},"type":"binary-expr","locations":[{"start":{"line":21,"column":22},"end":{"line":21,"column":45}},{"start":{"line":21,"column":45},"end":{"line":21,"column":null}}],"line":21},"1":{"loc":{"start":{"line":43,"column":4},"end":{"line":43,"column":null}},"type":"if","locations":[{"start":{"line":43,"column":4},"end":{"line":43,"column":null}},{"start":{},"end":{}}],"line":43},"2":{"loc":{"start":{"line":61,"column":8},"end":{"line":127,"column":null}},"type":"if","locations":[{"start":{"line":61,"column":8},"end":{"line":127,"column":null}},{"start":{},"end":{}}],"line":61},"3":{"loc":{"start":{"line":61,"column":12},"end":{"line":61,"column":61}},"type":"binary-expr","locations":[{"start":{"line":61,"column":12},"end":{"line":61,"column":39}},{"start":{"line":61,"column":39},"end":{"line":61,"column":61}}],"line":61},"4":{"loc":{"start":{"line":64,"column":10},"end":{"line":126,"column":null}},"type":"if","locations":[{"start":{"line":64,"column":10},"end":{"line":126,"column":null}},{"start":{"line":72,"column":17},"end":{"line":126,"column":null}}],"line":64},"5":{"loc":{"start":{"line":68,"column":12},"end":{"line":71,"column":null}},"type":"if","locations":[{"start":{"line":68,"column":12},"end":{"line":71,"column":null}},{"start":{},"end":{}}],"line":68},"6":{"loc":{"start":{"line":70,"column":14},"end":{"line":70,"column":null}},"type":"if","locations":[{"start":{"line":70,"column":14},"end":{"line":70,"column":null}},{"start":{},"end":{}}],"line":70},"7":{"loc":{"start":{"line":77,"column":12},"end":{"line":96,"column":null}},"type":"if","locations":[{"start":{"line":77,"column":12},"end":{"line":96,"column":null}},{"start":{},"end":{}}],"line":77},"8":{"loc":{"start":{"line":77,"column":16},"end":{"line":77,"column":59}},"type":"binary-expr","locations":[{"start":{"line":77,"column":16},"end":{"line":77,"column":43}},{"start":{"line":77,"column":43},"end":{"line":77,"column":59}}],"line":77},"9":{"loc":{"start":{"line":86,"column":14},"end":{"line":95,"column":null}},"type":"if","locations":[{"start":{"line":86,"column":14},"end":{"line":95,"column":null}},{"start":{},"end":{}}],"line":86},"10":{"loc":{"start":{"line":92,"column":42},"end":{"line":92,"column":67}},"type":"binary-expr","locations":[{"start":{"line":92,"column":42},"end":{"line":92,"column":65}},{"start":{"line":92,"column":65},"end":{"line":92,"column":67}}],"line":92},"11":{"loc":{"start":{"line":99,"column":12},"end":{"line":125,"column":null}},"type":"if","locations":[{"start":{"line":99,"column":12},"end":{"line":125,"column":null}},{"start":{},"end":{}}],"line":99},"12":{"loc":{"start":{"line":100,"column":14},"end":{"line":102,"column":null}},"type":"if","locations":[{"start":{"line":100,"column":14},"end":{"line":102,"column":null}},{"start":{},"end":{}}],"line":100},"13":{"loc":{"start":{"line":112,"column":14},"end":{"line":124,"column":null}},"type":"if","locations":[{"start":{"line":112,"column":14},"end":{"line":124,"column":null}},{"start":{},"end":{}}],"line":112},"14":{"loc":{"start":{"line":114,"column":16},"end":{"line":120,"column":null}},"type":"if","locations":[{"start":{"line":114,"column":16},"end":{"line":120,"column":null}},{"start":{},"end":{}}],"line":114},"15":{"loc":{"start":{"line":115,"column":18},"end":{"line":116,"column":null}},"type":"binary-expr","locations":[{"start":{"line":115,"column":18},"end":{"line":115,"column":null}},{"start":{"line":116,"column":18},"end":{"line":116,"column":null}}],"line":115}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":2,"12":2,"13":2,"14":2,"15":0,"16":2,"17":2,"18":0,"19":2,"20":2,"21":2,"22":2,"23":2,"24":2,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":2,"37":2,"38":1,"39":1,"40":1,"41":1,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":1,"51":1},"f":{"0":1,"1":2},"b":{"0":[1,1],"1":[0,2],"2":[2,0],"3":[2,0],"4":[1,1],"5":[1,0],"6":[1,0],"7":[1,0],"8":[1,1],"9":[1,0],"10":[1,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0]},"meta":{"lastBranch":16,"lastFunction":2,"lastStatement":52,"seen":{"f:15:22:15:Infinity":0,"s:19:16:19:Infinity":0,"s:20:34:20:Infinity":1,"s:21:22:21:Infinity":2,"b:21:22:21:45:21:45:21:Infinity":0,"s:22:23:22:Infinity":3,"s:24:27:24:Infinity":4,"s:25:21:25:Infinity":5,"s:26:25:26:Infinity":6,"s:27:31:27:Infinity":7,"s:29:14:29:Infinity":8,"s:31:18:31:Infinity":9,"s:32:2:133:Infinity":10,"s:33:4:33:Infinity":11,"s:34:4:40:Infinity":12,"s:42:10:42:Infinity":13,"b:43:4:43:Infinity:undefined:undefined:undefined:undefined":1,"s:43:4:43:Infinity":14,"s:43:17:43:Infinity":15,"s:46:4:50:Infinity":16,"s:47:6:47:Infinity":17,"s:49:6:49:Infinity":18,"s:52:4:132:Infinity":19,"s:54:6:54:Infinity":20,"s:55:26:55:Infinity":21,"s:59:6:128:Infinity":22,"b:61:8:127:Infinity:undefined:undefined:undefined:undefined":2,"s:61:8:127:Infinity":23,"b:61:12:61:39:61:39:61:61":3,"s:62:10:62:Infinity":24,"b:64:10:126:Infinity:72:17:126:Infinity":4,"s:64:10:126:Infinity":25,"s:65:12:65:Infinity":26,"b:68:12:71:Infinity:undefined:undefined:undefined:undefined":5,"s:68:12:71:Infinity":27,"s:69:28:69:Infinity":28,"b:70:14:70:Infinity:undefined:undefined:undefined:undefined":6,"s:70:14:70:Infinity":29,"s:70:30:70:Infinity":30,"s:73:24:73:Infinity":31,"s:74:31:74:Infinity":32,"b:77:12:96:Infinity:undefined:undefined:undefined:undefined":7,"s:77:12:96:Infinity":33,"b:77:16:77:43:77:43:77:59":8,"s:78:29:78:Infinity":34,"s:81:36:84:Infinity":35,"f:81:50:81:51":1,"s:82:30:82:Infinity":36,"s:83:16:83:Infinity":37,"b:86:14:95:Infinity:undefined:undefined:undefined:undefined":9,"s:86:14:95:Infinity":38,"s:87:16:87:Infinity":39,"s:88:16:93:Infinity":40,"b:92:42:92:65:92:65:92:67":10,"s:94:16:94:Infinity":41,"b:99:12:125:Infinity:undefined:undefined:undefined:undefined":11,"s:99:12:125:Infinity":42,"b:100:14:102:Infinity:undefined:undefined:undefined:undefined":12,"s:100:14:102:Infinity":43,"s:101:16:101:Infinity":44,"s:106:20:110:Infinity":45,"b:112:14:124:Infinity:undefined:undefined:undefined:undefined":13,"s:112:14:124:Infinity":46,"b:114:16:120:Infinity:undefined:undefined:undefined:undefined":14,"s:114:16:120:Infinity":47,"b:115:18:115:Infinity:116:18:116:Infinity":15,"s:130:6:130:Infinity":48,"s:131:6:131:Infinity":49,"s:135:8:140:Infinity":50,"s:142:2:157:Infinity":51}}}
2
+ ,"/Users/pengcao/projects/aiready/packages/doc-drift/src/provider.ts": {"path":"/Users/pengcao/projects/aiready/packages/doc-drift/src/provider.ts","statementMap":{"0":{"start":{"line":16,"column":46},"end":{"line":74,"column":null}},"1":{"start":{"line":21,"column":19},"end":{"line":21,"column":null}},"2":{"start":{"line":24,"column":26},"end":{"line":24,"column":null}},"3":{"start":{"line":25,"column":4},"end":{"line":29,"column":null}},"4":{"start":{"line":26,"column":19},"end":{"line":26,"column":null}},"5":{"start":{"line":27,"column":6},"end":{"line":27,"column":null}},"6":{"start":{"line":27,"column":36},"end":{"line":27,"column":null}},"7":{"start":{"line":28,"column":6},"end":{"line":28,"column":null}},"8":{"start":{"line":31,"column":38},"end":{"line":37,"column":null}},"9":{"start":{"line":32,"column":31},"end":{"line":36,"column":null}},"10":{"start":{"line":39,"column":4},"end":{"line":48,"column":null}},"11":{"start":{"line":52,"column":20},"end":{"line":52,"column":null}},"12":{"start":{"line":53,"column":21},"end":{"line":53,"column":null}},"13":{"start":{"line":55,"column":4},"end":{"line":70,"column":null}},"14":{"start":{"line":64,"column":29},"end":{"line":68,"column":null}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":20,"column":8},"end":{"line":20,"column":16}},"loc":{"start":{"line":20,"column":60},"end":{"line":49,"column":null}},"line":20},"1":{"name":"(anonymous_1)","decl":{"start":{"line":32,"column":6},"end":{"line":32,"column":7}},"loc":{"start":{"line":32,"column":31},"end":{"line":36,"column":null}},"line":32},"2":{"name":"(anonymous_2)","decl":{"start":{"line":51,"column":2},"end":{"line":51,"column":8}},"loc":{"start":{"line":51,"column":70},"end":{"line":71,"column":null}},"line":51},"3":{"name":"(anonymous_3)","decl":{"start":{"line":64,"column":8},"end":{"line":64,"column":9}},"loc":{"start":{"line":64,"column":29},"end":{"line":68,"column":null}},"line":64}},"branchMap":{"0":{"loc":{"start":{"line":27,"column":6},"end":{"line":27,"column":null}},"type":"if","locations":[{"start":{"line":27,"column":6},"end":{"line":27,"column":null}},{"start":{},"end":{}}],"line":27},"1":{"loc":{"start":{"line":53,"column":21},"end":{"line":53,"column":null}},"type":"binary-expr","locations":[{"start":{"line":53,"column":21},"end":{"line":53,"column":57}},{"start":{"line":53,"column":57},"end":{"line":53,"column":null}}],"line":53},"2":{"loc":{"start":{"line":57,"column":13},"end":{"line":57,"column":null}},"type":"binary-expr","locations":[{"start":{"line":57,"column":13},"end":{"line":57,"column":30}},{"start":{"line":57,"column":30},"end":{"line":57,"column":null}}],"line":57},"3":{"loc":{"start":{"line":63,"column":24},"end":{"line":63,"column":55}},"type":"binary-expr","locations":[{"start":{"line":63,"column":24},"end":{"line":63,"column":51}},{"start":{"line":63,"column":51},"end":{"line":63,"column":55}}],"line":63}},"s":{"0":1,"1":1,"2":1,"3":1,"4":0,"5":0,"6":0,"7":0,"8":1,"9":0,"10":1,"11":1,"12":1,"13":1,"14":1},"f":{"0":1,"1":0,"2":1,"3":1},"b":{"0":[0,0],"1":[1,0],"2":[1,0],"3":[1,0]},"meta":{"lastBranch":4,"lastFunction":4,"lastStatement":15,"seen":{"s:16:46:74:Infinity":0,"f:20:8:20:16":0,"s:21:19:21:Infinity":1,"s:24:26:24:Infinity":2,"s:25:4:29:Infinity":3,"s:26:19:26:Infinity":4,"b:27:6:27:Infinity:undefined:undefined:undefined:undefined":0,"s:27:6:27:Infinity":5,"s:27:36:27:Infinity":6,"s:28:6:28:Infinity":7,"s:31:38:37:Infinity":8,"f:32:6:32:7":1,"s:32:31:36:Infinity":9,"s:39:4:48:Infinity":10,"f:51:2:51:8":2,"s:52:20:52:Infinity":11,"s:53:21:53:Infinity":12,"b:53:21:53:57:53:57:53:Infinity":1,"s:55:4:70:Infinity":13,"b:57:13:57:30:57:30:57:Infinity":2,"b:63:24:63:51:63:51:63:55":3,"f:64:8:64:9":3,"s:64:29:68:Infinity":14}}}
3
+ ,"/Users/pengcao/projects/aiready/packages/doc-drift/src/scoring.ts": {"path":"/Users/pengcao/projects/aiready/packages/doc-drift/src/scoring.ts","statementMap":{"0":{"start":{"line":11,"column":31},"end":{"line":11,"column":null}},"1":{"start":{"line":14,"column":8},"end":{"line":19,"column":null}},"2":{"start":{"line":21,"column":48},"end":{"line":37,"column":null}},"3":{"start":{"line":40,"column":4},"end":{"line":44,"column":null}},"4":{"start":{"line":40,"column":45},"end":{"line":44,"column":6}},"5":{"start":{"line":46,"column":2},"end":{"line":55,"column":null}}},"fnMap":{"0":{"name":"calculateDocDriftScore","decl":{"start":{"line":8,"column":16},"end":{"line":8,"column":null}},"loc":{"start":{"line":10,"column":21},"end":{"line":56,"column":null}},"line":10},"1":{"name":"(anonymous_1)","decl":{"start":{"line":40,"column":35},"end":{"line":40,"column":36}},"loc":{"start":{"line":40,"column":45},"end":{"line":44,"column":6}},"line":40}},"branchMap":{"0":{"loc":{"start":{"line":43,"column":16},"end":{"line":43,"column":null}},"type":"cond-expr","locations":[{"start":{"line":43,"column":37},"end":{"line":43,"column":46}},{"start":{"line":43,"column":46},"end":{"line":43,"column":null}}],"line":43}},"s":{"0":2,"1":2,"2":2,"3":2,"4":6,"5":2},"f":{"0":2,"1":6},"b":{"0":[3,3]},"meta":{"lastBranch":1,"lastFunction":2,"lastStatement":6,"seen":{"f:8:16:8:Infinity":0,"s:11:31:11:Infinity":0,"s:14:8:19:Infinity":1,"s:21:48:37:Infinity":2,"s:40:4:44:Infinity":3,"f:40:35:40:36":1,"s:40:45:44:6":4,"b:43:37:43:46:43:46:43:Infinity":0,"s:46:2:55:Infinity":5}}}
4
+ }
Binary file
@@ -0,0 +1,146 @@
1
+
2
+ <!doctype html>
3
+ <html lang="en">
4
+
5
+ <head>
6
+ <title>Code coverage report for All files</title>
7
+ <meta charset="utf-8" />
8
+ <link rel="stylesheet" href="prettify.css" />
9
+ <link rel="stylesheet" href="base.css" />
10
+ <link rel="shortcut icon" type="image/x-icon" href="favicon.png" />
11
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
12
+ <style type='text/css'>
13
+ .coverage-summary .sorter {
14
+ background-image: url(sort-arrow-sprite.png);
15
+ }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <div class='wrapper'>
21
+ <div class='pad1'>
22
+ <h1>All files</h1>
23
+ <div class='clearfix'>
24
+
25
+ <div class='fl pad1y space-right2'>
26
+ <span class="strong">79.45% </span>
27
+ <span class="quiet">Statements</span>
28
+ <span class='fraction'>58/73</span>
29
+ </div>
30
+
31
+
32
+ <div class='fl pad1y space-right2'>
33
+ <span class="strong">45.23% </span>
34
+ <span class="quiet">Branches</span>
35
+ <span class='fraction'>19/42</span>
36
+ </div>
37
+
38
+
39
+ <div class='fl pad1y space-right2'>
40
+ <span class="strong">87.5% </span>
41
+ <span class="quiet">Functions</span>
42
+ <span class='fraction'>7/8</span>
43
+ </div>
44
+
45
+
46
+ <div class='fl pad1y space-right2'>
47
+ <span class="strong">81.15% </span>
48
+ <span class="quiet">Lines</span>
49
+ <span class='fraction'>56/69</span>
50
+ </div>
51
+
52
+
53
+ </div>
54
+ <p class="quiet">
55
+ Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
56
+ </p>
57
+ <template id="filterTemplate">
58
+ <div class="quiet">
59
+ Filter:
60
+ <input type="search" id="fileSearch">
61
+ </div>
62
+ </template>
63
+ </div>
64
+ <div class='status-line medium'></div>
65
+ <div class="pad1">
66
+ <table class="coverage-summary">
67
+ <thead>
68
+ <tr>
69
+ <th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
70
+ <th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
71
+ <th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
72
+ <th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
73
+ <th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
74
+ <th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
75
+ <th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
76
+ <th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
77
+ <th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
78
+ <th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
79
+ </tr>
80
+ </thead>
81
+ <tbody><tr>
82
+ <td class="file high" data-value="analyzer.ts"><a href="analyzer.ts.html">analyzer.ts</a></td>
83
+ <td data-value="80.76" class="pic high">
84
+ <div class="chart"><div class="cover-fill" style="width: 80%"></div><div class="cover-empty" style="width: 20%"></div></div>
85
+ </td>
86
+ <td data-value="80.76" class="pct high">80.76%</td>
87
+ <td data-value="52" class="abs high">42/52</td>
88
+ <td data-value="43.75" class="pct low">43.75%</td>
89
+ <td data-value="32" class="abs low">14/32</td>
90
+ <td data-value="100" class="pct high">100%</td>
91
+ <td data-value="2" class="abs high">2/2</td>
92
+ <td data-value="82" class="pct high">82%</td>
93
+ <td data-value="50" class="abs high">41/50</td>
94
+ </tr>
95
+
96
+ <tr>
97
+ <td class="file medium" data-value="provider.ts"><a href="provider.ts.html">provider.ts</a></td>
98
+ <td data-value="66.66" class="pic medium">
99
+ <div class="chart"><div class="cover-fill" style="width: 66%"></div><div class="cover-empty" style="width: 34%"></div></div>
100
+ </td>
101
+ <td data-value="66.66" class="pct medium">66.66%</td>
102
+ <td data-value="15" class="abs medium">10/15</td>
103
+ <td data-value="37.5" class="pct low">37.5%</td>
104
+ <td data-value="8" class="abs low">3/8</td>
105
+ <td data-value="75" class="pct medium">75%</td>
106
+ <td data-value="4" class="abs medium">3/4</td>
107
+ <td data-value="71.42" class="pct medium">71.42%</td>
108
+ <td data-value="14" class="abs medium">10/14</td>
109
+ </tr>
110
+
111
+ <tr>
112
+ <td class="file high" data-value="scoring.ts"><a href="scoring.ts.html">scoring.ts</a></td>
113
+ <td data-value="100" class="pic high">
114
+ <div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
115
+ </td>
116
+ <td data-value="100" class="pct high">100%</td>
117
+ <td data-value="6" class="abs high">6/6</td>
118
+ <td data-value="100" class="pct high">100%</td>
119
+ <td data-value="2" class="abs high">2/2</td>
120
+ <td data-value="100" class="pct high">100%</td>
121
+ <td data-value="2" class="abs high">2/2</td>
122
+ <td data-value="100" class="pct high">100%</td>
123
+ <td data-value="5" class="abs high">5/5</td>
124
+ </tr>
125
+
126
+ </tbody>
127
+ </table>
128
+ </div>
129
+ <div class='push'></div><!-- for sticky footer -->
130
+ </div><!-- /wrapper -->
131
+ <div class='footer quiet pad2 space-top1 center small'>
132
+ Code coverage generated by
133
+ <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
134
+ at 2026-03-09T02:51:15.767Z
135
+ </div>
136
+ <script src="prettify.js"></script>
137
+ <script>
138
+ window.onload = function () {
139
+ prettyPrint();
140
+ };
141
+ </script>
142
+ <script src="sorter.js"></script>
143
+ <script src="block-navigation.js"></script>
144
+ </body>
145
+ </html>
146
+
@@ -0,0 +1 @@
1
+ .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}