wtt-core 0.1.15 → 0.1.16

Sign up to get free protection for your applications and to get access to all the features.
data/coverage/index.html CHANGED
@@ -14,27 +14,27 @@
14
14
  <img src="./assets/0.10.0/loading.gif" alt="loading"/>
15
15
  </div>
16
16
  <div id="wrapper" style="display:none;">
17
- <div class="timestamp">Generated <abbr class="timeago" title="2016-01-18T13:00:39-05:00">2016-01-18T13:00:39-05:00</abbr></div>
17
+ <div class="timestamp">Generated <abbr class="timeago" title="2016-01-18T15:48:39-05:00">2016-01-18T15:48:39-05:00</abbr></div>
18
18
  <ul class="group_tabs"></ul>
19
19
 
20
20
  <div id="content">
21
21
  <div class="file_list_container" id="AllFiles">
22
22
  <h2>
23
23
  <span class="group_name">All Files</span>
24
- (<span class="covered_percent"><span class="yellow">86.65%</span></span>
24
+ (<span class="covered_percent"><span class="yellow">88.67%</span></span>
25
25
  covered at
26
26
  <span class="covered_strength">
27
27
  <span class="green">
28
- 6.36
28
+ 2212.62
29
29
  </span>
30
30
  </span> hits/line)
31
31
  </h2>
32
32
  <a name="AllFiles"></a>
33
33
  <div>
34
34
  <b>14</b> files in total.
35
- <b>412</b> relevant lines.
36
- <span class="green"><b>357</b> lines covered</span> and
37
- <span class="red"><b>55</b> lines missed </span>
35
+ <b>415</b> relevant lines.
36
+ <span class="green"><b>368</b> lines covered</span> and
37
+ <span class="red"><b>47</b> lines missed </span>
38
38
  </div>
39
39
  <table class="file_list">
40
40
  <thead>
@@ -51,27 +51,27 @@
51
51
  <tbody>
52
52
 
53
53
  <tr>
54
- <td class="strong"><a href="#ac9c7b56cad7b6232ef2b0c1bc3f7d0ae5bc258a" class="src_link" title="lib/wtt.rb">lib/wtt.rb</a></td>
54
+ <td class="strong"><a href="#924c7401fcef2c09777464e5a98630d8a78c6460" class="src_link" title="lib/wtt.rb">lib/wtt.rb</a></td>
55
55
  <td class="green strong">100.0 %</td>
56
- <td>97</td>
56
+ <td>95</td>
57
57
  <td>56</td>
58
58
  <td>56</td>
59
59
  <td>0</td>
60
- <td>4.9</td>
60
+ <td>2854.7</td>
61
61
  </tr>
62
62
 
63
63
  <tr>
64
- <td class="strong"><a href="#3c6cebf77cff582ce5acc5d116d92ec4433f4525" class="src_link" title="lib/wtt/core.rb">lib/wtt/core.rb</a></td>
65
- <td class="red strong">45.95 %</td>
66
- <td>57</td>
67
- <td>37</td>
68
- <td>17</td>
64
+ <td class="strong"><a href="#fb8e9cfaa6f408883b48b309ffaba20340a2f463" class="src_link" title="lib/wtt/core.rb">lib/wtt/core.rb</a></td>
65
+ <td class="red strong">44.44 %</td>
66
+ <td>51</td>
67
+ <td>36</td>
68
+ <td>16</td>
69
69
  <td>20</td>
70
- <td>0.5</td>
70
+ <td>0.4</td>
71
71
  </tr>
72
72
 
73
73
  <tr>
74
- <td class="strong"><a href="#0f86be104d924e90a451c18813cf0fb974c12465" class="src_link" title="lib/wtt/core/anchor_task.rb">lib/wtt/core/anchor_task.rb</a></td>
74
+ <td class="strong"><a href="#47c48157e0cbf7a05f9652074c990137f9eda809" class="src_link" title="lib/wtt/core/anchor_task.rb">lib/wtt/core/anchor_task.rb</a></td>
75
75
  <td class="red strong">50.0 %</td>
76
76
  <td>30</td>
77
77
  <td>16</td>
@@ -81,17 +81,17 @@
81
81
  </tr>
82
82
 
83
83
  <tr>
84
- <td class="strong"><a href="#bf6f9519db6ffd6d541b7a2ab3afe06893fd18d8" class="src_link" title="lib/wtt/core/mapper.rb">lib/wtt/core/mapper.rb</a></td>
84
+ <td class="strong"><a href="#c1fc18d7bb0f4f2331aa5b524ff3cd7475c17984" class="src_link" title="lib/wtt/core/mapper.rb">lib/wtt/core/mapper.rb</a></td>
85
85
  <td class="green strong">100.0 %</td>
86
- <td>138</td>
87
- <td>55</td>
88
- <td>55</td>
86
+ <td>140</td>
87
+ <td>57</td>
88
+ <td>57</td>
89
89
  <td>0</td>
90
- <td>21.5</td>
90
+ <td>23.9</td>
91
91
  </tr>
92
92
 
93
93
  <tr>
94
- <td class="strong"><a href="#e48f004f525a856eaa53666700e19fa233bf0c3e" class="src_link" title="lib/wtt/core/matchers.rb">lib/wtt/core/matchers.rb</a></td>
94
+ <td class="strong"><a href="#cdbaf244cd6dc482ed9d740a0a5ecdb750286ab8" class="src_link" title="lib/wtt/core/matchers.rb">lib/wtt/core/matchers.rb</a></td>
95
95
  <td class="green strong">100.0 %</td>
96
96
  <td>3</td>
97
97
  <td>3</td>
@@ -101,7 +101,7 @@
101
101
  </tr>
102
102
 
103
103
  <tr>
104
- <td class="strong"><a href="#33752e3db82eb4619d7f33683c5f83572ff1735b" class="src_link" title="lib/wtt/core/matchers/exact_matcher.rb">lib/wtt/core/matchers/exact_matcher.rb</a></td>
104
+ <td class="strong"><a href="#2f9b5602f164746b74c969637338649aaf689f94" class="src_link" title="lib/wtt/core/matchers/exact_matcher.rb">lib/wtt/core/matchers/exact_matcher.rb</a></td>
105
105
  <td class="green strong">100.0 %</td>
106
106
  <td>17</td>
107
107
  <td>8</td>
@@ -111,17 +111,17 @@
111
111
  </tr>
112
112
 
113
113
  <tr>
114
- <td class="strong"><a href="#17847d98a5aefc184ba23513aca119364daa93d9" class="src_link" title="lib/wtt/core/matchers/fuzzy_matcher.rb">lib/wtt/core/matchers/fuzzy_matcher.rb</a></td>
114
+ <td class="strong"><a href="#31ed6238733780ab64cb908d51b733682ef7c778" class="src_link" title="lib/wtt/core/matchers/fuzzy_matcher.rb">lib/wtt/core/matchers/fuzzy_matcher.rb</a></td>
115
115
  <td class="green strong">100.0 %</td>
116
116
  <td>21</td>
117
117
  <td>10</td>
118
118
  <td>10</td>
119
119
  <td>0</td>
120
- <td>11.1</td>
120
+ <td>15.9</td>
121
121
  </tr>
122
122
 
123
123
  <tr>
124
- <td class="strong"><a href="#8cbec57893e82236b7f868fa650bf8908fb3f617" class="src_link" title="lib/wtt/core/matchers/touch_matcher.rb">lib/wtt/core/matchers/touch_matcher.rb</a></td>
124
+ <td class="strong"><a href="#7051db7ba633b5f87fedcc170a82834063791510" class="src_link" title="lib/wtt/core/matchers/touch_matcher.rb">lib/wtt/core/matchers/touch_matcher.rb</a></td>
125
125
  <td class="green strong">100.0 %</td>
126
126
  <td>17</td>
127
127
  <td>8</td>
@@ -131,7 +131,7 @@
131
131
  </tr>
132
132
 
133
133
  <tr>
134
- <td class="strong"><a href="#bb1b913a3239aa458def81bc122c89482291d2ee" class="src_link" title="lib/wtt/core/meta_data.rb">lib/wtt/core/meta_data.rb</a></td>
134
+ <td class="strong"><a href="#26d0557d736d0843dfbe58b61ca419aae83af8e5" class="src_link" title="lib/wtt/core/meta_data.rb">lib/wtt/core/meta_data.rb</a></td>
135
135
  <td class="green strong">100.0 %</td>
136
136
  <td>42</td>
137
137
  <td>20</td>
@@ -141,7 +141,7 @@
141
141
  </tr>
142
142
 
143
143
  <tr>
144
- <td class="strong"><a href="#4b4f11a5fca5fffd7e7db016aec1c81edff33027" class="src_link" title="lib/wtt/core/paths.rb">lib/wtt/core/paths.rb</a></td>
144
+ <td class="strong"><a href="#26593f1fe32592d12e81238a562778ccbfa875ff" class="src_link" title="lib/wtt/core/paths.rb">lib/wtt/core/paths.rb</a></td>
145
145
  <td class="green strong">100.0 %</td>
146
146
  <td>21</td>
147
147
  <td>10</td>
@@ -151,19 +151,19 @@
151
151
  </tr>
152
152
 
153
153
  <tr>
154
- <td class="strong"><a href="#1f2f7d67a13df7960c05355bf25fe3217923859c" class="src_link" title="lib/wtt/core/selector.rb">lib/wtt/core/selector.rb</a></td>
155
- <td class="green strong">95.65 %</td>
156
- <td>148</td>
157
- <td>69</td>
158
- <td>66</td>
154
+ <td class="strong"><a href="#35444bdc7d836bc0b5cbb515552eccf22ce283cd" class="src_link" title="lib/wtt/core/selector.rb">lib/wtt/core/selector.rb</a></td>
155
+ <td class="green strong">95.77 %</td>
156
+ <td>150</td>
157
+ <td>71</td>
158
+ <td>68</td>
159
159
  <td>3</td>
160
- <td>8.2</td>
160
+ <td>12.1</td>
161
161
  </tr>
162
162
 
163
163
  <tr>
164
- <td class="strong"><a href="#e761bfd030f224e683498eb5846e3cfae6265a8e" class="src_link" title="lib/wtt/core/storage.rb">lib/wtt/core/storage.rb</a></td>
164
+ <td class="strong"><a href="#ed31007e349a82b5423f069161b520d00fb0477d" class="src_link" title="lib/wtt/core/storage.rb">lib/wtt/core/storage.rb</a></td>
165
165
  <td class="red strong">65.12 %</td>
166
- <td>89</td>
166
+ <td>86</td>
167
167
  <td>43</td>
168
168
  <td>28</td>
169
169
  <td>15</td>
@@ -171,23 +171,23 @@
171
171
  </tr>
172
172
 
173
173
  <tr>
174
- <td class="strong"><a href="#e90fcf17ccfdbc17e959405364dcdd1a4e65977b" class="src_link" title="lib/wtt/core/trace_service.rb">lib/wtt/core/trace_service.rb</a></td>
175
- <td class="yellow strong">84.0 %</td>
174
+ <td class="strong"><a href="#77a24ed8ec73ced55c076fbee453a8ebc41d4c48" class="src_link" title="lib/wtt/core/trace_service.rb">lib/wtt/core/trace_service.rb</a></td>
175
+ <td class="green strong">100.0 %</td>
176
176
  <td>47</td>
177
177
  <td>25</td>
178
- <td>21</td>
179
- <td>4</td>
180
- <td>2.2</td>
178
+ <td>25</td>
179
+ <td>0</td>
180
+ <td>30183.0</td>
181
181
  </tr>
182
182
 
183
183
  <tr>
184
- <td class="strong"><a href="#ea64ceaff018f098a50f8262c943c46593657c13" class="src_link" title="lib/wtt/core/tracer.rb">lib/wtt/core/tracer.rb</a></td>
185
- <td class="green strong">90.38 %</td>
186
- <td>95</td>
184
+ <td class="strong"><a href="#e5b5463381db9cd184362202d23ac9e2746c1342" class="src_link" title="lib/wtt/core/tracer.rb">lib/wtt/core/tracer.rb</a></td>
185
+ <td class="green strong">98.08 %</td>
186
+ <td>93</td>
187
187
  <td>52</td>
188
- <td>47</td>
189
- <td>5</td>
190
- <td>4.6</td>
188
+ <td>51</td>
189
+ <td>1</td>
190
+ <td>23.7</td>
191
191
  </tr>
192
192
 
193
193
  </tbody>
@@ -206,7 +206,7 @@
206
206
 
207
207
  <div class="source_files">
208
208
 
209
- <div class="source_table" id="ac9c7b56cad7b6232ef2b0c1bc3f7d0ae5bc258a">
209
+ <div class="source_table" id="924c7401fcef2c09777464e5a98630d8a78c6460">
210
210
  <div class="header">
211
211
  <h3>lib/wtt.rb</h3>
212
212
  <h4><span class="green">100.0 %</span> covered</h4>
@@ -376,8 +376,8 @@
376
376
  <code class="ruby"> def self.configuration</code>
377
377
  </li>
378
378
 
379
- <li class="covered" data-hits="102" data-linenumber="27">
380
- <span class="hits">102</span>
379
+ <li class="covered" data-hits="159694" data-linenumber="27">
380
+ <span class="hits">159694</span>
381
381
 
382
382
  <code class="ruby"> self.config ||= Configuration.new</code>
383
383
  </li>
@@ -409,13 +409,13 @@
409
409
  <li class="covered" data-hits="26" data-linenumber="32">
410
410
  <span class="hits">26</span>
411
411
 
412
- <code class="ruby"> self.configuration.matcher ||= touch_matcher</code>
412
+ <code class="ruby"> configuration.matcher ||= touch_matcher</code>
413
413
  </li>
414
414
 
415
415
  <li class="covered" data-hits="26" data-linenumber="33">
416
416
  <span class="hits">26</span>
417
417
 
418
- <code class="ruby"> self.configuration.default_reject_filters if self.configuration.use_default_filters</code>
418
+ <code class="ruby"> configuration.default_reject_filters if configuration.use_default_filters</code>
419
419
  </li>
420
420
 
421
421
  <li class="never" data-hits="" data-linenumber="34">
@@ -439,13 +439,13 @@
439
439
  <li class="covered" data-hits="2" data-linenumber="37">
440
440
  <span class="hits">2</span>
441
441
 
442
- <code class="ruby"> port = self.configuration.traced_port</code>
442
+ <code class="ruby"> port = configuration.traced_port</code>
443
443
  </li>
444
444
 
445
445
  <li class="covered" data-hits="2" data-linenumber="38">
446
446
  <span class="hits">2</span>
447
447
 
448
- <code class="ruby"> if port &gt; 0 &amp;&amp; self.trace_service.nil?</code>
448
+ <code class="ruby"> if port &gt; 0 &amp;&amp; trace_service.nil?</code>
449
449
  </li>
450
450
 
451
451
  <li class="covered" data-hits="2" data-linenumber="39">
@@ -469,7 +469,7 @@
469
469
  <li class="covered" data-hits="2" data-linenumber="42">
470
470
  <span class="hits">2</span>
471
471
 
472
- <code class="ruby"> self.trace_service</code>
472
+ <code class="ruby"> trace_service</code>
473
473
  </li>
474
474
 
475
475
  <li class="never" data-hits="" data-linenumber="43">
@@ -493,13 +493,13 @@
493
493
  <li class="covered" data-hits="1" data-linenumber="46">
494
494
  <span class="hits">1</span>
495
495
 
496
- <code class="ruby"> unless self.trace_service.nil?</code>
496
+ <code class="ruby"> unless trace_service.nil?</code>
497
497
  </li>
498
498
 
499
499
  <li class="covered" data-hits="1" data-linenumber="47">
500
500
  <span class="hits">1</span>
501
501
 
502
- <code class="ruby"> DRb.remove_server(self.trace_service)</code>
502
+ <code class="ruby"> DRb.remove_server(trace_service)</code>
503
503
  </li>
504
504
 
505
505
  <li class="covered" data-hits="1" data-linenumber="48">
@@ -523,93 +523,93 @@
523
523
  <li class="never" data-hits="" data-linenumber="51">
524
524
 
525
525
 
526
- <code class="ruby"></code>
527
- </li>
528
-
529
- <li class="never" data-hits="" data-linenumber="52">
530
-
531
-
532
526
  <code class="ruby"> end</code>
533
527
  </li>
534
528
 
535
- <li class="never" data-hits="" data-linenumber="53">
529
+ <li class="never" data-hits="" data-linenumber="52">
536
530
 
537
531
 
538
532
  <code class="ruby"></code>
539
533
  </li>
540
534
 
541
- <li class="covered" data-hits="1" data-linenumber="54">
535
+ <li class="covered" data-hits="1" data-linenumber="53">
542
536
  <span class="hits">1</span>
543
537
 
544
538
  <code class="ruby"> def self.exact_matcher</code>
545
539
  </li>
546
540
 
547
- <li class="covered" data-hits="5" data-linenumber="55">
541
+ <li class="covered" data-hits="5" data-linenumber="54">
548
542
  <span class="hits">5</span>
549
543
 
550
544
  <code class="ruby"> Core::Matchers::Exact.new</code>
551
545
  </li>
552
546
 
553
- <li class="never" data-hits="" data-linenumber="56">
547
+ <li class="never" data-hits="" data-linenumber="55">
554
548
 
555
549
 
556
550
  <code class="ruby"> end</code>
557
551
  </li>
558
552
 
559
- <li class="never" data-hits="" data-linenumber="57">
553
+ <li class="never" data-hits="" data-linenumber="56">
560
554
 
561
555
 
562
556
  <code class="ruby"></code>
563
557
  </li>
564
558
 
565
- <li class="covered" data-hits="1" data-linenumber="58">
559
+ <li class="covered" data-hits="1" data-linenumber="57">
566
560
  <span class="hits">1</span>
567
561
 
568
562
  <code class="ruby"> def self.touch_matcher</code>
569
563
  </li>
570
564
 
571
- <li class="covered" data-hits="6" data-linenumber="59">
565
+ <li class="covered" data-hits="6" data-linenumber="58">
572
566
  <span class="hits">6</span>
573
567
 
574
568
  <code class="ruby"> Core::Matchers::Touch.new</code>
575
569
  </li>
576
570
 
577
- <li class="never" data-hits="" data-linenumber="60">
571
+ <li class="never" data-hits="" data-linenumber="59">
578
572
 
579
573
 
580
574
  <code class="ruby"> end</code>
581
575
  </li>
582
576
 
583
- <li class="never" data-hits="" data-linenumber="61">
577
+ <li class="never" data-hits="" data-linenumber="60">
584
578
 
585
579
 
586
580
  <code class="ruby"></code>
587
581
  </li>
588
582
 
589
- <li class="covered" data-hits="1" data-linenumber="62">
583
+ <li class="covered" data-hits="1" data-linenumber="61">
590
584
  <span class="hits">1</span>
591
585
 
592
586
  <code class="ruby"> def self.fuzzy_matcher(spread = 11)</code>
593
587
  </li>
594
588
 
595
- <li class="covered" data-hits="5" data-linenumber="63">
589
+ <li class="covered" data-hits="5" data-linenumber="62">
596
590
  <span class="hits">5</span>
597
591
 
598
592
  <code class="ruby"> Core::Matchers::Fuzzy.new(spread)</code>
599
593
  </li>
600
594
 
601
- <li class="never" data-hits="" data-linenumber="64">
595
+ <li class="never" data-hits="" data-linenumber="63">
602
596
 
603
597
 
604
598
  <code class="ruby"> end</code>
605
599
  </li>
606
600
 
607
- <li class="never" data-hits="" data-linenumber="65">
601
+ <li class="never" data-hits="" data-linenumber="64">
608
602
 
609
603
 
610
604
  <code class="ruby"></code>
611
605
  </li>
612
606
 
607
+ <li class="never" data-hits="" data-linenumber="65">
608
+
609
+
610
+ <code class="ruby"> # Holds all config info fopr WTT</code>
611
+ </li>
612
+
613
613
  <li class="covered" data-hits="1" data-linenumber="66">
614
614
  <span class="hits">1</span>
615
615
 
@@ -748,55 +748,43 @@
748
748
  <code class="ruby"></code>
749
749
  </li>
750
750
 
751
- <li class="never" data-hits="" data-linenumber="89">
752
-
753
-
754
- <code class="ruby"></code>
755
- </li>
756
-
757
- <li class="covered" data-hits="1" data-linenumber="90">
751
+ <li class="covered" data-hits="1" data-linenumber="89">
758
752
  <span class="hits">1</span>
759
753
 
760
754
  <code class="ruby"> def default_reject_filters</code>
761
755
  </li>
762
756
 
763
- <li class="covered" data-hits="1" data-linenumber="91">
757
+ <li class="covered" data-hits="1" data-linenumber="90">
764
758
  <span class="hits">1</span>
765
759
 
766
- <code class="ruby"> @reject_filters.concat( [ /_spec.rb$/, # Reject spec files,</code>
767
- </li>
768
-
769
- <li class="never" data-hits="" data-linenumber="92">
770
-
771
-
772
- <code class="ruby"> /spec\//, # Reject anything in the spec folder or below</code>
760
+ <code class="ruby"> @reject_filters.concat( [/_spec.rb$/, # Reject spec files,</code>
773
761
  </li>
774
762
 
775
- <li class="never" data-hits="" data-linenumber="93">
763
+ <li class="never" data-hits="" data-linenumber="91">
776
764
 
777
765
 
778
- <code class="ruby"> /\/lib\/ruby\/|\/gems\/gems\/|usr\/share\/ruby\// # Reject any Ruby gem/libraries</code>
766
+ <code class="ruby"> %r{spec/}, # Reject anything in the spec folder or below</code>
779
767
  </li>
780
768
 
781
- <li class="never" data-hits="" data-linenumber="94">
769
+ <li class="never" data-hits="" data-linenumber="92">
782
770
 
783
771
 
784
- <code class="ruby"> ])</code>
772
+ <code class="ruby"> %r{/lib/ruby/|/gems/gems/|usr/share/ruby/}]) # Reject any Ruby gem/libraries</code>
785
773
  </li>
786
774
 
787
- <li class="never" data-hits="" data-linenumber="95">
775
+ <li class="never" data-hits="" data-linenumber="93">
788
776
 
789
777
 
790
778
  <code class="ruby"> end</code>
791
779
  </li>
792
780
 
793
- <li class="never" data-hits="" data-linenumber="96">
781
+ <li class="never" data-hits="" data-linenumber="94">
794
782
 
795
783
 
796
784
  <code class="ruby"> end</code>
797
785
  </li>
798
786
 
799
- <li class="never" data-hits="" data-linenumber="97">
787
+ <li class="never" data-hits="" data-linenumber="95">
800
788
 
801
789
 
802
790
  <code class="ruby">end</code>
@@ -806,13 +794,13 @@
806
794
  </pre>
807
795
  </div>
808
796
 
809
- <div class="source_table" id="3c6cebf77cff582ce5acc5d116d92ec4433f4525">
797
+ <div class="source_table" id="fb8e9cfaa6f408883b48b309ffaba20340a2f463">
810
798
  <div class="header">
811
799
  <h3>lib/wtt/core.rb</h3>
812
- <h4><span class="red">45.95 %</span> covered</h4>
800
+ <h4><span class="red">44.44 %</span> covered</h4>
813
801
  <div>
814
- <b>37</b> relevant lines.
815
- <span class="green"><b>17</b> lines covered</span> and
802
+ <b>36</b> relevant lines.
803
+ <span class="green"><b>16</b> lines covered</span> and
816
804
  <span class="red"><b>20</b> lines missed.</span>
817
805
  </div>
818
806
  </div>
@@ -895,268 +883,232 @@
895
883
  <li class="never" data-hits="" data-linenumber="13">
896
884
 
897
885
 
898
- <code class="ruby"></code>
899
- </li>
900
-
901
- <li class="never" data-hits="" data-linenumber="14">
902
-
903
-
904
886
  <code class="ruby"># Top level namespace for What to Test</code>
905
887
  </li>
906
888
 
907
- <li class="covered" data-hits="1" data-linenumber="15">
889
+ <li class="covered" data-hits="1" data-linenumber="14">
908
890
  <span class="hits">1</span>
909
891
 
910
892
  <code class="ruby">module WTT</code>
911
893
  </li>
912
894
 
913
- <li class="never" data-hits="" data-linenumber="16">
895
+ <li class="never" data-hits="" data-linenumber="15">
914
896
 
915
897
 
916
898
  <code class="ruby"> # Functionality core to WTT belongs here</code>
917
899
  </li>
918
900
 
919
- <li class="covered" data-hits="1" data-linenumber="17">
901
+ <li class="covered" data-hits="1" data-linenumber="16">
920
902
  <span class="hits">1</span>
921
903
 
922
904
  <code class="ruby"> module Core</code>
923
905
  </li>
924
906
 
925
- <li class="covered" data-hits="1" data-linenumber="18">
907
+ <li class="covered" data-hits="1" data-linenumber="17">
926
908
  <span class="hits">1</span>
927
909
 
928
910
  <code class="ruby"> def self.create_core_tasks</code>
929
911
  </li>
930
912
 
931
- <li class="missed" data-hits="0" data-linenumber="19">
913
+ <li class="missed" data-hits="0" data-linenumber="18">
932
914
 
933
915
 
934
- <code class="ruby"> AnchorTasks.new</code>
916
+ <code class="ruby"> AnchorTasks.new</code>
935
917
  </li>
936
918
 
937
- <li class="never" data-hits="" data-linenumber="20">
919
+ <li class="never" data-hits="" data-linenumber="19">
938
920
 
939
921
 
940
922
  <code class="ruby"> end</code>
941
923
  </li>
942
924
 
943
- <li class="never" data-hits="" data-linenumber="21">
925
+ <li class="never" data-hits="" data-linenumber="20">
944
926
 
945
927
 
946
928
  <code class="ruby"></code>
947
929
  </li>
948
930
 
949
- <li class="covered" data-hits="1" data-linenumber="22">
931
+ <li class="covered" data-hits="1" data-linenumber="21">
950
932
  <span class="hits">1</span>
951
933
 
952
934
  <code class="ruby"> def self.anchor_drop(sha = nil)</code>
953
935
  </li>
954
936
 
955
- <li class="missed" data-hits="0" data-linenumber="23">
937
+ <li class="missed" data-hits="0" data-linenumber="22">
956
938
 
957
939
 
958
940
  <code class="ruby"> begin</code>
959
941
  </li>
960
942
 
961
- <li class="missed" data-hits="0" data-linenumber="24">
943
+ <li class="missed" data-hits="0" data-linenumber="23">
962
944
 
963
945
 
964
946
  <code class="ruby"> repo = Rugged::Repository.discover(&#39;.&#39;)</code>
965
947
  </li>
966
948
 
967
- <li class="missed" data-hits="0" data-linenumber="25">
949
+ <li class="missed" data-hits="0" data-linenumber="24">
968
950
 
969
951
 
970
952
  <code class="ruby"> sha ||= repo.head.target_id</code>
971
953
  </li>
972
954
 
973
- <li class="never" data-hits="" data-linenumber="26">
955
+ <li class="never" data-hits="" data-linenumber="25">
974
956
 
975
957
 
976
958
  <code class="ruby"></code>
977
959
  </li>
978
960
 
979
- <li class="missed" data-hits="0" data-linenumber="27">
961
+ <li class="missed" data-hits="0" data-linenumber="26">
980
962
 
981
963
 
982
964
  <code class="ruby"> storage = WTT::Core::Storage.new repo</code>
983
965
  </li>
984
966
 
985
- <li class="never" data-hits="" data-linenumber="28">
967
+ <li class="never" data-hits="" data-linenumber="27">
986
968
 
987
969
 
988
970
  <code class="ruby"></code>
989
971
  </li>
990
972
 
991
- <li class="missed" data-hits="0" data-linenumber="29">
973
+ <li class="missed" data-hits="0" data-linenumber="28">
992
974
 
993
975
 
994
976
  <code class="ruby"> meta = WTT::Core::MetaData.new(storage)</code>
995
977
  </li>
996
978
 
997
- <li class="missed" data-hits="0" data-linenumber="30">
979
+ <li class="missed" data-hits="0" data-linenumber="29">
998
980
 
999
981
 
1000
982
  <code class="ruby"> meta.anchored_commit = sha</code>
1001
983
  </li>
1002
984
 
1003
- <li class="missed" data-hits="0" data-linenumber="31">
985
+ <li class="missed" data-hits="0" data-linenumber="30">
1004
986
 
1005
987
 
1006
988
  <code class="ruby"> meta.write!</code>
1007
989
  </li>
1008
990
 
1009
- <li class="missed" data-hits="0" data-linenumber="32">
991
+ <li class="missed" data-hits="0" data-linenumber="31">
1010
992
 
1011
993
 
1012
994
  <code class="ruby"> puts &quot;WTT now anchored to #{sha}&quot;</code>
1013
995
  </li>
1014
996
 
1015
- <li class="missed" data-hits="0" data-linenumber="33">
997
+ <li class="missed" data-hits="0" data-linenumber="32">
1016
998
 
1017
999
 
1018
1000
  <code class="ruby"> rescue Exception =&gt; ex</code>
1019
1001
  </li>
1020
1002
 
1021
- <li class="missed" data-hits="0" data-linenumber="34">
1003
+ <li class="missed" data-hits="0" data-linenumber="33">
1022
1004
 
1023
1005
 
1024
1006
  <code class="ruby"> puts &quot;Exception thrown while dropping anchor: #{ex.message}&quot;</code>
1025
1007
  </li>
1026
1008
 
1027
- <li class="never" data-hits="" data-linenumber="35">
1009
+ <li class="never" data-hits="" data-linenumber="34">
1028
1010
 
1029
1011
 
1030
1012
  <code class="ruby"> end</code>
1031
1013
  </li>
1032
1014
 
1033
- <li class="never" data-hits="" data-linenumber="36">
1015
+ <li class="never" data-hits="" data-linenumber="35">
1034
1016
 
1035
1017
 
1036
1018
  <code class="ruby"> end</code>
1037
1019
  </li>
1038
1020
 
1039
- <li class="never" data-hits="" data-linenumber="37">
1040
-
1041
-
1042
- <code class="ruby"></code>
1043
- </li>
1044
-
1045
- <li class="never" data-hits="" data-linenumber="38">
1021
+ <li class="never" data-hits="" data-linenumber="36">
1046
1022
 
1047
1023
 
1048
1024
  <code class="ruby"></code>
1049
1025
  </li>
1050
1026
 
1051
- <li class="covered" data-hits="1" data-linenumber="39">
1027
+ <li class="covered" data-hits="1" data-linenumber="37">
1052
1028
  <span class="hits">1</span>
1053
1029
 
1054
1030
  <code class="ruby"> def self.anchor_raise</code>
1055
1031
  </li>
1056
1032
 
1057
- <li class="missed" data-hits="0" data-linenumber="40">
1033
+ <li class="missed" data-hits="0" data-linenumber="38">
1058
1034
 
1059
1035
 
1060
1036
  <code class="ruby"> begin</code>
1061
1037
  </li>
1062
1038
 
1063
- <li class="missed" data-hits="0" data-linenumber="41">
1039
+ <li class="missed" data-hits="0" data-linenumber="39">
1064
1040
 
1065
1041
 
1066
1042
  <code class="ruby"> repo = Rugged::Repository.discover(&#39;.&#39;)</code>
1067
1043
  </li>
1068
1044
 
1069
- <li class="missed" data-hits="0" data-linenumber="42">
1045
+ <li class="missed" data-hits="0" data-linenumber="40">
1070
1046
 
1071
1047
 
1072
1048
  <code class="ruby"> storage = WTT::Core::Storage.new repo</code>
1073
1049
  </li>
1074
1050
 
1075
- <li class="never" data-hits="" data-linenumber="43">
1051
+ <li class="never" data-hits="" data-linenumber="41">
1076
1052
 
1077
1053
 
1078
1054
  <code class="ruby"></code>
1079
1055
  </li>
1080
1056
 
1081
- <li class="missed" data-hits="0" data-linenumber="44">
1057
+ <li class="missed" data-hits="0" data-linenumber="42">
1082
1058
 
1083
1059
 
1084
1060
  <code class="ruby"> meta = WTT::Core::MetaData.new(storage)</code>
1085
1061
  </li>
1086
1062
 
1087
- <li class="missed" data-hits="0" data-linenumber="45">
1063
+ <li class="missed" data-hits="0" data-linenumber="43">
1088
1064
 
1089
1065
 
1090
1066
  <code class="ruby"> meta.anchored_commit = nil</code>
1091
1067
  </li>
1092
1068
 
1093
- <li class="missed" data-hits="0" data-linenumber="46">
1069
+ <li class="missed" data-hits="0" data-linenumber="44">
1094
1070
 
1095
1071
 
1096
1072
  <code class="ruby"> meta.write!</code>
1097
1073
  </li>
1098
1074
 
1099
- <li class="missed" data-hits="0" data-linenumber="47">
1075
+ <li class="missed" data-hits="0" data-linenumber="45">
1100
1076
 
1101
1077
 
1102
1078
  <code class="ruby"> puts &#39;WTT now unanchored&#39;</code>
1103
1079
  </li>
1104
1080
 
1105
- <li class="missed" data-hits="0" data-linenumber="48">
1081
+ <li class="missed" data-hits="0" data-linenumber="46">
1106
1082
 
1107
1083
 
1108
1084
  <code class="ruby"> rescue Exception =&gt; ex</code>
1109
1085
  </li>
1110
1086
 
1111
- <li class="missed" data-hits="0" data-linenumber="49">
1087
+ <li class="missed" data-hits="0" data-linenumber="47">
1112
1088
 
1113
1089
 
1114
1090
  <code class="ruby"> puts &quot;Exception thrown while raising anchor: #{ex.message}&quot;</code>
1115
1091
  </li>
1116
1092
 
1117
- <li class="never" data-hits="" data-linenumber="50">
1093
+ <li class="never" data-hits="" data-linenumber="48">
1118
1094
 
1119
1095
 
1120
1096
  <code class="ruby"> end</code>
1121
1097
  </li>
1122
1098
 
1123
- <li class="never" data-hits="" data-linenumber="51">
1099
+ <li class="never" data-hits="" data-linenumber="49">
1124
1100
 
1125
1101
 
1126
1102
  <code class="ruby"> end</code>
1127
1103
  </li>
1128
1104
 
1129
- <li class="never" data-hits="" data-linenumber="52">
1130
-
1131
-
1132
- <code class="ruby"></code>
1133
- </li>
1134
-
1135
- <li class="covered" data-hits="1" data-linenumber="53">
1136
- <span class="hits">1</span>
1137
-
1138
- <code class="ruby"> private</code>
1139
- </li>
1140
-
1141
- <li class="never" data-hits="" data-linenumber="54">
1142
-
1143
-
1144
- <code class="ruby"></code>
1145
- </li>
1146
-
1147
- <li class="never" data-hits="" data-linenumber="55">
1148
-
1149
-
1150
- <code class="ruby"></code>
1151
- </li>
1152
-
1153
- <li class="never" data-hits="" data-linenumber="56">
1105
+ <li class="never" data-hits="" data-linenumber="50">
1154
1106
 
1155
1107
 
1156
1108
  <code class="ruby"> end</code>
1157
1109
  </li>
1158
1110
 
1159
- <li class="never" data-hits="" data-linenumber="57">
1111
+ <li class="never" data-hits="" data-linenumber="51">
1160
1112
 
1161
1113
 
1162
1114
  <code class="ruby">end</code>
@@ -1166,7 +1118,7 @@
1166
1118
  </pre>
1167
1119
  </div>
1168
1120
 
1169
- <div class="source_table" id="0f86be104d924e90a451c18813cf0fb974c12465">
1121
+ <div class="source_table" id="47c48157e0cbf7a05f9652074c990137f9eda809">
1170
1122
  <div class="header">
1171
1123
  <h3>lib/wtt/core/anchor_task.rb</h3>
1172
1124
  <h4><span class="red">50.0 %</span> covered</h4>
@@ -1364,13 +1316,13 @@
1364
1316
  </pre>
1365
1317
  </div>
1366
1318
 
1367
- <div class="source_table" id="bf6f9519db6ffd6d541b7a2ab3afe06893fd18d8">
1319
+ <div class="source_table" id="c1fc18d7bb0f4f2331aa5b524ff3cd7475c17984">
1368
1320
  <div class="header">
1369
1321
  <h3>lib/wtt/core/mapper.rb</h3>
1370
1322
  <h4><span class="green">100.0 %</span> covered</h4>
1371
1323
  <div>
1372
- <b>55</b> relevant lines.
1373
- <span class="green"><b>55</b> lines covered</span> and
1324
+ <b>57</b> relevant lines.
1325
+ <span class="green"><b>57</b> lines covered</span> and
1374
1326
  <span class="red"><b>0</b> lines missed.</span>
1375
1327
  </div>
1376
1328
  </div>
@@ -1504,14 +1456,14 @@
1504
1456
  <code class="ruby"> def initialize(storage)</code>
1505
1457
  </li>
1506
1458
 
1507
- <li class="covered" data-hits="23" data-linenumber="22">
1508
- <span class="hits">23</span>
1459
+ <li class="covered" data-hits="25" data-linenumber="22">
1460
+ <span class="hits">25</span>
1509
1461
 
1510
1462
  <code class="ruby"> @storage = storage</code>
1511
1463
  </li>
1512
1464
 
1513
- <li class="covered" data-hits="23" data-linenumber="23">
1514
- <span class="hits">23</span>
1465
+ <li class="covered" data-hits="25" data-linenumber="23">
1466
+ <span class="hits">25</span>
1515
1467
 
1516
1468
  <code class="ruby"> read!</code>
1517
1469
  </li>
@@ -1534,8 +1486,8 @@
1534
1486
  <code class="ruby"> def matcher</code>
1535
1487
  </li>
1536
1488
 
1537
- <li class="covered" data-hits="59" data-linenumber="27">
1538
- <span class="hits">59</span>
1489
+ <li class="covered" data-hits="77" data-linenumber="27">
1490
+ <span class="hits">77</span>
1539
1491
 
1540
1492
  <code class="ruby"> @matcher ||= WTT.configuration.matcher</code>
1541
1493
  </li>
@@ -1684,8 +1636,8 @@
1684
1636
  <code class="ruby"> def read!</code>
1685
1637
  </li>
1686
1638
 
1687
- <li class="covered" data-hits="23" data-linenumber="52">
1688
- <span class="hits">23</span>
1639
+ <li class="covered" data-hits="25" data-linenumber="52">
1640
+ <span class="hits">25</span>
1689
1641
 
1690
1642
  <code class="ruby"> @mapping = @storage.read(STORAGE_SECTION)</code>
1691
1643
  </li>
@@ -1768,32 +1720,32 @@
1768
1720
  <code class="ruby"> def get_tests(file, lineno)</code>
1769
1721
  </li>
1770
1722
 
1771
- <li class="covered" data-hits="33" data-linenumber="66">
1772
- <span class="hits">33</span>
1723
+ <li class="covered" data-hits="42" data-linenumber="66">
1724
+ <span class="hits">42</span>
1773
1725
 
1774
1726
  <code class="ruby"> tests = Set.new</code>
1775
1727
  </li>
1776
1728
 
1777
- <li class="covered" data-hits="33" data-linenumber="67">
1778
- <span class="hits">33</span>
1729
+ <li class="covered" data-hits="42" data-linenumber="67">
1730
+ <span class="hits">42</span>
1779
1731
 
1780
1732
  <code class="ruby"> @mapping.each do |test, spectra|</code>
1781
1733
  </li>
1782
1734
 
1783
- <li class="covered" data-hits="99" data-linenumber="68">
1784
- <span class="hits">99</span>
1735
+ <li class="covered" data-hits="135" data-linenumber="68">
1736
+ <span class="hits">135</span>
1785
1737
 
1786
1738
  <code class="ruby"> lines = spectra[file]</code>
1787
1739
  </li>
1788
1740
 
1789
- <li class="covered" data-hits="99" data-linenumber="69">
1790
- <span class="hits">99</span>
1741
+ <li class="covered" data-hits="135" data-linenumber="69">
1742
+ <span class="hits">135</span>
1791
1743
 
1792
1744
  <code class="ruby"> next unless lines</code>
1793
1745
  </li>
1794
1746
 
1795
- <li class="covered" data-hits="59" data-linenumber="70">
1796
- <span class="hits">59</span>
1747
+ <li class="covered" data-hits="77" data-linenumber="70">
1748
+ <span class="hits">77</span>
1797
1749
 
1798
1750
  <code class="ruby"> tests &lt;&lt; test if matcher.match(lines, lineno)</code>
1799
1751
  </li>
@@ -1804,14 +1756,14 @@
1804
1756
  <code class="ruby"> end</code>
1805
1757
  </li>
1806
1758
 
1807
- <li class="covered" data-hits="33" data-linenumber="72">
1808
- <span class="hits">33</span>
1759
+ <li class="covered" data-hits="42" data-linenumber="72">
1760
+ <span class="hits">42</span>
1809
1761
 
1810
- <code class="ruby"> warn &quot;No tests found for #{file}:#{lineno}.&quot; if file.end_with?( &#39;.rb&#39; )</code>
1762
+ <code class="ruby"> warn &quot;No tests found for #{file}:#{lineno}.&quot; if file.end_with?(&#39;.rb&#39;)</code>
1811
1763
  </li>
1812
1764
 
1813
- <li class="covered" data-hits="33" data-linenumber="73">
1814
- <span class="hits">33</span>
1765
+ <li class="covered" data-hits="42" data-linenumber="73">
1766
+ <span class="hits">42</span>
1815
1767
 
1816
1768
  <code class="ruby"> tests</code>
1817
1769
  </li>
@@ -1831,376 +1783,388 @@
1831
1783
  <li class="covered" data-hits="1" data-linenumber="76">
1832
1784
  <span class="hits">1</span>
1833
1785
 
1786
+ <code class="ruby"> def unmapped_tests</code>
1787
+ </li>
1788
+
1789
+ <li class="covered" data-hits="26" data-linenumber="77">
1790
+ <span class="hits">26</span>
1791
+
1792
+ <code class="ruby"> @mapping.select { |_test, spectra| spectra.count == 0 }.keys</code>
1793
+ </li>
1794
+
1795
+ <li class="never" data-hits="" data-linenumber="78">
1796
+
1797
+
1798
+ <code class="ruby"> end</code>
1799
+ </li>
1800
+
1801
+ <li class="never" data-hits="" data-linenumber="79">
1802
+
1803
+
1804
+ <code class="ruby"></code>
1805
+ </li>
1806
+
1807
+ <li class="covered" data-hits="1" data-linenumber="80">
1808
+ <span class="hits">1</span>
1809
+
1834
1810
  <code class="ruby"> private</code>
1835
1811
  </li>
1836
1812
 
1837
- <li class="never" data-hits="" data-linenumber="77">
1813
+ <li class="never" data-hits="" data-linenumber="81">
1838
1814
 
1839
1815
 
1840
1816
  <code class="ruby"></code>
1841
1817
  </li>
1842
1818
 
1843
- <li class="never" data-hits="" data-linenumber="78">
1819
+ <li class="never" data-hits="" data-linenumber="82">
1844
1820
 
1845
1821
 
1846
1822
  <code class="ruby"> # Convert absolute path to relative path from the project (Git repository) root.</code>
1847
1823
  </li>
1848
1824
 
1849
- <li class="never" data-hits="" data-linenumber="79">
1825
+ <li class="never" data-hits="" data-linenumber="83">
1850
1826
 
1851
1827
 
1852
1828
  <code class="ruby"> #</code>
1853
1829
  </li>
1854
1830
 
1855
- <li class="never" data-hits="" data-linenumber="80">
1831
+ <li class="never" data-hits="" data-linenumber="84">
1856
1832
 
1857
1833
 
1858
1834
  <code class="ruby"> # @param file [String] file name (absolute path)</code>
1859
1835
  </li>
1860
1836
 
1861
- <li class="never" data-hits="" data-linenumber="81">
1837
+ <li class="never" data-hits="" data-linenumber="85">
1862
1838
 
1863
1839
 
1864
1840
  <code class="ruby"> # @return [String] normalized file path</code>
1865
1841
  </li>
1866
1842
 
1867
- <li class="covered" data-hits="1" data-linenumber="82">
1843
+ <li class="covered" data-hits="1" data-linenumber="86">
1868
1844
  <span class="hits">1</span>
1869
1845
 
1870
1846
  <code class="ruby"> def normalized_path(file)</code>
1871
1847
  </li>
1872
1848
 
1873
- <li class="covered" data-hits="6" data-linenumber="83">
1849
+ <li class="covered" data-hits="6" data-linenumber="87">
1874
1850
  <span class="hits">6</span>
1875
1851
 
1876
1852
  <code class="ruby"> File.expand_path(file).sub(&quot;#{WTT::Core.rake_root}/&quot;, &#39;&#39;)</code>
1877
1853
  </li>
1878
1854
 
1879
- <li class="never" data-hits="" data-linenumber="84">
1855
+ <li class="never" data-hits="" data-linenumber="88">
1880
1856
 
1881
1857
 
1882
1858
  <code class="ruby"> end</code>
1883
1859
  </li>
1884
1860
 
1885
- <li class="never" data-hits="" data-linenumber="85">
1861
+ <li class="never" data-hits="" data-linenumber="89">
1886
1862
 
1887
1863
 
1888
1864
  <code class="ruby"></code>
1889
1865
  </li>
1890
1866
 
1891
- <li class="never" data-hits="" data-linenumber="86">
1867
+ <li class="never" data-hits="" data-linenumber="90">
1892
1868
 
1893
1869
 
1894
1870
  <code class="ruby"> # Normalize all file names in a spectra.</code>
1895
1871
  </li>
1896
1872
 
1897
- <li class="never" data-hits="" data-linenumber="87">
1873
+ <li class="never" data-hits="" data-linenumber="91">
1898
1874
 
1899
1875
 
1900
1876
  <code class="ruby"> #</code>
1901
1877
  </li>
1902
1878
 
1903
- <li class="never" data-hits="" data-linenumber="88">
1879
+ <li class="never" data-hits="" data-linenumber="92">
1904
1880
 
1905
1881
 
1906
1882
  <code class="ruby"> # @param spectra [Hash] spectra data</code>
1907
1883
  </li>
1908
1884
 
1909
- <li class="never" data-hits="" data-linenumber="89">
1885
+ <li class="never" data-hits="" data-linenumber="93">
1910
1886
 
1911
1887
 
1912
1888
  <code class="ruby"> # @return [Hash] spectra whose keys (file names) are normalized</code>
1913
1889
  </li>
1914
1890
 
1915
- <li class="covered" data-hits="1" data-linenumber="90">
1891
+ <li class="covered" data-hits="1" data-linenumber="94">
1916
1892
  <span class="hits">1</span>
1917
1893
 
1918
1894
  <code class="ruby"> def normalize_paths(spectra)</code>
1919
1895
  </li>
1920
1896
 
1921
- <li class="covered" data-hits="8" data-linenumber="91">
1897
+ <li class="covered" data-hits="8" data-linenumber="95">
1922
1898
  <span class="hits">8</span>
1923
1899
 
1924
1900
  <code class="ruby"> Hash[spectra.map { |k, v| [normalized_path(k), v] }]</code>
1925
1901
  </li>
1926
1902
 
1927
- <li class="never" data-hits="" data-linenumber="92">
1903
+ <li class="never" data-hits="" data-linenumber="96">
1928
1904
 
1929
1905
 
1930
1906
  <code class="ruby"> end</code>
1931
1907
  </li>
1932
1908
 
1933
- <li class="never" data-hits="" data-linenumber="93">
1909
+ <li class="never" data-hits="" data-linenumber="97">
1934
1910
 
1935
1911
 
1936
1912
  <code class="ruby"></code>
1937
1913
  </li>
1938
1914
 
1939
- <li class="never" data-hits="" data-linenumber="94">
1915
+ <li class="never" data-hits="" data-linenumber="98">
1940
1916
 
1941
1917
 
1942
1918
  <code class="ruby"> # Filter out the files outside of the target project using file path.</code>
1943
1919
  </li>
1944
1920
 
1945
- <li class="never" data-hits="" data-linenumber="95">
1921
+ <li class="never" data-hits="" data-linenumber="99">
1946
1922
 
1947
1923
 
1948
1924
  <code class="ruby"> #</code>
1949
1925
  </li>
1950
1926
 
1951
- <li class="never" data-hits="" data-linenumber="96">
1927
+ <li class="never" data-hits="" data-linenumber="100">
1952
1928
 
1953
1929
 
1954
1930
  <code class="ruby"> # @param spectra [Hash] spectra data</code>
1955
1931
  </li>
1956
1932
 
1957
- <li class="never" data-hits="" data-linenumber="97">
1933
+ <li class="never" data-hits="" data-linenumber="101">
1958
1934
 
1959
1935
 
1960
1936
  <code class="ruby"> # @return [Hash] spectra with only files inside the target project</code>
1961
1937
  </li>
1962
1938
 
1963
- <li class="covered" data-hits="1" data-linenumber="98">
1939
+ <li class="covered" data-hits="1" data-linenumber="102">
1964
1940
  <span class="hits">1</span>
1965
1941
 
1966
1942
  <code class="ruby"> def select_project_files(spectra)</code>
1967
1943
  </li>
1968
1944
 
1969
- <li class="covered" data-hits="2" data-linenumber="99">
1945
+ <li class="covered" data-hits="2" data-linenumber="103">
1970
1946
  <span class="hits">2</span>
1971
1947
 
1972
1948
  <code class="ruby"> spectra.select do |filename, _lines|</code>
1973
1949
  </li>
1974
1950
 
1975
- <li class="covered" data-hits="8" data-linenumber="100">
1951
+ <li class="covered" data-hits="8" data-linenumber="104">
1976
1952
  <span class="hits">8</span>
1977
1953
 
1978
1954
  <code class="ruby"> filename.start_with?(WTT::Core.rake_root)</code>
1979
1955
  </li>
1980
1956
 
1981
- <li class="never" data-hits="" data-linenumber="101">
1957
+ <li class="never" data-hits="" data-linenumber="105">
1982
1958
 
1983
1959
 
1984
1960
  <code class="ruby"> end</code>
1985
1961
  </li>
1986
1962
 
1987
- <li class="never" data-hits="" data-linenumber="102">
1963
+ <li class="never" data-hits="" data-linenumber="106">
1988
1964
 
1989
1965
 
1990
1966
  <code class="ruby"> end</code>
1991
1967
  </li>
1992
1968
 
1993
- <li class="never" data-hits="" data-linenumber="103">
1969
+ <li class="never" data-hits="" data-linenumber="107">
1994
1970
 
1995
1971
 
1996
1972
  <code class="ruby"></code>
1997
1973
  </li>
1998
1974
 
1999
- <li class="never" data-hits="" data-linenumber="104">
1975
+ <li class="never" data-hits="" data-linenumber="108">
2000
1976
 
2001
1977
 
2002
1978
  <code class="ruby"> # Generate spectra data from Ruby coverage library&#39;s data</code>
2003
1979
  </li>
2004
1980
 
2005
- <li class="never" data-hits="" data-linenumber="105">
1981
+ <li class="never" data-hits="" data-linenumber="109">
2006
1982
 
2007
1983
 
2008
1984
  <code class="ruby"> #</code>
2009
1985
  </li>
2010
1986
 
2011
- <li class="never" data-hits="" data-linenumber="106">
1987
+ <li class="never" data-hits="" data-linenumber="110">
2012
1988
 
2013
1989
 
2014
1990
  <code class="ruby"> # @param cov [Hash] coverage data generated using `Coverage.result`</code>
2015
1991
  </li>
2016
1992
 
2017
- <li class="never" data-hits="" data-linenumber="107">
1993
+ <li class="never" data-hits="" data-linenumber="111">
2018
1994
 
2019
1995
 
2020
1996
  <code class="ruby"> # @return [Hash] spectra data</code>
2021
1997
  </li>
2022
1998
 
2023
- <li class="covered" data-hits="1" data-linenumber="108">
1999
+ <li class="covered" data-hits="1" data-linenumber="112">
2024
2000
  <span class="hits">1</span>
2025
2001
 
2026
2002
  <code class="ruby"> def spectra_from_coverage(cov)</code>
2027
2003
  </li>
2028
2004
 
2029
- <li class="covered" data-hits="5" data-linenumber="109">
2005
+ <li class="covered" data-hits="5" data-linenumber="113">
2030
2006
  <span class="hits">5</span>
2031
2007
 
2032
2008
  <code class="ruby"> spectra = Hash.new { |h, k| h[k] = [] }</code>
2033
2009
  </li>
2034
2010
 
2035
- <li class="covered" data-hits="1" data-linenumber="110">
2011
+ <li class="covered" data-hits="1" data-linenumber="114">
2036
2012
  <span class="hits">1</span>
2037
2013
 
2038
2014
  <code class="ruby"> cov.each do |filename, executions|</code>
2039
2015
  </li>
2040
2016
 
2041
- <li class="never" data-hits="" data-linenumber="111">
2042
-
2043
-
2044
- <code class="ruby"></code>
2045
- </li>
2046
-
2047
- <li class="covered" data-hits="4" data-linenumber="112">
2017
+ <li class="covered" data-hits="4" data-linenumber="115">
2048
2018
  <span class="hits">4</span>
2049
2019
 
2050
2020
  <code class="ruby"> executions.each_with_index do |execution, i|</code>
2051
2021
  </li>
2052
2022
 
2053
- <li class="covered" data-hits="239" data-linenumber="113">
2023
+ <li class="covered" data-hits="239" data-linenumber="116">
2054
2024
  <span class="hits">239</span>
2055
2025
 
2056
2026
  <code class="ruby"> next if execution.nil? || execution == 0</code>
2057
2027
  </li>
2058
2028
 
2059
- <li class="covered" data-hits="55" data-linenumber="114">
2029
+ <li class="covered" data-hits="55" data-linenumber="117">
2060
2030
  <span class="hits">55</span>
2061
2031
 
2062
2032
  <code class="ruby"> spectra[filename] &lt;&lt; i + 1</code>
2063
2033
  </li>
2064
2034
 
2065
- <li class="never" data-hits="" data-linenumber="115">
2035
+ <li class="never" data-hits="" data-linenumber="118">
2066
2036
 
2067
2037
 
2068
2038
  <code class="ruby"> end</code>
2069
2039
  </li>
2070
2040
 
2071
- <li class="never" data-hits="" data-linenumber="116">
2041
+ <li class="never" data-hits="" data-linenumber="119">
2072
2042
 
2073
2043
 
2074
2044
  <code class="ruby"> end</code>
2075
2045
  </li>
2076
2046
 
2077
- <li class="covered" data-hits="1" data-linenumber="117">
2047
+ <li class="covered" data-hits="1" data-linenumber="120">
2078
2048
  <span class="hits">1</span>
2079
2049
 
2080
2050
  <code class="ruby"> spectra</code>
2081
2051
  </li>
2082
2052
 
2083
- <li class="never" data-hits="" data-linenumber="118">
2053
+ <li class="never" data-hits="" data-linenumber="121">
2084
2054
 
2085
2055
 
2086
2056
  <code class="ruby"> end</code>
2087
2057
  </li>
2088
2058
 
2089
- <li class="never" data-hits="" data-linenumber="119">
2059
+ <li class="never" data-hits="" data-linenumber="122">
2090
2060
 
2091
2061
 
2092
2062
  <code class="ruby"></code>
2093
2063
  </li>
2094
2064
 
2095
- <li class="never" data-hits="" data-linenumber="120">
2065
+ <li class="never" data-hits="" data-linenumber="123">
2096
2066
 
2097
2067
 
2098
2068
  <code class="ruby"> # Generate spectra data from Ruby coverage library&#39;s data</code>
2099
2069
  </li>
2100
2070
 
2101
- <li class="never" data-hits="" data-linenumber="121">
2071
+ <li class="never" data-hits="" data-linenumber="124">
2102
2072
 
2103
2073
 
2104
2074
  <code class="ruby"> #</code>
2105
2075
  </li>
2106
2076
 
2107
- <li class="never" data-hits="" data-linenumber="122">
2077
+ <li class="never" data-hits="" data-linenumber="125">
2108
2078
 
2109
2079
 
2110
2080
  <code class="ruby"> # @param cov [Hash] coverage data generated using `Simplecov.result`</code>
2111
2081
  </li>
2112
2082
 
2113
- <li class="never" data-hits="" data-linenumber="123">
2083
+ <li class="never" data-hits="" data-linenumber="126">
2114
2084
 
2115
2085
 
2116
2086
  <code class="ruby"> # @return [Hash] spectra data</code>
2117
2087
  </li>
2118
2088
 
2119
- <li class="covered" data-hits="1" data-linenumber="124">
2089
+ <li class="covered" data-hits="1" data-linenumber="127">
2120
2090
  <span class="hits">1</span>
2121
2091
 
2122
2092
  <code class="ruby"> def spectra_from_simplecov(cov)</code>
2123
2093
  </li>
2124
2094
 
2125
- <li class="never" data-hits="" data-linenumber="125">
2126
-
2127
-
2128
- <code class="ruby"></code>
2129
- </li>
2130
-
2131
- <li class="covered" data-hits="5" data-linenumber="126">
2095
+ <li class="covered" data-hits="5" data-linenumber="128">
2132
2096
  <span class="hits">5</span>
2133
2097
 
2134
2098
  <code class="ruby"> spectra = Hash.new { |h, k| h[k] = [] }</code>
2135
2099
  </li>
2136
2100
 
2137
- <li class="covered" data-hits="1" data-linenumber="127">
2101
+ <li class="covered" data-hits="1" data-linenumber="129">
2138
2102
  <span class="hits">1</span>
2139
2103
 
2140
2104
  <code class="ruby"> cov.files.each do |file|</code>
2141
2105
  </li>
2142
2106
 
2143
- <li class="covered" data-hits="4" data-linenumber="128">
2107
+ <li class="covered" data-hits="4" data-linenumber="130">
2144
2108
  <span class="hits">4</span>
2145
2109
 
2146
2110
  <code class="ruby"> filename = file.filename</code>
2147
2111
  </li>
2148
2112
 
2149
- <li class="covered" data-hits="4" data-linenumber="129">
2113
+ <li class="covered" data-hits="4" data-linenumber="131">
2150
2114
  <span class="hits">4</span>
2151
2115
 
2152
2116
  <code class="ruby"> file.coverage.each_with_index do |execution, i|</code>
2153
2117
  </li>
2154
2118
 
2155
- <li class="covered" data-hits="239" data-linenumber="130">
2119
+ <li class="covered" data-hits="239" data-linenumber="132">
2156
2120
  <span class="hits">239</span>
2157
2121
 
2158
2122
  <code class="ruby"> next if execution.nil? || execution == 0</code>
2159
2123
  </li>
2160
2124
 
2161
- <li class="covered" data-hits="55" data-linenumber="131">
2125
+ <li class="covered" data-hits="55" data-linenumber="133">
2162
2126
  <span class="hits">55</span>
2163
2127
 
2164
2128
  <code class="ruby"> spectra[filename] &lt;&lt; i + 1</code>
2165
2129
  </li>
2166
2130
 
2167
- <li class="never" data-hits="" data-linenumber="132">
2131
+ <li class="never" data-hits="" data-linenumber="134">
2168
2132
 
2169
2133
 
2170
2134
  <code class="ruby"> end</code>
2171
2135
  </li>
2172
2136
 
2173
- <li class="never" data-hits="" data-linenumber="133">
2137
+ <li class="never" data-hits="" data-linenumber="135">
2174
2138
 
2175
2139
 
2176
2140
  <code class="ruby"> end</code>
2177
2141
  </li>
2178
2142
 
2179
- <li class="covered" data-hits="1" data-linenumber="134">
2143
+ <li class="covered" data-hits="1" data-linenumber="136">
2180
2144
  <span class="hits">1</span>
2181
2145
 
2182
2146
  <code class="ruby"> spectra</code>
2183
2147
  </li>
2184
2148
 
2185
- <li class="never" data-hits="" data-linenumber="135">
2149
+ <li class="never" data-hits="" data-linenumber="137">
2186
2150
 
2187
2151
 
2188
2152
  <code class="ruby"> end</code>
2189
2153
  </li>
2190
2154
 
2191
- <li class="never" data-hits="" data-linenumber="136">
2155
+ <li class="never" data-hits="" data-linenumber="138">
2192
2156
 
2193
2157
 
2194
2158
  <code class="ruby"> end</code>
2195
2159
  </li>
2196
2160
 
2197
- <li class="never" data-hits="" data-linenumber="137">
2161
+ <li class="never" data-hits="" data-linenumber="139">
2198
2162
 
2199
2163
 
2200
2164
  <code class="ruby"> end</code>
2201
2165
  </li>
2202
2166
 
2203
- <li class="never" data-hits="" data-linenumber="138">
2167
+ <li class="never" data-hits="" data-linenumber="140">
2204
2168
 
2205
2169
 
2206
2170
  <code class="ruby">end</code>
@@ -2210,7 +2174,7 @@
2210
2174
  </pre>
2211
2175
  </div>
2212
2176
 
2213
- <div class="source_table" id="e48f004f525a856eaa53666700e19fa233bf0c3e">
2177
+ <div class="source_table" id="cdbaf244cd6dc482ed9d740a0a5ecdb750286ab8">
2214
2178
  <div class="header">
2215
2179
  <h3>lib/wtt/core/matchers.rb</h3>
2216
2180
  <h4><span class="green">100.0 %</span> covered</h4>
@@ -2246,7 +2210,7 @@
2246
2210
  </pre>
2247
2211
  </div>
2248
2212
 
2249
- <div class="source_table" id="33752e3db82eb4619d7f33683c5f83572ff1735b">
2213
+ <div class="source_table" id="2f9b5602f164746b74c969637338649aaf689f94">
2250
2214
  <div class="header">
2251
2215
  <h3>lib/wtt/core/matchers/exact_matcher.rb</h3>
2252
2216
  <h4><span class="green">100.0 %</span> covered</h4>
@@ -2366,7 +2330,7 @@
2366
2330
  </pre>
2367
2331
  </div>
2368
2332
 
2369
- <div class="source_table" id="17847d98a5aefc184ba23513aca119364daa93d9">
2333
+ <div class="source_table" id="31ed6238733780ab64cb908d51b733682ef7c778">
2370
2334
  <div class="header">
2371
2335
  <h3>lib/wtt/core/matchers/fuzzy_matcher.rb</h3>
2372
2336
  <h4><span class="green">100.0 %</span> covered</h4>
@@ -2443,7 +2407,7 @@
2443
2407
  <li class="covered" data-hits="1" data-linenumber="11">
2444
2408
  <span class="hits">1</span>
2445
2409
 
2446
- <code class="ruby"> def initialize(spread=11)</code>
2410
+ <code class="ruby"> def initialize(spread = 11)</code>
2447
2411
  </li>
2448
2412
 
2449
2413
  <li class="covered" data-hits="5" data-linenumber="12">
@@ -2470,8 +2434,8 @@
2470
2434
  <code class="ruby"> def match(spectra, lineno)</code>
2471
2435
  </li>
2472
2436
 
2473
- <li class="covered" data-hits="98" data-linenumber="16">
2474
- <span class="hits">98</span>
2437
+ <li class="covered" data-hits="146" data-linenumber="16">
2438
+ <span class="hits">146</span>
2475
2439
 
2476
2440
  <code class="ruby"> true if spectra.any? { |v| (v - lineno).abs &lt;= @spread } || lineno == 0</code>
2477
2441
  </li>
@@ -2510,7 +2474,7 @@
2510
2474
  </pre>
2511
2475
  </div>
2512
2476
 
2513
- <div class="source_table" id="8cbec57893e82236b7f868fa650bf8908fb3f617">
2477
+ <div class="source_table" id="7051db7ba633b5f87fedcc170a82834063791510">
2514
2478
  <div class="header">
2515
2479
  <h3>lib/wtt/core/matchers/touch_matcher.rb</h3>
2516
2480
  <h4><span class="green">100.0 %</span> covered</h4>
@@ -2630,7 +2594,7 @@
2630
2594
  </pre>
2631
2595
  </div>
2632
2596
 
2633
- <div class="source_table" id="bb1b913a3239aa458def81bc122c89482291d2ee">
2597
+ <div class="source_table" id="26d0557d736d0843dfbe58b61ca419aae83af8e5">
2634
2598
  <div class="header">
2635
2599
  <h3>lib/wtt/core/meta_data.rb</h3>
2636
2600
  <h4><span class="green">100.0 %</span> covered</h4>
@@ -2767,7 +2731,7 @@
2767
2731
  <li class="covered" data-hits="1" data-linenumber="21">
2768
2732
  <span class="hits">1</span>
2769
2733
 
2770
- <code class="ruby"> def anchored_commit=( val )</code>
2734
+ <code class="ruby"> def anchored_commit=(val)</code>
2771
2735
  </li>
2772
2736
 
2773
2737
  <li class="covered" data-hits="1" data-linenumber="22">
@@ -2900,7 +2864,7 @@
2900
2864
  </pre>
2901
2865
  </div>
2902
2866
 
2903
- <div class="source_table" id="4b4f11a5fca5fffd7e7db016aec1c81edff33027">
2867
+ <div class="source_table" id="26593f1fe32592d12e81238a562778ccbfa875ff">
2904
2868
  <div class="header">
2905
2869
  <h3>lib/wtt/core/paths.rb</h3>
2906
2870
  <h4><span class="green">100.0 %</span> covered</h4>
@@ -3044,13 +3008,13 @@
3044
3008
  </pre>
3045
3009
  </div>
3046
3010
 
3047
- <div class="source_table" id="1f2f7d67a13df7960c05355bf25fe3217923859c">
3011
+ <div class="source_table" id="35444bdc7d836bc0b5cbb515552eccf22ce283cd">
3048
3012
  <div class="header">
3049
3013
  <h3>lib/wtt/core/selector.rb</h3>
3050
- <h4><span class="green">95.65 %</span> covered</h4>
3014
+ <h4><span class="green">95.77 %</span> covered</h4>
3051
3015
  <div>
3052
- <b>69</b> relevant lines.
3053
- <span class="green"><b>66</b> lines covered</span> and
3016
+ <b>71</b> relevant lines.
3017
+ <span class="green"><b>68</b> lines covered</span> and
3054
3018
  <span class="red"><b>3</b> lines missed.</span>
3055
3019
  </div>
3056
3020
  </div>
@@ -3148,38 +3112,38 @@
3148
3112
  <code class="ruby"> def initialize(opts)</code>
3149
3113
  </li>
3150
3114
 
3151
- <li class="covered" data-hits="4" data-linenumber="16">
3152
- <span class="hits">4</span>
3115
+ <li class="covered" data-hits="6" data-linenumber="16">
3116
+ <span class="hits">6</span>
3153
3117
 
3154
3118
  <code class="ruby"> @repo = opts[:repo]</code>
3155
3119
  </li>
3156
3120
 
3157
- <li class="covered" data-hits="4" data-linenumber="17">
3158
- <span class="hits">4</span>
3121
+ <li class="covered" data-hits="6" data-linenumber="17">
3122
+ <span class="hits">6</span>
3159
3123
 
3160
3124
  <code class="ruby"> @metadata = opts[:meta_data]</code>
3161
3125
  </li>
3162
3126
 
3163
- <li class="covered" data-hits="4" data-linenumber="18">
3164
- <span class="hits">4</span>
3127
+ <li class="covered" data-hits="6" data-linenumber="18">
3128
+ <span class="hits">6</span>
3165
3129
 
3166
3130
  <code class="ruby"> @walker = opts[:walker]</code>
3167
3131
  </li>
3168
3132
 
3169
- <li class="covered" data-hits="4" data-linenumber="19">
3170
- <span class="hits">4</span>
3133
+ <li class="covered" data-hits="6" data-linenumber="19">
3134
+ <span class="hits">6</span>
3171
3135
 
3172
3136
  <code class="ruby"> @test_files = opts[:test_files]</code>
3173
3137
  </li>
3174
3138
 
3175
- <li class="covered" data-hits="4" data-linenumber="20">
3176
- <span class="hits">4</span>
3139
+ <li class="covered" data-hits="6" data-linenumber="20">
3140
+ <span class="hits">6</span>
3177
3141
 
3178
3142
  <code class="ruby"> @mapping = opts[:mapping]</code>
3179
3143
  </li>
3180
3144
 
3181
- <li class="covered" data-hits="4" data-linenumber="21">
3182
- <span class="hits">4</span>
3145
+ <li class="covered" data-hits="6" data-linenumber="21">
3146
+ <span class="hits">6</span>
3183
3147
 
3184
3148
  <code class="ruby"> @target_revision = @repo.lookup(opts[:target_sha]) if opts[:target_sha]</code>
3185
3149
  </li>
@@ -3199,748 +3163,760 @@
3199
3163
  <li class="never" data-hits="" data-linenumber="24">
3200
3164
 
3201
3165
 
3202
- <code class="ruby"></code>
3203
- </li>
3204
-
3205
- <li class="never" data-hits="" data-linenumber="25">
3206
-
3207
-
3208
3166
  <code class="ruby"> # Select tests using differences in anchored commit and target commit</code>
3209
3167
  </li>
3210
3168
 
3211
- <li class="never" data-hits="" data-linenumber="26">
3169
+ <li class="never" data-hits="" data-linenumber="25">
3212
3170
 
3213
3171
 
3214
3172
  <code class="ruby"> # (or current working tree) and {TestToCodeMapping}.</code>
3215
3173
  </li>
3216
3174
 
3217
- <li class="never" data-hits="" data-linenumber="27">
3175
+ <li class="never" data-hits="" data-linenumber="26">
3218
3176
 
3219
3177
 
3220
3178
  <code class="ruby"> #</code>
3221
3179
  </li>
3222
3180
 
3223
- <li class="never" data-hits="" data-linenumber="28">
3181
+ <li class="never" data-hits="" data-linenumber="27">
3224
3182
 
3225
3183
 
3226
3184
  <code class="ruby"> # @return [Set] a set of tests that might be affected by changes in base_sha...target_sha</code>
3227
3185
  </li>
3228
3186
 
3229
- <li class="covered" data-hits="1" data-linenumber="29">
3187
+ <li class="covered" data-hits="1" data-linenumber="28">
3230
3188
  <span class="hits">1</span>
3231
3189
 
3232
3190
  <code class="ruby"> def select_tests!</code>
3233
3191
  </li>
3234
3192
 
3235
- <li class="never" data-hits="" data-linenumber="30">
3193
+ <li class="never" data-hits="" data-linenumber="29">
3236
3194
 
3237
3195
 
3238
3196
  <code class="ruby"> # Base should be the commit `anchor` has run on.</code>
3239
3197
  </li>
3240
3198
 
3241
- <li class="never" data-hits="" data-linenumber="31">
3199
+ <li class="never" data-hits="" data-linenumber="30">
3242
3200
 
3243
3201
 
3244
3202
  <code class="ruby"> # NOT the one test-to-code mapping was committed to.</code>
3245
3203
  </li>
3246
3204
 
3247
- <li class="covered" data-hits="4" data-linenumber="32">
3248
- <span class="hits">4</span>
3205
+ <li class="covered" data-hits="6" data-linenumber="31">
3206
+ <span class="hits">6</span>
3249
3207
 
3250
3208
  <code class="ruby"> @base_obj = anchored_commit</code>
3251
3209
  </li>
3252
3210
 
3253
- <li class="never" data-hits="" data-linenumber="33">
3211
+ <li class="never" data-hits="" data-linenumber="32">
3254
3212
 
3255
3213
 
3256
3214
  <code class="ruby"></code>
3257
3215
  </li>
3258
3216
 
3259
- <li class="never" data-hits="" data-linenumber="34">
3217
+ <li class="never" data-hits="" data-linenumber="33">
3260
3218
 
3261
3219
 
3262
3220
  <code class="ruby"> # select all tests if anchored commit does not exist</code>
3263
3221
  </li>
3264
3222
 
3265
- <li class="covered" data-hits="4" data-linenumber="35">
3266
- <span class="hits">4</span>
3223
+ <li class="covered" data-hits="6" data-linenumber="34">
3224
+ <span class="hits">6</span>
3267
3225
 
3268
3226
  <code class="ruby"> return Set.new(@test_files) unless @base_obj</code>
3269
3227
  </li>
3270
3228
 
3271
- <li class="never" data-hits="" data-linenumber="36">
3229
+ <li class="never" data-hits="" data-linenumber="35">
3272
3230
 
3273
3231
 
3274
3232
  <code class="ruby"></code>
3275
3233
  </li>
3276
3234
 
3277
- <li class="covered" data-hits="4" data-linenumber="37">
3278
- <span class="hits">4</span>
3235
+ <li class="covered" data-hits="6" data-linenumber="36">
3236
+ <span class="hits">6</span>
3279
3237
 
3280
3238
  <code class="ruby"> change_count = 0</code>
3281
3239
  </li>
3282
3240
 
3241
+ <li class="covered" data-hits="6" data-linenumber="37">
3242
+ <span class="hits">6</span>
3243
+
3244
+ <code class="ruby"> @tests = Set.new</code>
3245
+ </li>
3246
+
3283
3247
  <li class="never" data-hits="" data-linenumber="38">
3284
3248
 
3285
3249
 
3286
- <code class="ruby"> </code>
3250
+ <code class="ruby"></code>
3287
3251
  </li>
3288
3252
 
3289
- <li class="covered" data-hits="4" data-linenumber="39">
3290
- <span class="hits">4</span>
3253
+ <li class="covered" data-hits="6" data-linenumber="39">
3254
+ <span class="hits">6</span>
3291
3255
 
3292
- <code class="ruby"> @tests = Set.new</code>
3256
+ <code class="ruby"> mapping.unmapped_tests.each do |test|</code>
3293
3257
  </li>
3294
3258
 
3295
- <li class="covered" data-hits="4" data-linenumber="40">
3296
- <span class="hits">4</span>
3259
+ <li class="covered" data-hits="2" data-linenumber="40">
3260
+ <span class="hits">2</span>
3261
+
3262
+ <code class="ruby"> @tests &lt;&lt; test</code>
3263
+ </li>
3264
+
3265
+ <li class="never" data-hits="" data-linenumber="41">
3266
+
3267
+
3268
+ <code class="ruby"> end</code>
3269
+ </li>
3270
+
3271
+ <li class="never" data-hits="" data-linenumber="42">
3272
+
3273
+
3274
+ <code class="ruby"></code>
3275
+ </li>
3276
+
3277
+ <li class="covered" data-hits="6" data-linenumber="43">
3278
+ <span class="hits">6</span>
3297
3279
 
3298
3280
  <code class="ruby"> diff.each_patch do |patch|</code>
3299
3281
  </li>
3300
3282
 
3301
- <li class="covered" data-hits="12" data-linenumber="41">
3302
- <span class="hits">12</span>
3283
+ <li class="covered" data-hits="18" data-linenumber="44">
3284
+ <span class="hits">18</span>
3303
3285
 
3304
3286
  <code class="ruby"> change_count += 1</code>
3305
3287
  </li>
3306
3288
 
3307
- <li class="covered" data-hits="12" data-linenumber="42">
3308
- <span class="hits">12</span>
3289
+ <li class="covered" data-hits="18" data-linenumber="45">
3290
+ <span class="hits">18</span>
3309
3291
 
3310
3292
  <code class="ruby"> file = patch.delta.old_file[:path]</code>
3311
3293
  </li>
3312
3294
 
3313
- <li class="covered" data-hits="12" data-linenumber="43">
3314
- <span class="hits">12</span>
3295
+ <li class="covered" data-hits="18" data-linenumber="46">
3296
+ <span class="hits">18</span>
3315
3297
 
3316
3298
  <code class="ruby"> if test_file?(file)</code>
3317
3299
  </li>
3318
3300
 
3319
- <li class="covered" data-hits="2" data-linenumber="44">
3320
- <span class="hits">2</span>
3301
+ <li class="covered" data-hits="3" data-linenumber="47">
3302
+ <span class="hits">3</span>
3321
3303
 
3322
3304
  <code class="ruby"> @tests &lt;&lt; file</code>
3323
3305
  </li>
3324
3306
 
3325
- <li class="never" data-hits="" data-linenumber="45">
3307
+ <li class="never" data-hits="" data-linenumber="48">
3326
3308
 
3327
3309
 
3328
3310
  <code class="ruby"> else</code>
3329
3311
  </li>
3330
3312
 
3331
- <li class="covered" data-hits="10" data-linenumber="46">
3332
- <span class="hits">10</span>
3313
+ <li class="covered" data-hits="15" data-linenumber="49">
3314
+ <span class="hits">15</span>
3333
3315
 
3334
3316
  <code class="ruby"> select_tests_from_patch(patch)</code>
3335
3317
  </li>
3336
3318
 
3337
- <li class="never" data-hits="" data-linenumber="47">
3319
+ <li class="never" data-hits="" data-linenumber="50">
3338
3320
 
3339
3321
 
3340
3322
  <code class="ruby"> end</code>
3341
3323
  </li>
3342
3324
 
3343
- <li class="never" data-hits="" data-linenumber="48">
3325
+ <li class="never" data-hits="" data-linenumber="51">
3344
3326
 
3345
3327
 
3346
3328
  <code class="ruby"> end</code>
3347
3329
  </li>
3348
3330
 
3349
- <li class="covered" data-hits="4" data-linenumber="49">
3350
- <span class="hits">4</span>
3331
+ <li class="covered" data-hits="6" data-linenumber="52">
3332
+ <span class="hits">6</span>
3351
3333
 
3352
3334
  <code class="ruby"> @tests.delete(nil)</code>
3353
3335
  </li>
3354
3336
 
3355
- <li class="covered" data-hits="4" data-linenumber="50">
3356
- <span class="hits">4</span>
3337
+ <li class="covered" data-hits="6" data-linenumber="53">
3338
+ <span class="hits">6</span>
3357
3339
 
3358
3340
  <code class="ruby"> puts &quot;WTT found #{@tests.count} tests for #{change_count} changes.&quot;</code>
3359
3341
  </li>
3360
3342
 
3361
- <li class="covered" data-hits="4" data-linenumber="51">
3362
- <span class="hits">4</span>
3343
+ <li class="covered" data-hits="6" data-linenumber="54">
3344
+ <span class="hits">6</span>
3363
3345
 
3364
3346
  <code class="ruby"> @tests</code>
3365
3347
  </li>
3366
3348
 
3367
- <li class="never" data-hits="" data-linenumber="52">
3349
+ <li class="never" data-hits="" data-linenumber="55">
3368
3350
 
3369
3351
 
3370
3352
  <code class="ruby"> end</code>
3371
3353
  </li>
3372
3354
 
3373
- <li class="never" data-hits="" data-linenumber="53">
3355
+ <li class="never" data-hits="" data-linenumber="56">
3374
3356
 
3375
3357
 
3376
3358
  <code class="ruby"></code>
3377
3359
  </li>
3378
3360
 
3379
- <li class="covered" data-hits="1" data-linenumber="54">
3361
+ <li class="covered" data-hits="1" data-linenumber="57">
3380
3362
  <span class="hits">1</span>
3381
3363
 
3382
3364
  <code class="ruby"> private</code>
3383
3365
  </li>
3384
3366
 
3385
- <li class="never" data-hits="" data-linenumber="55">
3367
+ <li class="never" data-hits="" data-linenumber="58">
3386
3368
 
3387
3369
 
3388
3370
  <code class="ruby"></code>
3389
3371
  </li>
3390
3372
 
3391
- <li class="covered" data-hits="1" data-linenumber="56">
3373
+ <li class="covered" data-hits="1" data-linenumber="59">
3392
3374
  <span class="hits">1</span>
3393
3375
 
3394
3376
  <code class="ruby"> def diff</code>
3395
3377
  </li>
3396
3378
 
3397
- <li class="covered" data-hits="4" data-linenumber="57">
3398
- <span class="hits">4</span>
3379
+ <li class="covered" data-hits="6" data-linenumber="60">
3380
+ <span class="hits">6</span>
3399
3381
 
3400
3382
  <code class="ruby"> opts = {</code>
3401
3383
  </li>
3402
3384
 
3403
- <li class="never" data-hits="" data-linenumber="58">
3385
+ <li class="never" data-hits="" data-linenumber="61">
3404
3386
 
3405
3387
 
3406
3388
  <code class="ruby"> include_untracked: true,</code>
3407
3389
  </li>
3408
3390
 
3409
- <li class="never" data-hits="" data-linenumber="59">
3391
+ <li class="never" data-hits="" data-linenumber="62">
3410
3392
 
3411
3393
 
3412
3394
  <code class="ruby"> recurse_untracked_dirs: true</code>
3413
3395
  </li>
3414
3396
 
3415
- <li class="never" data-hits="" data-linenumber="60">
3397
+ <li class="never" data-hits="" data-linenumber="63">
3416
3398
 
3417
3399
 
3418
3400
  <code class="ruby"> }</code>
3419
3401
  </li>
3420
3402
 
3421
- <li class="covered" data-hits="4" data-linenumber="61">
3422
- <span class="hits">4</span>
3403
+ <li class="covered" data-hits="6" data-linenumber="64">
3404
+ <span class="hits">6</span>
3423
3405
 
3424
3406
  <code class="ruby"> defined?(@target_revision) ? @base_obj.diff(@target_revision, opts) : @base_obj.diff_workdir(opts)</code>
3425
3407
  </li>
3426
3408
 
3427
- <li class="never" data-hits="" data-linenumber="62">
3409
+ <li class="never" data-hits="" data-linenumber="65">
3428
3410
 
3429
3411
 
3430
3412
  <code class="ruby"> end</code>
3431
3413
  </li>
3432
3414
 
3433
- <li class="never" data-hits="" data-linenumber="63">
3415
+ <li class="never" data-hits="" data-linenumber="66">
3434
3416
 
3435
3417
 
3436
3418
  <code class="ruby"></code>
3437
3419
  </li>
3438
3420
 
3439
- <li class="covered" data-hits="1" data-linenumber="64">
3421
+ <li class="covered" data-hits="1" data-linenumber="67">
3440
3422
  <span class="hits">1</span>
3441
3423
 
3442
3424
  <code class="ruby"> def mapping</code>
3443
3425
  </li>
3444
3426
 
3445
- <li class="never" data-hits="" data-linenumber="65">
3427
+ <li class="never" data-hits="" data-linenumber="68">
3446
3428
 
3447
3429
 
3448
3430
  <code class="ruby"> @mapping ||= begin</code>
3449
3431
  </li>
3450
3432
 
3451
- <li class="missed" data-hits="0" data-linenumber="66">
3433
+ <li class="missed" data-hits="0" data-linenumber="69">
3452
3434
 
3453
3435
 
3454
3436
  <code class="ruby"> sha = defined?(@target_revision) &amp;&amp; !@target_revision.nil? ? @target_revision.oid : @repo.head.target_id</code>
3455
3437
  </li>
3456
3438
 
3457
- <li class="missed" data-hits="0" data-linenumber="67">
3439
+ <li class="missed" data-hits="0" data-linenumber="70">
3458
3440
 
3459
3441
 
3460
3442
  <code class="ruby"> Mapper.new(Storage.new(@repo, sha))</code>
3461
3443
  </li>
3462
3444
 
3463
- <li class="covered" data-hits="18" data-linenumber="68">
3464
- <span class="hits">18</span>
3445
+ <li class="covered" data-hits="33" data-linenumber="71">
3446
+ <span class="hits">33</span>
3465
3447
 
3466
3448
  <code class="ruby"> end</code>
3467
3449
  </li>
3468
3450
 
3469
- <li class="never" data-hits="" data-linenumber="69">
3451
+ <li class="never" data-hits="" data-linenumber="72">
3470
3452
 
3471
3453
 
3472
3454
  <code class="ruby"> end</code>
3473
3455
  </li>
3474
3456
 
3475
- <li class="never" data-hits="" data-linenumber="70">
3457
+ <li class="never" data-hits="" data-linenumber="73">
3476
3458
 
3477
3459
 
3478
3460
  <code class="ruby"></code>
3479
3461
  </li>
3480
3462
 
3481
- <li class="never" data-hits="" data-linenumber="71">
3463
+ <li class="never" data-hits="" data-linenumber="74">
3482
3464
 
3483
3465
 
3484
3466
  <code class="ruby"> # Select tests which are affected by the change of given patch.</code>
3485
3467
  </li>
3486
3468
 
3487
- <li class="never" data-hits="" data-linenumber="72">
3469
+ <li class="never" data-hits="" data-linenumber="75">
3488
3470
 
3489
3471
 
3490
3472
  <code class="ruby"> #</code>
3491
3473
  </li>
3492
3474
 
3493
- <li class="never" data-hits="" data-linenumber="73">
3475
+ <li class="never" data-hits="" data-linenumber="76">
3494
3476
 
3495
3477
 
3496
3478
  <code class="ruby"> # @param patch [Rugged::Patch]</code>
3497
3479
  </li>
3498
3480
 
3499
- <li class="never" data-hits="" data-linenumber="74">
3481
+ <li class="never" data-hits="" data-linenumber="77">
3500
3482
 
3501
3483
 
3502
3484
  <code class="ruby"> # @return [Set] set of selected tests</code>
3503
3485
  </li>
3504
3486
 
3505
- <li class="covered" data-hits="1" data-linenumber="75">
3487
+ <li class="covered" data-hits="1" data-linenumber="78">
3506
3488
  <span class="hits">1</span>
3507
3489
 
3508
3490
  <code class="ruby"> def select_tests_from_patch(patch)</code>
3509
3491
  </li>
3510
3492
 
3511
- <li class="covered" data-hits="10" data-linenumber="76">
3512
- <span class="hits">10</span>
3493
+ <li class="covered" data-hits="15" data-linenumber="79">
3494
+ <span class="hits">15</span>
3513
3495
 
3514
3496
  <code class="ruby"> target_lines = Set.new</code>
3515
3497
  </li>
3516
3498
 
3517
- <li class="covered" data-hits="10" data-linenumber="77">
3518
- <span class="hits">10</span>
3499
+ <li class="covered" data-hits="15" data-linenumber="80">
3500
+ <span class="hits">15</span>
3519
3501
 
3520
3502
  <code class="ruby"> file = patch.delta.old_file[:path]</code>
3521
3503
  </li>
3522
3504
 
3523
- <li class="never" data-hits="" data-linenumber="78">
3524
-
3525
-
3526
- <code class="ruby"></code>
3527
- </li>
3528
-
3529
- <li class="never" data-hits="" data-linenumber="79">
3505
+ <li class="never" data-hits="" data-linenumber="81">
3530
3506
 
3531
3507
 
3532
3508
  <code class="ruby"></code>
3533
3509
  </li>
3534
3510
 
3535
- <li class="covered" data-hits="10" data-linenumber="80">
3536
- <span class="hits">10</span>
3511
+ <li class="covered" data-hits="15" data-linenumber="82">
3512
+ <span class="hits">15</span>
3537
3513
 
3538
3514
  <code class="ruby"> patch.each_hunk do |hunk|</code>
3539
3515
  </li>
3540
3516
 
3541
- <li class="covered" data-hits="14" data-linenumber="81">
3542
- <span class="hits">14</span>
3517
+ <li class="covered" data-hits="21" data-linenumber="83">
3518
+ <span class="hits">21</span>
3543
3519
 
3544
3520
  <code class="ruby"> target_lines.merge target_lines_from_hunk(hunk)</code>
3545
3521
  </li>
3546
3522
 
3547
- <li class="never" data-hits="" data-linenumber="82">
3523
+ <li class="never" data-hits="" data-linenumber="84">
3548
3524
 
3549
3525
 
3550
3526
  <code class="ruby"> end</code>
3551
3527
  </li>
3552
3528
 
3553
- <li class="never" data-hits="" data-linenumber="83">
3529
+ <li class="never" data-hits="" data-linenumber="85">
3554
3530
 
3555
3531
 
3556
3532
  <code class="ruby"></code>
3557
3533
  </li>
3558
3534
 
3559
- <li class="covered" data-hits="10" data-linenumber="84">
3560
- <span class="hits">10</span>
3535
+ <li class="covered" data-hits="15" data-linenumber="86">
3536
+ <span class="hits">15</span>
3561
3537
 
3562
3538
  <code class="ruby"> target_lines.each do |line|</code>
3563
3539
  </li>
3564
3540
 
3565
- <li class="covered" data-hits="18" data-linenumber="85">
3566
- <span class="hits">18</span>
3541
+ <li class="covered" data-hits="27" data-linenumber="87">
3542
+ <span class="hits">27</span>
3567
3543
 
3568
3544
  <code class="ruby"> @tests += mapping.get_tests(file, line)</code>
3569
3545
  </li>
3570
3546
 
3571
- <li class="never" data-hits="" data-linenumber="86">
3547
+ <li class="never" data-hits="" data-linenumber="88">
3572
3548
 
3573
3549
 
3574
3550
  <code class="ruby"> end</code>
3575
3551
  </li>
3576
3552
 
3577
- <li class="never" data-hits="" data-linenumber="87">
3553
+ <li class="never" data-hits="" data-linenumber="89">
3578
3554
 
3579
3555
 
3580
3556
  <code class="ruby"> end</code>
3581
3557
  </li>
3582
3558
 
3583
- <li class="never" data-hits="" data-linenumber="88">
3559
+ <li class="never" data-hits="" data-linenumber="90">
3584
3560
 
3585
3561
 
3586
3562
  <code class="ruby"></code>
3587
3563
  </li>
3588
3564
 
3589
- <li class="never" data-hits="" data-linenumber="89">
3565
+ <li class="never" data-hits="" data-linenumber="91">
3590
3566
 
3591
3567
 
3592
3568
  <code class="ruby"> # Find lines within a hunk</code>
3593
3569
  </li>
3594
3570
 
3595
- <li class="never" data-hits="" data-linenumber="90">
3571
+ <li class="never" data-hits="" data-linenumber="92">
3596
3572
 
3597
3573
 
3598
3574
  <code class="ruby"> #</code>
3599
3575
  </li>
3600
3576
 
3601
- <li class="never" data-hits="" data-linenumber="91">
3577
+ <li class="never" data-hits="" data-linenumber="93">
3602
3578
 
3603
3579
 
3604
3580
  <code class="ruby"> # @param hunk [Rugged::Hunk]</code>
3605
3581
  </li>
3606
3582
 
3607
- <li class="never" data-hits="" data-linenumber="92">
3583
+ <li class="never" data-hits="" data-linenumber="94">
3608
3584
 
3609
3585
 
3610
3586
  <code class="ruby"> # @return [Array] Lines that changed</code>
3611
3587
  </li>
3612
3588
 
3613
- <li class="covered" data-hits="1" data-linenumber="93">
3589
+ <li class="covered" data-hits="1" data-linenumber="95">
3614
3590
  <span class="hits">1</span>
3615
3591
 
3616
3592
  <code class="ruby"> def target_lines_from_hunk(hunk)</code>
3617
3593
  </li>
3618
3594
 
3619
- <li class="covered" data-hits="14" data-linenumber="94">
3620
- <span class="hits">14</span>
3595
+ <li class="covered" data-hits="21" data-linenumber="96">
3596
+ <span class="hits">21</span>
3621
3597
 
3622
3598
  <code class="ruby"> target_lines = []</code>
3623
3599
  </li>
3624
3600
 
3625
- <li class="covered" data-hits="14" data-linenumber="95">
3626
- <span class="hits">14</span>
3601
+ <li class="covered" data-hits="21" data-linenumber="97">
3602
+ <span class="hits">21</span>
3627
3603
 
3628
3604
  <code class="ruby"> prev_line = nil</code>
3629
3605
  </li>
3630
3606
 
3631
- <li class="covered" data-hits="14" data-linenumber="96">
3632
- <span class="hits">14</span>
3607
+ <li class="covered" data-hits="21" data-linenumber="98">
3608
+ <span class="hits">21</span>
3633
3609
 
3634
3610
  <code class="ruby"> hunk.each_line do |line|</code>
3635
3611
  </li>
3636
3612
 
3637
- <li class="covered" data-hits="50" data-linenumber="97">
3638
- <span class="hits">50</span>
3613
+ <li class="covered" data-hits="75" data-linenumber="99">
3614
+ <span class="hits">75</span>
3639
3615
 
3640
3616
  <code class="ruby"> line_no = hunk_line_no(line, prev_line, hunk)</code>
3641
3617
  </li>
3642
3618
 
3643
- <li class="covered" data-hits="50" data-linenumber="98">
3644
- <span class="hits">50</span>
3619
+ <li class="covered" data-hits="75" data-linenumber="100">
3620
+ <span class="hits">75</span>
3645
3621
 
3646
3622
  <code class="ruby"> target_lines &lt;&lt; line_no unless line_no.nil?</code>
3647
3623
  </li>
3648
3624
 
3649
- <li class="covered" data-hits="50" data-linenumber="99">
3650
- <span class="hits">50</span>
3625
+ <li class="covered" data-hits="75" data-linenumber="101">
3626
+ <span class="hits">75</span>
3651
3627
 
3652
3628
  <code class="ruby"> prev_line = line</code>
3653
3629
  </li>
3654
3630
 
3655
- <li class="never" data-hits="" data-linenumber="100">
3631
+ <li class="never" data-hits="" data-linenumber="102">
3656
3632
 
3657
3633
 
3658
3634
  <code class="ruby"> end</code>
3659
3635
  </li>
3660
3636
 
3661
- <li class="covered" data-hits="14" data-linenumber="101">
3662
- <span class="hits">14</span>
3637
+ <li class="covered" data-hits="21" data-linenumber="103">
3638
+ <span class="hits">21</span>
3663
3639
 
3664
3640
  <code class="ruby"> target_lines</code>
3665
3641
  </li>
3666
3642
 
3667
- <li class="never" data-hits="" data-linenumber="102">
3643
+ <li class="never" data-hits="" data-linenumber="104">
3668
3644
 
3669
3645
 
3670
3646
  <code class="ruby"> end</code>
3671
3647
  </li>
3672
3648
 
3673
- <li class="never" data-hits="" data-linenumber="103">
3649
+ <li class="never" data-hits="" data-linenumber="105">
3674
3650
 
3675
3651
 
3676
3652
  <code class="ruby"></code>
3677
3653
  </li>
3678
3654
 
3679
- <li class="never" data-hits="" data-linenumber="104">
3655
+ <li class="never" data-hits="" data-linenumber="106">
3680
3656
 
3681
3657
 
3682
3658
  <code class="ruby"> # Figure out the line number for a change</code>
3683
3659
  </li>
3684
3660
 
3685
- <li class="never" data-hits="" data-linenumber="105">
3661
+ <li class="never" data-hits="" data-linenumber="107">
3686
3662
 
3687
3663
 
3688
3664
  <code class="ruby"> #</code>
3689
3665
  </li>
3690
3666
 
3691
- <li class="never" data-hits="" data-linenumber="106">
3667
+ <li class="never" data-hits="" data-linenumber="108">
3692
3668
 
3693
3669
 
3694
3670
  <code class="ruby"> # @param line [Rugged::Line]</code>
3695
3671
  </li>
3696
3672
 
3697
- <li class="never" data-hits="" data-linenumber="107">
3673
+ <li class="never" data-hits="" data-linenumber="109">
3698
3674
 
3699
3675
 
3700
3676
  <code class="ruby"> # @param prev_line [Rugged::Line]</code>
3701
3677
  </li>
3702
3678
 
3703
- <li class="never" data-hits="" data-linenumber="108">
3679
+ <li class="never" data-hits="" data-linenumber="110">
3704
3680
 
3705
3681
 
3706
3682
  <code class="ruby"> # @param hunk [Rugged::Hunk]</code>
3707
3683
  </li>
3708
3684
 
3709
- <li class="never" data-hits="" data-linenumber="109">
3685
+ <li class="never" data-hits="" data-linenumber="111">
3710
3686
 
3711
3687
 
3712
3688
  <code class="ruby"> # @return [int] A line number or nil</code>
3713
3689
  </li>
3714
3690
 
3715
- <li class="covered" data-hits="1" data-linenumber="110">
3691
+ <li class="covered" data-hits="1" data-linenumber="112">
3716
3692
  <span class="hits">1</span>
3717
3693
 
3718
3694
  <code class="ruby"> def hunk_line_no(line, prev_line, hunk)</code>
3719
3695
  </li>
3720
3696
 
3721
- <li class="covered" data-hits="50" data-linenumber="111">
3722
- <span class="hits">50</span>
3697
+ <li class="covered" data-hits="75" data-linenumber="113">
3698
+ <span class="hits">75</span>
3723
3699
 
3724
3700
  <code class="ruby"> case line.line_origin</code>
3725
3701
  </li>
3726
3702
 
3727
- <li class="never" data-hits="" data-linenumber="112">
3703
+ <li class="never" data-hits="" data-linenumber="114">
3728
3704
 
3729
3705
 
3730
3706
  <code class="ruby"> when :addition</code>
3731
3707
  </li>
3732
3708
 
3733
- <li class="covered" data-hits="22" data-linenumber="113">
3734
- <span class="hits">22</span>
3709
+ <li class="covered" data-hits="33" data-linenumber="115">
3710
+ <span class="hits">33</span>
3735
3711
 
3736
3712
  <code class="ruby"> if prev_line &amp;&amp; !prev_line.addition?</code>
3737
3713
  </li>
3738
3714
 
3739
- <li class="covered" data-hits="16" data-linenumber="114">
3740
- <span class="hits">16</span>
3715
+ <li class="covered" data-hits="24" data-linenumber="116">
3716
+ <span class="hits">24</span>
3741
3717
 
3742
3718
  <code class="ruby"> return prev_line.old_lineno</code>
3743
3719
  </li>
3744
3720
 
3745
- <li class="never" data-hits="" data-linenumber="115">
3721
+ <li class="never" data-hits="" data-linenumber="117">
3746
3722
 
3747
3723
 
3748
3724
  <code class="ruby"> elsif prev_line.nil?</code>
3749
3725
  </li>
3750
3726
 
3751
- <li class="covered" data-hits="6" data-linenumber="116">
3752
- <span class="hits">6</span>
3727
+ <li class="covered" data-hits="9" data-linenumber="118">
3728
+ <span class="hits">9</span>
3753
3729
 
3754
3730
  <code class="ruby"> return hunk.old_start</code>
3755
3731
  </li>
3756
3732
 
3757
- <li class="never" data-hits="" data-linenumber="117">
3733
+ <li class="never" data-hits="" data-linenumber="119">
3758
3734
 
3759
3735
 
3760
3736
  <code class="ruby"> end</code>
3761
3737
  </li>
3762
3738
 
3763
- <li class="never" data-hits="" data-linenumber="118">
3739
+ <li class="never" data-hits="" data-linenumber="120">
3764
3740
 
3765
3741
 
3766
3742
  <code class="ruby"> when :deletion</code>
3767
3743
  </li>
3768
3744
 
3769
- <li class="covered" data-hits="6" data-linenumber="119">
3770
- <span class="hits">6</span>
3745
+ <li class="covered" data-hits="9" data-linenumber="121">
3746
+ <span class="hits">9</span>
3771
3747
 
3772
3748
  <code class="ruby"> return line.old_lineno</code>
3773
3749
  </li>
3774
3750
 
3775
- <li class="never" data-hits="" data-linenumber="120">
3751
+ <li class="never" data-hits="" data-linenumber="122">
3776
3752
 
3777
3753
 
3778
3754
  <code class="ruby"> end</code>
3779
3755
  </li>
3780
3756
 
3781
- <li class="never" data-hits="" data-linenumber="121">
3757
+ <li class="never" data-hits="" data-linenumber="123">
3782
3758
 
3783
3759
 
3784
3760
  <code class="ruby"></code>
3785
3761
  </li>
3786
3762
 
3787
- <li class="never" data-hits="" data-linenumber="122">
3763
+ <li class="never" data-hits="" data-linenumber="124">
3788
3764
 
3789
3765
 
3790
3766
  <code class="ruby"> nil</code>
3791
3767
  </li>
3792
3768
 
3793
- <li class="never" data-hits="" data-linenumber="123">
3769
+ <li class="never" data-hits="" data-linenumber="125">
3794
3770
 
3795
3771
 
3796
3772
  <code class="ruby"> end</code>
3797
3773
  </li>
3798
3774
 
3799
- <li class="never" data-hits="" data-linenumber="124">
3775
+ <li class="never" data-hits="" data-linenumber="126">
3800
3776
 
3801
3777
 
3802
3778
  <code class="ruby"></code>
3803
3779
  </li>
3804
3780
 
3805
- <li class="covered" data-hits="1" data-linenumber="125">
3781
+ <li class="covered" data-hits="1" data-linenumber="127">
3806
3782
  <span class="hits">1</span>
3807
3783
 
3808
3784
  <code class="ruby"> def walker</code>
3809
3785
  </li>
3810
3786
 
3811
- <li class="covered" data-hits="6" data-linenumber="126">
3812
- <span class="hits">6</span>
3787
+ <li class="covered" data-hits="12" data-linenumber="128">
3788
+ <span class="hits">12</span>
3813
3789
 
3814
3790
  <code class="ruby"> @walker ||= Rugged::Walker.new(@repo)</code>
3815
3791
  </li>
3816
3792
 
3817
- <li class="never" data-hits="" data-linenumber="127">
3793
+ <li class="never" data-hits="" data-linenumber="129">
3818
3794
 
3819
3795
 
3820
3796
  <code class="ruby"> end</code>
3821
3797
  </li>
3822
3798
 
3823
- <li class="never" data-hits="" data-linenumber="128">
3799
+ <li class="never" data-hits="" data-linenumber="130">
3824
3800
 
3825
3801
 
3826
3802
  <code class="ruby"></code>
3827
3803
  </li>
3828
3804
 
3829
- <li class="never" data-hits="" data-linenumber="129">
3805
+ <li class="never" data-hits="" data-linenumber="131">
3830
3806
 
3831
3807
 
3832
3808
  <code class="ruby"> # Find the commit `anchor` has been run on, or the previous commit.</code>
3833
3809
  </li>
3834
3810
 
3835
- <li class="covered" data-hits="1" data-linenumber="130">
3811
+ <li class="covered" data-hits="1" data-linenumber="132">
3836
3812
  <span class="hits">1</span>
3837
3813
 
3838
3814
  <code class="ruby"> def anchored_commit</code>
3839
3815
  </li>
3840
3816
 
3841
- <li class="covered" data-hits="4" data-linenumber="131">
3842
- <span class="hits">4</span>
3817
+ <li class="covered" data-hits="6" data-linenumber="133">
3818
+ <span class="hits">6</span>
3843
3819
 
3844
3820
  <code class="ruby"> return @repo.lookup(@metadata.anchored_commit) if @metadata.anchored_commit</code>
3845
3821
  </li>
3846
3822
 
3847
- <li class="covered" data-hits="2" data-linenumber="132">
3848
- <span class="hits">2</span>
3823
+ <li class="covered" data-hits="4" data-linenumber="134">
3824
+ <span class="hits">4</span>
3849
3825
 
3850
3826
  <code class="ruby"> walker.sorting(Rugged::SORT_DATE)</code>
3851
3827
  </li>
3852
3828
 
3853
- <li class="covered" data-hits="2" data-linenumber="133">
3854
- <span class="hits">2</span>
3829
+ <li class="covered" data-hits="4" data-linenumber="135">
3830
+ <span class="hits">4</span>
3855
3831
 
3856
3832
  <code class="ruby"> walker.push(@repo.head.target)</code>
3857
3833
  </li>
3858
3834
 
3859
- <li class="covered" data-hits="2" data-linenumber="134">
3860
- <span class="hits">2</span>
3835
+ <li class="covered" data-hits="4" data-linenumber="136">
3836
+ <span class="hits">4</span>
3861
3837
 
3862
3838
  <code class="ruby"> commit = walker.find do |c|</code>
3863
3839
  </li>
3864
3840
 
3865
- <li class="missed" data-hits="0" data-linenumber="135">
3841
+ <li class="missed" data-hits="0" data-linenumber="137">
3866
3842
 
3867
3843
 
3868
3844
  <code class="ruby"> c.parents.size == 1</code>
3869
3845
  </li>
3870
3846
 
3871
- <li class="never" data-hits="" data-linenumber="136">
3847
+ <li class="never" data-hits="" data-linenumber="138">
3872
3848
 
3873
3849
 
3874
3850
  <code class="ruby"> end</code>
3875
3851
  </li>
3876
3852
 
3877
- <li class="covered" data-hits="2" data-linenumber="137">
3878
- <span class="hits">2</span>
3853
+ <li class="covered" data-hits="4" data-linenumber="139">
3854
+ <span class="hits">4</span>
3879
3855
 
3880
3856
  <code class="ruby"> @repo.lookup(commit.oid)</code>
3881
3857
  </li>
3882
3858
 
3883
- <li class="never" data-hits="" data-linenumber="138">
3859
+ <li class="never" data-hits="" data-linenumber="140">
3884
3860
 
3885
3861
 
3886
3862
  <code class="ruby"> end</code>
3887
3863
  </li>
3888
3864
 
3889
- <li class="never" data-hits="" data-linenumber="139">
3865
+ <li class="never" data-hits="" data-linenumber="141">
3890
3866
 
3891
3867
 
3892
3868
  <code class="ruby"></code>
3893
3869
  </li>
3894
3870
 
3895
- <li class="never" data-hits="" data-linenumber="140">
3871
+ <li class="never" data-hits="" data-linenumber="142">
3896
3872
 
3897
3873
 
3898
3874
  <code class="ruby"> # Check if the given file is a test file.</code>
3899
3875
  </li>
3900
3876
 
3901
- <li class="never" data-hits="" data-linenumber="141">
3877
+ <li class="never" data-hits="" data-linenumber="143">
3902
3878
 
3903
3879
 
3904
3880
  <code class="ruby"> #</code>
3905
3881
  </li>
3906
3882
 
3907
- <li class="never" data-hits="" data-linenumber="142">
3883
+ <li class="never" data-hits="" data-linenumber="144">
3908
3884
 
3909
3885
 
3910
3886
  <code class="ruby"> # @param file_from_mapping [String]</code>
3911
3887
  </li>
3912
3888
 
3913
- <li class="covered" data-hits="1" data-linenumber="143">
3889
+ <li class="covered" data-hits="1" data-linenumber="145">
3914
3890
  <span class="hits">1</span>
3915
3891
 
3916
3892
  <code class="ruby"> def test_file?(file_from_mapping)</code>
3917
3893
  </li>
3918
3894
 
3919
- <li class="covered" data-hits="18" data-linenumber="144">
3920
- <span class="hits">18</span>
3895
+ <li class="covered" data-hits="27" data-linenumber="146">
3896
+ <span class="hits">27</span>
3921
3897
 
3922
3898
  <code class="ruby"> @test_files.any? { |f| file_from_mapping.include?(f) }</code>
3923
3899
  </li>
3924
3900
 
3925
- <li class="never" data-hits="" data-linenumber="145">
3901
+ <li class="never" data-hits="" data-linenumber="147">
3926
3902
 
3927
3903
 
3928
3904
  <code class="ruby"> end</code>
3929
3905
  </li>
3930
3906
 
3931
- <li class="never" data-hits="" data-linenumber="146">
3907
+ <li class="never" data-hits="" data-linenumber="148">
3932
3908
 
3933
3909
 
3934
3910
  <code class="ruby"> end</code>
3935
3911
  </li>
3936
3912
 
3937
- <li class="never" data-hits="" data-linenumber="147">
3913
+ <li class="never" data-hits="" data-linenumber="149">
3938
3914
 
3939
3915
 
3940
3916
  <code class="ruby"> end</code>
3941
3917
  </li>
3942
3918
 
3943
- <li class="never" data-hits="" data-linenumber="148">
3919
+ <li class="never" data-hits="" data-linenumber="150">
3944
3920
 
3945
3921
 
3946
3922
  <code class="ruby">end</code>
@@ -3950,7 +3926,7 @@
3950
3926
  </pre>
3951
3927
  </div>
3952
3928
 
3953
- <div class="source_table" id="e761bfd030f224e683498eb5846e3cfae6265a8e">
3929
+ <div class="source_table" id="ed31007e349a82b5423f069161b520d00fb0477d">
3954
3930
  <div class="header">
3955
3931
  <h3>lib/wtt/core/storage.rb</h3>
3956
3932
  <h4><span class="red">65.12 %</span> covered</h4>
@@ -3991,7 +3967,7 @@
3991
3967
  <li class="never" data-hits="" data-linenumber="5">
3992
3968
 
3993
3969
 
3994
- <code class="ruby"> # A utility class to store WTT data such as test-to-code mapping and metadata.</code>
3970
+ <code class="ruby"> # A utility class to store test-to-code mapping and metadata.</code>
3995
3971
  </li>
3996
3972
 
3997
3973
  <li class="covered" data-hits="1" data-linenumber="6">
@@ -4156,343 +4132,325 @@
4156
4132
  <code class="ruby"> # @param value [Hash]</code>
4157
4133
  </li>
4158
4134
 
4159
- <li class="never" data-hits="" data-linenumber="33">
4160
-
4161
-
4162
- <code class="ruby"> # rubocop:disable Metrics/AbcSize</code>
4163
- </li>
4164
-
4165
- <li class="covered" data-hits="1" data-linenumber="34">
4135
+ <li class="covered" data-hits="1" data-linenumber="33">
4166
4136
  <span class="hits">1</span>
4167
4137
 
4168
4138
  <code class="ruby"> def write!(section, value)</code>
4169
4139
  </li>
4170
4140
 
4171
- <li class="covered" data-hits="2" data-linenumber="35">
4141
+ <li class="covered" data-hits="2" data-linenumber="34">
4172
4142
  <span class="hits">2</span>
4173
4143
 
4174
- <code class="ruby"> fail &#39;Data cannot be written to the storage back in git history&#39; unless @sha.nil?</code>
4144
+ <code class="ruby"> fail &#39;Data cannot be written back in git history&#39; unless @sha.nil?</code>
4175
4145
  </li>
4176
4146
 
4177
- <li class="covered" data-hits="1" data-linenumber="36">
4147
+ <li class="covered" data-hits="1" data-linenumber="35">
4178
4148
  <span class="hits">1</span>
4179
4149
 
4180
4150
  <code class="ruby"> File.open(WTT::Core.wtt_root, File::RDWR | File::CREAT, 0644) do |f|</code>
4181
4151
  </li>
4182
4152
 
4183
- <li class="covered" data-hits="1" data-linenumber="37">
4153
+ <li class="covered" data-hits="1" data-linenumber="36">
4184
4154
  <span class="hits">1</span>
4185
4155
 
4186
4156
  <code class="ruby"> f.flock(File::LOCK_EX)</code>
4187
4157
  </li>
4188
4158
 
4189
- <li class="covered" data-hits="1" data-linenumber="38">
4159
+ <li class="covered" data-hits="1" data-linenumber="37">
4190
4160
  <span class="hits">1</span>
4191
4161
 
4192
- <code class="ruby"> data = data_from_str( f.read )</code>
4162
+ <code class="ruby"> data = data_from_str(f.read)</code>
4193
4163
  </li>
4194
4164
 
4195
- <li class="covered" data-hits="1" data-linenumber="39">
4165
+ <li class="covered" data-hits="1" data-linenumber="38">
4196
4166
  <span class="hits">1</span>
4197
4167
 
4198
4168
  <code class="ruby"> data[section] = value</code>
4199
4169
  </li>
4200
4170
 
4201
- <li class="covered" data-hits="1" data-linenumber="40">
4171
+ <li class="covered" data-hits="1" data-linenumber="39">
4202
4172
  <span class="hits">1</span>
4203
4173
 
4204
4174
  <code class="ruby"> f.rewind</code>
4205
4175
  </li>
4206
4176
 
4207
- <li class="covered" data-hits="1" data-linenumber="41">
4177
+ <li class="covered" data-hits="1" data-linenumber="40">
4208
4178
  <span class="hits">1</span>
4209
4179
 
4210
4180
  <code class="ruby"> f.write(data.to_json)</code>
4211
4181
  </li>
4212
4182
 
4213
- <li class="covered" data-hits="1" data-linenumber="42">
4183
+ <li class="covered" data-hits="1" data-linenumber="41">
4214
4184
  <span class="hits">1</span>
4215
4185
 
4216
4186
  <code class="ruby"> f.flush</code>
4217
4187
  </li>
4218
4188
 
4219
- <li class="covered" data-hits="1" data-linenumber="43">
4189
+ <li class="covered" data-hits="1" data-linenumber="42">
4220
4190
  <span class="hits">1</span>
4221
4191
 
4222
4192
  <code class="ruby"> f.truncate(f.pos)</code>
4223
4193
  </li>
4224
4194
 
4225
- <li class="never" data-hits="" data-linenumber="44">
4195
+ <li class="never" data-hits="" data-linenumber="43">
4226
4196
 
4227
4197
 
4228
4198
  <code class="ruby"> end</code>
4229
4199
  </li>
4230
4200
 
4231
- <li class="never" data-hits="" data-linenumber="45">
4201
+ <li class="never" data-hits="" data-linenumber="44">
4232
4202
 
4233
4203
 
4234
4204
  <code class="ruby"> end</code>
4235
4205
  </li>
4236
4206
 
4237
- <li class="never" data-hits="" data-linenumber="46">
4238
-
4239
-
4240
- <code class="ruby"> # rubocop:enable Metrics/AbcSize</code>
4241
- </li>
4242
-
4243
- <li class="never" data-hits="" data-linenumber="47">
4207
+ <li class="never" data-hits="" data-linenumber="45">
4244
4208
 
4245
4209
 
4246
4210
  <code class="ruby"></code>
4247
4211
  </li>
4248
4212
 
4249
- <li class="covered" data-hits="1" data-linenumber="48">
4213
+ <li class="covered" data-hits="1" data-linenumber="46">
4250
4214
  <span class="hits">1</span>
4251
4215
 
4252
4216
  <code class="ruby"> private</code>
4253
4217
  </li>
4254
4218
 
4255
- <li class="never" data-hits="" data-linenumber="49">
4219
+ <li class="never" data-hits="" data-linenumber="47">
4256
4220
 
4257
4221
 
4258
4222
  <code class="ruby"></code>
4259
4223
  </li>
4260
4224
 
4261
- <li class="covered" data-hits="1" data-linenumber="50">
4225
+ <li class="covered" data-hits="1" data-linenumber="48">
4262
4226
  <span class="hits">1</span>
4263
4227
 
4264
4228
  <code class="ruby"> def data_from_str(str)</code>
4265
4229
  </li>
4266
4230
 
4267
- <li class="covered" data-hits="3" data-linenumber="51">
4231
+ <li class="covered" data-hits="3" data-linenumber="49">
4268
4232
  <span class="hits">3</span>
4269
4233
 
4270
4234
  <code class="ruby"> str.length &gt; 0 ? JSON.parse(str) : {}</code>
4271
4235
  </li>
4272
4236
 
4273
- <li class="never" data-hits="" data-linenumber="52">
4237
+ <li class="never" data-hits="" data-linenumber="50">
4274
4238
 
4275
4239
 
4276
4240
  <code class="ruby"> end</code>
4277
4241
  </li>
4278
4242
 
4279
- <li class="never" data-hits="" data-linenumber="53">
4243
+ <li class="never" data-hits="" data-linenumber="51">
4280
4244
 
4281
4245
 
4282
4246
  <code class="ruby"></code>
4283
4247
  </li>
4284
4248
 
4285
- <li class="covered" data-hits="1" data-linenumber="54">
4249
+ <li class="covered" data-hits="1" data-linenumber="52">
4286
4250
  <span class="hits">1</span>
4287
4251
 
4288
4252
  <code class="ruby"> def filename_from_repository_root</code>
4289
4253
  </li>
4290
4254
 
4291
- <li class="missed" data-hits="0" data-linenumber="55">
4255
+ <li class="missed" data-hits="0" data-linenumber="53">
4292
4256
 
4293
4257
 
4294
4258
  <code class="ruby"> WTT::Core.wtt_root.gsub(@repo.workdir, &#39;&#39;)</code>
4295
4259
  </li>
4296
4260
 
4297
- <li class="never" data-hits="" data-linenumber="56">
4261
+ <li class="never" data-hits="" data-linenumber="54">
4298
4262
 
4299
4263
 
4300
4264
  <code class="ruby"> end</code>
4301
4265
  </li>
4302
4266
 
4303
- <li class="never" data-hits="" data-linenumber="57">
4267
+ <li class="never" data-hits="" data-linenumber="55">
4304
4268
 
4305
4269
 
4306
4270
  <code class="ruby"></code>
4307
4271
  </li>
4308
4272
 
4309
- <li class="covered" data-hits="1" data-linenumber="58">
4273
+ <li class="covered" data-hits="1" data-linenumber="56">
4310
4274
  <span class="hits">1</span>
4311
4275
 
4312
4276
  <code class="ruby"> def storage_file_oid</code>
4313
4277
  </li>
4314
4278
 
4315
- <li class="missed" data-hits="0" data-linenumber="59">
4279
+ <li class="missed" data-hits="0" data-linenumber="57">
4316
4280
 
4317
4281
 
4318
4282
  <code class="ruby"> paths = filename_from_repository_root.split(File::SEPARATOR)</code>
4319
4283
  </li>
4320
4284
 
4321
- <li class="missed" data-hits="0" data-linenumber="60">
4285
+ <li class="missed" data-hits="0" data-linenumber="58">
4322
4286
 
4323
4287
 
4324
4288
  <code class="ruby"> obj = find_file_in_repo paths</code>
4325
4289
  </li>
4326
4290
 
4327
- <li class="missed" data-hits="0" data-linenumber="61">
4291
+ <li class="missed" data-hits="0" data-linenumber="59">
4328
4292
 
4329
4293
 
4330
4294
  <code class="ruby"> return nil unless obj</code>
4331
4295
  </li>
4332
4296
 
4333
- <li class="missed" data-hits="0" data-linenumber="62">
4297
+ <li class="missed" data-hits="0" data-linenumber="60">
4334
4298
 
4335
4299
 
4336
4300
  <code class="ruby"> obj[:oid]</code>
4337
4301
  </li>
4338
4302
 
4339
- <li class="never" data-hits="" data-linenumber="63">
4303
+ <li class="never" data-hits="" data-linenumber="61">
4340
4304
 
4341
4305
 
4342
4306
  <code class="ruby"> end</code>
4343
4307
  </li>
4344
4308
 
4345
- <li class="never" data-hits="" data-linenumber="64">
4309
+ <li class="never" data-hits="" data-linenumber="62">
4346
4310
 
4347
4311
 
4348
4312
  <code class="ruby"></code>
4349
4313
  </li>
4350
4314
 
4351
- <li class="covered" data-hits="1" data-linenumber="65">
4315
+ <li class="covered" data-hits="1" data-linenumber="63">
4352
4316
  <span class="hits">1</span>
4353
4317
 
4354
4318
  <code class="ruby"> def find_file_in_repo(paths)</code>
4355
4319
  </li>
4356
4320
 
4357
- <li class="missed" data-hits="0" data-linenumber="66">
4321
+ <li class="missed" data-hits="0" data-linenumber="64">
4358
4322
 
4359
4323
 
4360
4324
  <code class="ruby"> tree = @repo.lookup(@sha).tree</code>
4361
4325
  </li>
4362
4326
 
4363
- <li class="missed" data-hits="0" data-linenumber="67">
4327
+ <li class="missed" data-hits="0" data-linenumber="65">
4364
4328
 
4365
4329
 
4366
4330
  <code class="ruby"> dirs = paths[0...-1]</code>
4367
4331
  </li>
4368
4332
 
4369
- <li class="missed" data-hits="0" data-linenumber="68">
4333
+ <li class="missed" data-hits="0" data-linenumber="66">
4370
4334
 
4371
4335
 
4372
4336
  <code class="ruby"> filename = paths[-1]</code>
4373
4337
  </li>
4374
4338
 
4375
- <li class="never" data-hits="" data-linenumber="69">
4339
+ <li class="never" data-hits="" data-linenumber="67">
4376
4340
 
4377
4341
 
4378
4342
  <code class="ruby"></code>
4379
4343
  </li>
4380
4344
 
4381
- <li class="missed" data-hits="0" data-linenumber="70">
4345
+ <li class="missed" data-hits="0" data-linenumber="68">
4382
4346
 
4383
4347
 
4384
4348
  <code class="ruby"> dirs.each do |dir|</code>
4385
4349
  </li>
4386
4350
 
4387
- <li class="missed" data-hits="0" data-linenumber="71">
4351
+ <li class="missed" data-hits="0" data-linenumber="69">
4388
4352
 
4389
4353
 
4390
4354
  <code class="ruby"> obj = tree[dir]</code>
4391
4355
  </li>
4392
4356
 
4393
- <li class="missed" data-hits="0" data-linenumber="72">
4357
+ <li class="missed" data-hits="0" data-linenumber="70">
4394
4358
 
4395
4359
 
4396
4360
  <code class="ruby"> return nil unless obj</code>
4397
4361
  </li>
4398
4362
 
4399
- <li class="missed" data-hits="0" data-linenumber="73">
4363
+ <li class="missed" data-hits="0" data-linenumber="71">
4400
4364
 
4401
4365
 
4402
4366
  <code class="ruby"> tree = @repo.lookup(obj[:oid])</code>
4403
4367
  </li>
4404
4368
 
4405
- <li class="never" data-hits="" data-linenumber="74">
4369
+ <li class="never" data-hits="" data-linenumber="72">
4406
4370
 
4407
4371
 
4408
4372
  <code class="ruby"> end</code>
4409
4373
  </li>
4410
4374
 
4411
- <li class="missed" data-hits="0" data-linenumber="75">
4375
+ <li class="missed" data-hits="0" data-linenumber="73">
4412
4376
 
4413
4377
 
4414
4378
  <code class="ruby"> tree[filename]</code>
4415
4379
  </li>
4416
4380
 
4417
- <li class="never" data-hits="" data-linenumber="76">
4381
+ <li class="never" data-hits="" data-linenumber="74">
4418
4382
 
4419
4383
 
4420
4384
  <code class="ruby"> end</code>
4421
4385
  </li>
4422
4386
 
4423
- <li class="never" data-hits="" data-linenumber="77">
4424
-
4425
-
4426
- <code class="ruby"></code>
4427
- </li>
4428
-
4429
- <li class="never" data-hits="" data-linenumber="78">
4387
+ <li class="never" data-hits="" data-linenumber="75">
4430
4388
 
4431
4389
 
4432
4390
  <code class="ruby"></code>
4433
4391
  </li>
4434
4392
 
4435
- <li class="covered" data-hits="1" data-linenumber="79">
4393
+ <li class="covered" data-hits="1" data-linenumber="76">
4436
4394
  <span class="hits">1</span>
4437
4395
 
4438
4396
  <code class="ruby"> def read_storage_content</code>
4439
4397
  </li>
4440
4398
 
4441
- <li class="covered" data-hits="2" data-linenumber="80">
4399
+ <li class="covered" data-hits="2" data-linenumber="77">
4442
4400
  <span class="hits">2</span>
4443
4401
 
4444
4402
  <code class="ruby"> if @sha</code>
4445
4403
  </li>
4446
4404
 
4447
- <li class="missed" data-hits="0" data-linenumber="81">
4405
+ <li class="missed" data-hits="0" data-linenumber="78">
4448
4406
 
4449
4407
 
4450
4408
  <code class="ruby"> oid = storage_file_oid</code>
4451
4409
  </li>
4452
4410
 
4453
- <li class="missed" data-hits="0" data-linenumber="82">
4411
+ <li class="missed" data-hits="0" data-linenumber="79">
4454
4412
 
4455
4413
 
4456
4414
  <code class="ruby"> oid.nil? ? &#39;&#39; : @repo.lookup(oid).content</code>
4457
4415
  </li>
4458
4416
 
4459
- <li class="never" data-hits="" data-linenumber="83">
4417
+ <li class="never" data-hits="" data-linenumber="80">
4460
4418
 
4461
4419
 
4462
4420
  <code class="ruby"> else</code>
4463
4421
  </li>
4464
4422
 
4465
- <li class="covered" data-hits="2" data-linenumber="84">
4423
+ <li class="covered" data-hits="2" data-linenumber="81">
4466
4424
  <span class="hits">2</span>
4467
4425
 
4468
4426
  <code class="ruby"> File.exist?(WTT::Core.wtt_root) ? File.read(WTT::Core.wtt_root) : &#39;&#39;</code>
4469
4427
  </li>
4470
4428
 
4471
- <li class="never" data-hits="" data-linenumber="85">
4429
+ <li class="never" data-hits="" data-linenumber="82">
4472
4430
 
4473
4431
 
4474
4432
  <code class="ruby"> end</code>
4475
4433
  </li>
4476
4434
 
4477
- <li class="never" data-hits="" data-linenumber="86">
4435
+ <li class="never" data-hits="" data-linenumber="83">
4478
4436
 
4479
4437
 
4480
4438
  <code class="ruby"> end</code>
4481
4439
  </li>
4482
4440
 
4483
- <li class="never" data-hits="" data-linenumber="87">
4441
+ <li class="never" data-hits="" data-linenumber="84">
4484
4442
 
4485
4443
 
4486
4444
  <code class="ruby"> end</code>
4487
4445
  </li>
4488
4446
 
4489
- <li class="never" data-hits="" data-linenumber="88">
4447
+ <li class="never" data-hits="" data-linenumber="85">
4490
4448
 
4491
4449
 
4492
4450
  <code class="ruby"> end</code>
4493
4451
  </li>
4494
4452
 
4495
- <li class="never" data-hits="" data-linenumber="89">
4453
+ <li class="never" data-hits="" data-linenumber="86">
4496
4454
 
4497
4455
 
4498
4456
  <code class="ruby">end</code>
@@ -4502,14 +4460,14 @@
4502
4460
  </pre>
4503
4461
  </div>
4504
4462
 
4505
- <div class="source_table" id="e90fcf17ccfdbc17e959405364dcdd1a4e65977b">
4463
+ <div class="source_table" id="77a24ed8ec73ced55c076fbee453a8ebc41d4c48">
4506
4464
  <div class="header">
4507
4465
  <h3>lib/wtt/core/trace_service.rb</h3>
4508
- <h4><span class="yellow">84.0 %</span> covered</h4>
4466
+ <h4><span class="green">100.0 %</span> covered</h4>
4509
4467
  <div>
4510
4468
  <b>25</b> relevant lines.
4511
- <span class="green"><b>21</b> lines covered</span> and
4512
- <span class="red"><b>4</b> lines missed.</span>
4469
+ <span class="green"><b>25</b> lines covered</span> and
4470
+ <span class="red"><b>0</b> lines missed.</span>
4513
4471
  </div>
4514
4472
  </div>
4515
4473
 
@@ -4588,20 +4546,20 @@
4588
4546
  <code class="ruby"> @trace = TracePoint.new(:line) do |tp|</code>
4589
4547
  </li>
4590
4548
 
4591
- <li class="missed" data-hits="0" data-linenumber="13">
4592
-
4549
+ <li class="covered" data-hits="159430" data-linenumber="13">
4550
+ <span class="hits">159430</span>
4593
4551
 
4594
- <code class="ruby"> if should_include_file?( tp.path )</code>
4552
+ <code class="ruby"> if should_include_file?(tp.path)</code>
4595
4553
  </li>
4596
4554
 
4597
- <li class="missed" data-hits="0" data-linenumber="14">
4598
-
4555
+ <li class="covered" data-hits="4850" data-linenumber="14">
4556
+ <span class="hits">4850</span>
4599
4557
 
4600
4558
  <code class="ruby"> old_count = @coverage[tp.path][tp.lineno].to_i</code>
4601
4559
  </li>
4602
4560
 
4603
- <li class="missed" data-hits="0" data-linenumber="15">
4604
-
4561
+ <li class="covered" data-hits="4850" data-linenumber="15">
4562
+ <span class="hits">4850</span>
4605
4563
 
4606
4564
  <code class="ruby"> @coverage[tp.path][tp.lineno] = old_count + 1</code>
4607
4565
  </li>
@@ -4711,7 +4669,7 @@
4711
4669
  <li class="covered" data-hits="4" data-linenumber="33">
4712
4670
  <span class="hits">4</span>
4713
4671
 
4714
- <code class="ruby"> return results</code>
4672
+ <code class="ruby"> results</code>
4715
4673
  </li>
4716
4674
 
4717
4675
  <li class="never" data-hits="" data-linenumber="34">
@@ -4744,8 +4702,8 @@
4744
4702
  <code class="ruby"> def reset_coverage</code>
4745
4703
  </li>
4746
4704
 
4747
- <li class="covered" data-hits="6" data-linenumber="39">
4748
- <span class="hits">6</span>
4705
+ <li class="covered" data-hits="23" data-linenumber="39">
4706
+ <span class="hits">23</span>
4749
4707
 
4750
4708
  <code class="ruby"> @coverage = Hash.new { |h, k| h[k] = [] }</code>
4751
4709
  </li>
@@ -4768,10 +4726,10 @@
4768
4726
  <code class="ruby"> def should_include_file?(path)</code>
4769
4727
  </li>
4770
4728
 
4771
- <li class="missed" data-hits="0" data-linenumber="43">
4772
-
4729
+ <li class="covered" data-hits="585374" data-linenumber="43">
4730
+ <span class="hits">585374</span>
4773
4731
 
4774
- <code class="ruby"> !WTT.configuration.reject_filters.any? {|f| f.match(path)}</code>
4732
+ <code class="ruby"> !WTT.configuration.reject_filters.any? { |f| f.match(path) }</code>
4775
4733
  </li>
4776
4734
 
4777
4735
  <li class="never" data-hits="" data-linenumber="44">
@@ -4802,14 +4760,14 @@
4802
4760
  </pre>
4803
4761
  </div>
4804
4762
 
4805
- <div class="source_table" id="ea64ceaff018f098a50f8262c943c46593657c13">
4763
+ <div class="source_table" id="e5b5463381db9cd184362202d23ac9e2746c1342">
4806
4764
  <div class="header">
4807
4765
  <h3>lib/wtt/core/tracer.rb</h3>
4808
- <h4><span class="green">90.38 %</span> covered</h4>
4766
+ <h4><span class="green">98.08 %</span> covered</h4>
4809
4767
  <div>
4810
4768
  <b>52</b> relevant lines.
4811
- <span class="green"><b>47</b> lines covered</span> and
4812
- <span class="red"><b>5</b> lines missed.</span>
4769
+ <span class="green"><b>51</b> lines covered</span> and
4770
+ <span class="red"><b>1</b> lines missed.</span>
4813
4771
  </div>
4814
4772
  </div>
4815
4773
 
@@ -5041,13 +4999,13 @@
5041
4999
  <li class="covered" data-hits="2" data-linenumber="38">
5042
5000
  <span class="hits">2</span>
5043
5001
 
5044
- <code class="ruby"> if local.has_key? (filename)</code>
5002
+ <code class="ruby"> if local.key?(filename)</code>
5045
5003
  </li>
5046
5004
 
5047
5005
  <li class="covered" data-hits="2" data-linenumber="39">
5048
5006
  <span class="hits">2</span>
5049
5007
 
5050
- <code class="ruby"> remote_coverage.each_with_index do |v, i |</code>
5008
+ <code class="ruby"> remote_coverage.each_with_index do |v, i|</code>
5051
5009
  </li>
5052
5010
 
5053
5011
  <li class="never" data-hits="" data-linenumber="40">
@@ -5110,277 +5068,265 @@
5110
5068
  <code class="ruby"></code>
5111
5069
  </li>
5112
5070
 
5113
- <li class="never" data-hits="" data-linenumber="50">
5114
-
5115
-
5116
- <code class="ruby"></code>
5117
- </li>
5118
-
5119
- <li class="covered" data-hits="1" data-linenumber="51">
5071
+ <li class="covered" data-hits="1" data-linenumber="50">
5120
5072
  <span class="hits">1</span>
5121
5073
 
5122
5074
  <code class="ruby"> def start_remotes</code>
5123
5075
  </li>
5124
5076
 
5125
- <li class="covered" data-hits="6" data-linenumber="52">
5126
- <span class="hits">6</span>
5077
+ <li class="covered" data-hits="4" data-linenumber="51">
5078
+ <span class="hits">4</span>
5127
5079
 
5128
- <code class="ruby"> @remotes.each { |r| r.start_trace }</code>
5080
+ <code class="ruby"> @remotes.each(&amp;:start_trace)</code>
5129
5081
  </li>
5130
5082
 
5131
- <li class="never" data-hits="" data-linenumber="53">
5083
+ <li class="never" data-hits="" data-linenumber="52">
5132
5084
 
5133
5085
 
5134
5086
  <code class="ruby"> end</code>
5135
5087
  </li>
5136
5088
 
5137
- <li class="never" data-hits="" data-linenumber="54">
5089
+ <li class="never" data-hits="" data-linenumber="53">
5138
5090
 
5139
5091
 
5140
5092
  <code class="ruby"></code>
5141
5093
  </li>
5142
5094
 
5143
- <li class="covered" data-hits="1" data-linenumber="55">
5095
+ <li class="covered" data-hits="1" data-linenumber="54">
5144
5096
  <span class="hits">1</span>
5145
5097
 
5146
5098
  <code class="ruby"> def stop_remotes</code>
5147
5099
  </li>
5148
5100
 
5149
- <li class="covered" data-hits="6" data-linenumber="56">
5150
- <span class="hits">6</span>
5101
+ <li class="covered" data-hits="4" data-linenumber="55">
5102
+ <span class="hits">4</span>
5151
5103
 
5152
- <code class="ruby"> @remotes.each { |r| r.stop_trace }</code>
5104
+ <code class="ruby"> @remotes.each(&amp;:stop_trace)</code>
5153
5105
  </li>
5154
5106
 
5155
- <li class="never" data-hits="" data-linenumber="57">
5107
+ <li class="never" data-hits="" data-linenumber="56">
5156
5108
 
5157
5109
 
5158
5110
  <code class="ruby"> end</code>
5159
5111
  </li>
5160
5112
 
5161
- <li class="never" data-hits="" data-linenumber="58">
5113
+ <li class="never" data-hits="" data-linenumber="57">
5162
5114
 
5163
5115
 
5164
5116
  <code class="ruby"></code>
5165
5117
  </li>
5166
5118
 
5167
- <li class="covered" data-hits="1" data-linenumber="59">
5119
+ <li class="covered" data-hits="1" data-linenumber="58">
5168
5120
  <span class="hits">1</span>
5169
5121
 
5170
5122
  <code class="ruby"> def reset_coverage</code>
5171
5123
  </li>
5172
5124
 
5173
- <li class="covered" data-hits="7" data-linenumber="60">
5174
- <span class="hits">7</span>
5125
+ <li class="covered" data-hits="12" data-linenumber="59">
5126
+ <span class="hits">12</span>
5175
5127
 
5176
5128
  <code class="ruby"> @coverage = Hash.new { |h, k| h[k] = [] }</code>
5177
5129
  </li>
5178
5130
 
5179
- <li class="never" data-hits="" data-linenumber="61">
5131
+ <li class="never" data-hits="" data-linenumber="60">
5180
5132
 
5181
5133
 
5182
5134
  <code class="ruby"> end</code>
5183
5135
  </li>
5184
5136
 
5185
- <li class="never" data-hits="" data-linenumber="62">
5137
+ <li class="never" data-hits="" data-linenumber="61">
5186
5138
 
5187
5139
 
5188
5140
  <code class="ruby"></code>
5189
5141
  </li>
5190
5142
 
5191
- <li class="covered" data-hits="1" data-linenumber="63">
5143
+ <li class="covered" data-hits="1" data-linenumber="62">
5192
5144
  <span class="hits">1</span>
5193
5145
 
5194
5146
  <code class="ruby"> def should_include_file?(path)</code>
5195
5147
  </li>
5196
5148
 
5197
- <li class="missed" data-hits="0" data-linenumber="64">
5149
+ <li class="covered" data-hits="791" data-linenumber="63">
5150
+ <span class="hits">791</span>
5198
5151
 
5199
-
5200
- <code class="ruby"> !WTT.configuration.reject_filters.any? {|f| f.match(path)}</code>
5152
+ <code class="ruby"> !WTT.configuration.reject_filters.any? { |f| f.match(path) }</code>
5201
5153
  </li>
5202
5154
 
5203
- <li class="never" data-hits="" data-linenumber="65">
5155
+ <li class="never" data-hits="" data-linenumber="64">
5204
5156
 
5205
5157
 
5206
5158
  <code class="ruby"> end</code>
5207
5159
  </li>
5208
5160
 
5209
- <li class="never" data-hits="" data-linenumber="66">
5161
+ <li class="never" data-hits="" data-linenumber="65">
5210
5162
 
5211
5163
 
5212
5164
  <code class="ruby"></code>
5213
5165
  </li>
5214
5166
 
5215
- <li class="covered" data-hits="1" data-linenumber="67">
5167
+ <li class="covered" data-hits="1" data-linenumber="66">
5216
5168
  <span class="hits">1</span>
5217
5169
 
5218
5170
  <code class="ruby"> def tracepoint</code>
5219
5171
  </li>
5220
5172
 
5221
- <li class="never" data-hits="" data-linenumber="68">
5173
+ <li class="never" data-hits="" data-linenumber="67">
5222
5174
 
5223
5175
 
5224
5176
  <code class="ruby"> @trace ||= TracePoint.new(:line, :call, :return) do |tp|</code>
5225
5177
  </li>
5226
5178
 
5227
- <li class="never" data-hits="" data-linenumber="69">
5228
-
5229
-
5230
- <code class="ruby"></code>
5231
- </li>
5232
-
5233
- <li class="missed" data-hits="0" data-linenumber="70">
5179
+ <li class="covered" data-hits="160" data-linenumber="68">
5180
+ <span class="hits">160</span>
5234
5181
 
5235
-
5236
- <code class="ruby"> if should_include_file?( tp.path )</code>
5182
+ <code class="ruby"> if should_include_file?(tp.path)</code>
5237
5183
  </li>
5238
5184
 
5239
- <li class="missed" data-hits="0" data-linenumber="71">
5240
-
5185
+ <li class="covered" data-hits="22" data-linenumber="69">
5186
+ <span class="hits">22</span>
5241
5187
 
5242
5188
  <code class="ruby"> old_count = @coverage[tp.path][tp.lineno].to_i</code>
5243
5189
  </li>
5244
5190
 
5245
- <li class="missed" data-hits="0" data-linenumber="72">
5246
-
5191
+ <li class="covered" data-hits="22" data-linenumber="70">
5192
+ <span class="hits">22</span>
5247
5193
 
5248
5194
  <code class="ruby"> @coverage[tp.path][tp.lineno] = old_count + 1</code>
5249
5195
  </li>
5250
5196
 
5251
- <li class="never" data-hits="" data-linenumber="73">
5197
+ <li class="never" data-hits="" data-linenumber="71">
5252
5198
 
5253
5199
 
5254
5200
  <code class="ruby"> end</code>
5255
5201
  </li>
5256
5202
 
5257
- <li class="covered" data-hits="8" data-linenumber="74">
5203
+ <li class="covered" data-hits="8" data-linenumber="72">
5258
5204
  <span class="hits">8</span>
5259
5205
 
5260
5206
  <code class="ruby"> end</code>
5261
5207
  </li>
5262
5208
 
5263
- <li class="never" data-hits="" data-linenumber="75">
5209
+ <li class="never" data-hits="" data-linenumber="73">
5264
5210
 
5265
5211
 
5266
5212
  <code class="ruby"> end</code>
5267
5213
  </li>
5268
5214
 
5269
- <li class="never" data-hits="" data-linenumber="76">
5215
+ <li class="never" data-hits="" data-linenumber="74">
5270
5216
 
5271
5217
 
5272
5218
  <code class="ruby"></code>
5273
5219
  </li>
5274
5220
 
5275
- <li class="covered" data-hits="1" data-linenumber="77">
5221
+ <li class="covered" data-hits="1" data-linenumber="75">
5276
5222
  <span class="hits">1</span>
5277
5223
 
5278
5224
  <code class="ruby"> def connect_remotes(remote_uris)</code>
5279
5225
  </li>
5280
5226
 
5281
- <li class="covered" data-hits="3" data-linenumber="78">
5227
+ <li class="covered" data-hits="3" data-linenumber="76">
5282
5228
  <span class="hits">3</span>
5283
5229
 
5284
5230
  <code class="ruby"> remote_uris.each do |remote_uri|</code>
5285
5231
  </li>
5286
5232
 
5287
- <li class="covered" data-hits="7" data-linenumber="79">
5233
+ <li class="covered" data-hits="7" data-linenumber="77">
5288
5234
  <span class="hits">7</span>
5289
5235
 
5290
5236
  <code class="ruby"> connect_remote remote_uri</code>
5291
5237
  </li>
5292
5238
 
5293
- <li class="never" data-hits="" data-linenumber="80">
5239
+ <li class="never" data-hits="" data-linenumber="78">
5294
5240
 
5295
5241
 
5296
5242
  <code class="ruby"> end</code>
5297
5243
  </li>
5298
5244
 
5299
- <li class="never" data-hits="" data-linenumber="81">
5245
+ <li class="never" data-hits="" data-linenumber="79">
5300
5246
 
5301
5247
 
5302
5248
  <code class="ruby"> end</code>
5303
5249
  </li>
5304
5250
 
5305
- <li class="never" data-hits="" data-linenumber="82">
5251
+ <li class="never" data-hits="" data-linenumber="80">
5306
5252
 
5307
5253
 
5308
5254
  <code class="ruby"></code>
5309
5255
  </li>
5310
5256
 
5311
- <li class="covered" data-hits="1" data-linenumber="83">
5257
+ <li class="covered" data-hits="1" data-linenumber="81">
5312
5258
  <span class="hits">1</span>
5313
5259
 
5314
5260
  <code class="ruby"> def connect_remote(remote_uri)</code>
5315
5261
  </li>
5316
5262
 
5317
- <li class="covered" data-hits="7" data-linenumber="84">
5263
+ <li class="covered" data-hits="7" data-linenumber="82">
5318
5264
  <span class="hits">7</span>
5319
5265
 
5320
5266
  <code class="ruby"> begin</code>
5321
5267
  </li>
5322
5268
 
5323
- <li class="covered" data-hits="7" data-linenumber="85">
5269
+ <li class="covered" data-hits="7" data-linenumber="83">
5324
5270
  <span class="hits">7</span>
5325
5271
 
5326
5272
  <code class="ruby"> service = DRbObject.new_with_uri(remote_uri)</code>
5327
5273
  </li>
5328
5274
 
5329
- <li class="never" data-hits="" data-linenumber="86">
5275
+ <li class="never" data-hits="" data-linenumber="84">
5330
5276
 
5331
5277
 
5332
5278
  <code class="ruby"> # Ask for the (empty) coverage to see if the service is live</code>
5333
5279
  </li>
5334
5280
 
5335
- <li class="covered" data-hits="1" data-linenumber="87">
5281
+ <li class="covered" data-hits="1" data-linenumber="85">
5336
5282
  <span class="hits">1</span>
5337
5283
 
5338
5284
  <code class="ruby"> service.coverage</code>
5339
5285
  </li>
5340
5286
 
5341
- <li class="covered" data-hits="1" data-linenumber="88">
5287
+ <li class="covered" data-hits="1" data-linenumber="86">
5342
5288
  <span class="hits">1</span>
5343
5289
 
5344
5290
  <code class="ruby"> @remotes &lt;&lt; service</code>
5345
5291
  </li>
5346
5292
 
5347
- <li class="covered" data-hits="6" data-linenumber="89">
5293
+ <li class="covered" data-hits="6" data-linenumber="87">
5348
5294
  <span class="hits">6</span>
5349
5295
 
5350
5296
  <code class="ruby"> rescue Exception =&gt; ex</code>
5351
5297
  </li>
5352
5298
 
5353
- <li class="covered" data-hits="6" data-linenumber="90">
5299
+ <li class="covered" data-hits="6" data-linenumber="88">
5354
5300
  <span class="hits">6</span>
5355
5301
 
5356
5302
  <code class="ruby"> warn &quot;Could not connect to Traced at #{remote_uri}. #{ex.message}&quot;</code>
5357
5303
  </li>
5358
5304
 
5359
- <li class="never" data-hits="" data-linenumber="91">
5305
+ <li class="never" data-hits="" data-linenumber="89">
5360
5306
 
5361
5307
 
5362
5308
  <code class="ruby"> end</code>
5363
5309
  </li>
5364
5310
 
5365
- <li class="never" data-hits="" data-linenumber="92">
5311
+ <li class="never" data-hits="" data-linenumber="90">
5366
5312
 
5367
5313
 
5368
5314
  <code class="ruby"> end</code>
5369
5315
  </li>
5370
5316
 
5371
- <li class="never" data-hits="" data-linenumber="93">
5317
+ <li class="never" data-hits="" data-linenumber="91">
5372
5318
 
5373
5319
 
5374
5320
  <code class="ruby"> end</code>
5375
5321
  </li>
5376
5322
 
5377
- <li class="never" data-hits="" data-linenumber="94">
5323
+ <li class="never" data-hits="" data-linenumber="92">
5378
5324
 
5379
5325
 
5380
5326
  <code class="ruby"> end</code>
5381
5327
  </li>
5382
5328
 
5383
- <li class="never" data-hits="" data-linenumber="95">
5329
+ <li class="never" data-hits="" data-linenumber="93">
5384
5330
 
5385
5331
 
5386
5332
  <code class="ruby">end</code>