slather 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,21 @@
1
+ //
2
+ // fixturesTwo.m
3
+ // fixturesTwo
4
+ //
5
+ // Created by Kent Sutherland on 4/17/16.
6
+ // Copyright © 2016 marklarr. All rights reserved.
7
+ //
8
+
9
+ #import "fixturesTwo.h"
10
+
11
+ @implementation fixturesTwo
12
+
13
+ - (NSInteger)doSomething
14
+ {
15
+ NSInteger a = 5;
16
+ NSInteger b = 6;
17
+
18
+ return a + b;
19
+ }
20
+
21
+ @end
@@ -2,10 +2,10 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>Branches.m - Slather</title>
5
- <link href="/Users/civetta/Works/Personal/slather/viteinfinite-slather/assets/slather.css" media="all" rel="stylesheet">
5
+ <link href="slather.css" media="all" rel="stylesheet">
6
6
  </head>
7
7
  <body>
8
- <header><div class="row"><a href="index.html"><img src="/Users/civetta/Works/Personal/slather/viteinfinite-slather/docs/logo.jpg" alt="Slather logo"></a></div></header><div class="row"><div id="reports">
8
+ <header><div class="row"><a href="index.html"><img src="logo.jpg" alt="Slather logo"></a></div></header><div class="row"><div id="reports">
9
9
  <h2 class="cov_title">
10
10
  <span>Coverage for "Branches.m" : </span><span class="cov_low">43.33%</span>
11
11
  </h2>
@@ -240,8 +240,8 @@
240
240
  </table>
241
241
  </div></div>
242
242
  <footer><div class="row">
243
- <p><a href="https://github.com/venmo/slather">Fork me on Github</a></p>
243
+ <p><a href="https://github.com/SlatherOrg/slather">Fork me on Github</a></p>
244
244
  <p>&copy; 2016 Slather</p>
245
- </div></footer><script src="/Users/civetta/Works/Personal/slather/viteinfinite-slather/assets/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script>
245
+ </div></footer><script src="highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script>
246
246
  </body>
247
247
  </html>
@@ -2,10 +2,10 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>BranchesTests.m - Slather</title>
5
- <link href="/Users/civetta/Works/Personal/slather/viteinfinite-slather/assets/slather.css" media="all" rel="stylesheet">
5
+ <link href="slather.css" media="all" rel="stylesheet">
6
6
  </head>
7
7
  <body>
8
- <header><div class="row"><a href="index.html"><img src="/Users/civetta/Works/Personal/slather/viteinfinite-slather/docs/logo.jpg" alt="Slather logo"></a></div></header><div class="row"><div id="reports">
8
+ <header><div class="row"><a href="index.html"><img src="logo.jpg" alt="Slather logo"></a></div></header><div class="row"><div id="reports">
9
9
  <h2 class="cov_title">
10
10
  <span>Coverage for "BranchesTests.m" : </span><span class="cov_high">100.00%</span>
11
11
  </h2>
@@ -205,8 +205,8 @@
205
205
  </table>
206
206
  </div></div>
207
207
  <footer><div class="row">
208
- <p><a href="https://github.com/venmo/slather">Fork me on Github</a></p>
208
+ <p><a href="https://github.com/SlatherOrg/slather">Fork me on Github</a></p>
209
209
  <p>&copy; 2016 Slather</p>
210
- </div></footer><script src="/Users/civetta/Works/Personal/slather/viteinfinite-slather/assets/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script>
210
+ </div></footer><script src="highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script>
211
211
  </body>
212
212
  </html>
@@ -2,10 +2,10 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>fixtures.m - Slather</title>
5
- <link href="/Users/civetta/Works/Personal/slather/viteinfinite-slather/assets/slather.css" media="all" rel="stylesheet">
5
+ <link href="slather.css" media="all" rel="stylesheet">
6
6
  </head>
7
7
  <body>
8
- <header><div class="row"><a href="index.html"><img src="/Users/civetta/Works/Personal/slather/viteinfinite-slather/docs/logo.jpg" alt="Slather logo"></a></div></header><div class="row"><div id="reports">
8
+ <header><div class="row"><a href="index.html"><img src="logo.jpg" alt="Slather logo"></a></div></header><div class="row"><div id="reports">
9
9
  <h2 class="cov_title">
10
10
  <span>Coverage for "fixtures.m" : </span><span class="cov_low">50.00%</span>
11
11
  </h2>
@@ -130,8 +130,8 @@
130
130
  </table>
131
131
  </div></div>
132
132
  <footer><div class="row">
133
- <p><a href="https://github.com/venmo/slather">Fork me on Github</a></p>
133
+ <p><a href="https://github.com/SlatherOrg/slather">Fork me on Github</a></p>
134
134
  <p>&copy; 2016 Slather</p>
135
- </div></footer><script src="/Users/civetta/Works/Personal/slather/viteinfinite-slather/assets/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script>
135
+ </div></footer><script src="highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script>
136
136
  </body>
137
137
  </html>
@@ -2,14 +2,14 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>fixturesTests.m - Slather</title>
5
- <link href="/Users/civetta/Works/Personal/slather/viteinfinite-slather/assets/slather.css" media="all" rel="stylesheet">
5
+ <link href="slather.css" media="all" rel="stylesheet">
6
6
  </head>
7
7
  <body>
8
- <header><div class="row"><a href="index.html"><img src="/Users/civetta/Works/Personal/slather/viteinfinite-slather/docs/logo.jpg" alt="Slather logo"></a></div></header><div class="row"><div id="reports">
8
+ <header><div class="row"><a href="index.html"><img src="logo.jpg" alt="Slather logo"></a></div></header><div class="row"><div id="reports">
9
9
  <h2 class="cov_title">
10
10
  <span>Coverage for "fixturesTests.m" : </span><span class="cov_high">100.00%</span>
11
11
  </h2>
12
- <h4 class="cov_subtitle">(12 of 12 relevant lines covered)</h4>
12
+ <h4 class="cov_subtitle">(17 of 17 relevant lines covered)</h4>
13
13
  <h4 class="cov_filepath">spec/fixtures/fixturesTests/fixturesTests.m</h4>
14
14
  <table class="source_code">
15
15
  <tr class="never">
@@ -64,139 +64,179 @@
64
64
  </tr>
65
65
  <tr class="never">
66
66
  <td class="num">11</td>
67
- <td class="src"><pre><code class="objc"></code></pre></td>
67
+ <td class="src"><pre><code class="objc">#import "fixturesTwo.h"</code></pre></td>
68
68
  <td class="coverage"></td>
69
69
  </tr>
70
70
  <tr class="never">
71
71
  <td class="num">12</td>
72
- <td class="src"><pre><code class="objc">@interface fixturesTests : XCTestCase</code></pre></td>
72
+ <td class="src"><pre><code class="objc"></code></pre></td>
73
73
  <td class="coverage"></td>
74
74
  </tr>
75
75
  <tr class="never">
76
76
  <td class="num">13</td>
77
- <td class="src"><pre><code class="objc"></code></pre></td>
77
+ <td class="src"><pre><code class="objc">@interface fixturesTests : XCTestCase</code></pre></td>
78
78
  <td class="coverage"></td>
79
79
  </tr>
80
80
  <tr class="never">
81
81
  <td class="num">14</td>
82
- <td class="src"><pre><code class="objc">@end</code></pre></td>
82
+ <td class="src"><pre><code class="objc"></code></pre></td>
83
83
  <td class="coverage"></td>
84
84
  </tr>
85
85
  <tr class="never">
86
86
  <td class="num">15</td>
87
- <td class="src"><pre><code class="objc"></code></pre></td>
87
+ <td class="src"><pre><code class="objc">@end</code></pre></td>
88
88
  <td class="coverage"></td>
89
89
  </tr>
90
90
  <tr class="never">
91
91
  <td class="num">16</td>
92
- <td class="src"><pre><code class="objc">@implementation fixturesTests</code></pre></td>
92
+ <td class="src"><pre><code class="objc"></code></pre></td>
93
93
  <td class="coverage"></td>
94
94
  </tr>
95
95
  <tr class="never">
96
96
  <td class="num">17</td>
97
- <td class="src"><pre><code class="objc"></code></pre></td>
97
+ <td class="src"><pre><code class="objc">@implementation fixturesTests</code></pre></td>
98
98
  <td class="coverage"></td>
99
99
  </tr>
100
100
  <tr class="never">
101
101
  <td class="num">18</td>
102
+ <td class="src"><pre><code class="objc"></code></pre></td>
103
+ <td class="coverage"></td>
104
+ </tr>
105
+ <tr class="never">
106
+ <td class="num">19</td>
102
107
  <td class="src"><pre><code class="objc">- (void)setUp</code></pre></td>
103
108
  <td class="coverage"></td>
104
109
  </tr>
105
110
  <tr class="covered">
106
- <td class="num">19</td>
111
+ <td class="num">20</td>
107
112
  <td class="src"><pre><code class="objc">{</code></pre></td>
108
- <td class="coverage">1x</td>
113
+ <td class="coverage">2x</td>
109
114
  </tr>
110
115
  <tr class="covered">
111
- <td class="num">20</td>
116
+ <td class="num">21</td>
112
117
  <td class="src"><pre><code class="objc"> [super setUp];</code></pre></td>
113
- <td class="coverage">1x</td>
118
+ <td class="coverage">2x</td>
114
119
  </tr>
115
120
  <tr class="covered">
116
- <td class="num">21</td>
121
+ <td class="num">22</td>
117
122
  <td class="src"><pre><code class="objc"> // Put setup code here. This method is called before the invocation of each test method in the class.</code></pre></td>
118
- <td class="coverage">1x</td>
123
+ <td class="coverage">2x</td>
119
124
  </tr>
120
125
  <tr class="covered">
121
- <td class="num">22</td>
126
+ <td class="num">23</td>
122
127
  <td class="src"><pre><code class="objc">}</code></pre></td>
123
- <td class="coverage">1x</td>
128
+ <td class="coverage">2x</td>
124
129
  </tr>
125
130
  <tr class="never">
126
- <td class="num">23</td>
131
+ <td class="num">24</td>
127
132
  <td class="src"><pre><code class="objc"></code></pre></td>
128
133
  <td class="coverage"></td>
129
134
  </tr>
130
135
  <tr class="never">
131
- <td class="num">24</td>
136
+ <td class="num">25</td>
132
137
  <td class="src"><pre><code class="objc">- (void)tearDown</code></pre></td>
133
138
  <td class="coverage"></td>
134
139
  </tr>
135
140
  <tr class="covered">
136
- <td class="num">25</td>
141
+ <td class="num">26</td>
137
142
  <td class="src"><pre><code class="objc">{</code></pre></td>
138
- <td class="coverage">1x</td>
143
+ <td class="coverage">2x</td>
139
144
  </tr>
140
145
  <tr class="covered">
141
- <td class="num">26</td>
146
+ <td class="num">27</td>
142
147
  <td class="src"><pre><code class="objc"> // Put teardown code here. This method is called after the invocation of each test method in the class.</code></pre></td>
143
- <td class="coverage">1x</td>
148
+ <td class="coverage">2x</td>
144
149
  </tr>
145
150
  <tr class="covered">
146
- <td class="num">27</td>
151
+ <td class="num">28</td>
147
152
  <td class="src"><pre><code class="objc"> [super tearDown];</code></pre></td>
148
- <td class="coverage">1x</td>
153
+ <td class="coverage">2x</td>
149
154
  </tr>
150
155
  <tr class="covered">
151
- <td class="num">28</td>
156
+ <td class="num">29</td>
152
157
  <td class="src"><pre><code class="objc">}</code></pre></td>
153
- <td class="coverage">1x</td>
158
+ <td class="coverage">2x</td>
154
159
  </tr>
155
160
  <tr class="never">
156
- <td class="num">29</td>
161
+ <td class="num">30</td>
157
162
  <td class="src"><pre><code class="objc"></code></pre></td>
158
163
  <td class="coverage"></td>
159
164
  </tr>
160
165
  <tr class="never">
161
- <td class="num">30</td>
166
+ <td class="num">31</td>
162
167
  <td class="src"><pre><code class="objc">- (void)testExample</code></pre></td>
163
168
  <td class="coverage"></td>
164
169
  </tr>
165
170
  <tr class="covered">
166
- <td class="num">31</td>
171
+ <td class="num">32</td>
167
172
  <td class="src"><pre><code class="objc">{</code></pre></td>
168
173
  <td class="coverage">1x</td>
169
174
  </tr>
170
175
  <tr class="covered">
171
- <td class="num">32</td>
176
+ <td class="num">33</td>
172
177
  <td class="src"><pre><code class="objc"> fixtures *f = [[fixtures alloc] init];</code></pre></td>
173
178
  <td class="coverage">1x</td>
174
179
  </tr>
175
180
  <tr class="covered">
176
- <td class="num">33</td>
181
+ <td class="num">34</td>
177
182
  <td class="src"><pre><code class="objc"> [f testedMethod];</code></pre></td>
178
183
  <td class="coverage">1x</td>
179
184
  </tr>
180
185
  <tr class="covered">
181
- <td class="num">34</td>
186
+ <td class="num">35</td>
182
187
  <td class="src"><pre><code class="objc">}</code></pre></td>
183
188
  <td class="coverage">1x</td>
184
189
  </tr>
185
190
  <tr class="never">
186
- <td class="num">35</td>
191
+ <td class="num">36</td>
187
192
  <td class="src"><pre><code class="objc"></code></pre></td>
188
193
  <td class="coverage"></td>
189
194
  </tr>
190
195
  <tr class="never">
191
- <td class="num">36</td>
196
+ <td class="num">37</td>
197
+ <td class="src"><pre><code class="objc">- (void)testFixturesTwo</code></pre></td>
198
+ <td class="coverage"></td>
199
+ </tr>
200
+ <tr class="covered">
201
+ <td class="num">38</td>
202
+ <td class="src"><pre><code class="objc">{</code></pre></td>
203
+ <td class="coverage">1x</td>
204
+ </tr>
205
+ <tr class="covered">
206
+ <td class="num">39</td>
207
+ <td class="src"><pre><code class="objc"> fixturesTwo *f2 = [[fixturesTwo alloc] init];</code></pre></td>
208
+ <td class="coverage">1x</td>
209
+ </tr>
210
+ <tr class="covered">
211
+ <td class="num">40</td>
212
+ <td class="src"><pre><code class="objc"></code></pre></td>
213
+ <td class="coverage">1x</td>
214
+ </tr>
215
+ <tr class="covered">
216
+ <td class="num">41</td>
217
+ <td class="src"><pre><code class="objc"> XCTAssertEqual([f2 doSomething], 11);</code></pre></td>
218
+ <td class="coverage">1x</td>
219
+ </tr>
220
+ <tr class="covered">
221
+ <td class="num">42</td>
222
+ <td class="src"><pre><code class="objc">}</code></pre></td>
223
+ <td class="coverage">1x</td>
224
+ </tr>
225
+ <tr class="never">
226
+ <td class="num">43</td>
227
+ <td class="src"><pre><code class="objc"></code></pre></td>
228
+ <td class="coverage"></td>
229
+ </tr>
230
+ <tr class="never">
231
+ <td class="num">44</td>
192
232
  <td class="src"><pre><code class="objc">@end</code></pre></td>
193
233
  <td class="coverage"></td>
194
234
  </tr>
195
235
  </table>
196
236
  </div></div>
197
237
  <footer><div class="row">
198
- <p><a href="https://github.com/venmo/slather">Fork me on Github</a></p>
238
+ <p><a href="https://github.com/SlatherOrg/slather">Fork me on Github</a></p>
199
239
  <p>&copy; 2016 Slather</p>
200
- </div></footer><script src="/Users/civetta/Works/Personal/slather/viteinfinite-slather/assets/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script>
240
+ </div></footer><script src="highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script>
201
241
  </body>
202
242
  </html>
@@ -2,13 +2,13 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>fixtures.xcodeproj - Slather</title>
5
- <link href="/Users/civetta/Works/Personal/slather/viteinfinite-slather/assets/slather.css" media="all" rel="stylesheet">
5
+ <link href="slather.css" media="all" rel="stylesheet">
6
6
  </head>
7
7
  <body>
8
- <header><div class="row"><a href="index.html"><img src="/Users/civetta/Works/Personal/slather/viteinfinite-slather/docs/logo.jpg" alt="Slather logo"></a></div></header><div class="row"><div id="reports">
8
+ <header><div class="row"><a href="index.html"><img src="logo.jpg" alt="Slather logo"></a></div></header><div class="row"><div id="reports">
9
9
  <h2>Files for "fixtures.xcodeproj"</h2>
10
10
  <h4>
11
- <span>Total Coverage : </span><span class="cov_medium" id="total_coverage">73.33%</span>
11
+ <span>Total Coverage : </span><span class="cov_medium" id="total_coverage">75.00%</span>
12
12
  </h4>
13
13
  <input class="search" placeholder="Search"><table class="coverage_list" cellspacing="0" cellpadding="0">
14
14
  <thead><tr>
@@ -47,9 +47,9 @@
47
47
  <tr>
48
48
  <td><span class="percentage cov_high data_percentage">100.00</span></td>
49
49
  <td class="data_filename"><a href="fixturesTests.m.html">fixturesTests.m</a></td>
50
- <td class="data_lines">36</td>
51
- <td class="data_relevant">12</td>
52
- <td class="data_covered">12</td>
50
+ <td class="data_lines">44</td>
51
+ <td class="data_relevant">17</td>
52
+ <td class="data_covered">17</td>
53
53
  <td class="data_missed">0</td>
54
54
  </tr>
55
55
  <tr>
@@ -64,8 +64,8 @@
64
64
  </table>
65
65
  </div></div>
66
66
  <footer><div class="row">
67
- <p><a href="https://github.com/venmo/slather">Fork me on Github</a></p>
67
+ <p><a href="https://github.com/SlatherOrg/slather">Fork me on Github</a></p>
68
68
  <p>&copy; 2016 Slather</p>
69
- </div></footer><script src="/Users/civetta/Works/Personal/slather/viteinfinite-slather/assets/list.min.js"></script><script>var reports = new List('reports', { valueNames: [ 'data_percentage', 'data_filename', 'data_lines', 'data_relevant', 'data_covered', 'data_missed' ]});</script>
69
+ </div></footer><script src="list.min.js"></script><script>var reports = new List('reports', { valueNames: [ 'data_percentage', 'data_filename', 'data_lines', 'data_relevant', 'data_covered', 'data_missed' ]});</script>
70
70
  </body>
71
71
  </html>
@@ -2,10 +2,10 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>peekaviewTests.m - Slather</title>
5
- <link href="/Users/civetta/Works/Personal/slather/viteinfinite-slather/assets/slather.css" media="all" rel="stylesheet">
5
+ <link href="slather.css" media="all" rel="stylesheet">
6
6
  </head>
7
7
  <body>
8
- <header><div class="row"><a href="index.html"><img src="/Users/civetta/Works/Personal/slather/viteinfinite-slather/docs/logo.jpg" alt="Slather logo"></a></div></header><div class="row"><div id="reports">
8
+ <header><div class="row"><a href="index.html"><img src="logo.jpg" alt="Slather logo"></a></div></header><div class="row"><div id="reports">
9
9
  <h2 class="cov_title">
10
10
  <span>Coverage for "peekaviewTests.m" : </span><span class="cov_high">100.00%</span>
11
11
  </h2>
@@ -185,8 +185,8 @@
185
185
  </table>
186
186
  </div></div>
187
187
  <footer><div class="row">
188
- <p><a href="https://github.com/venmo/slather">Fork me on Github</a></p>
188
+ <p><a href="https://github.com/SlatherOrg/slather">Fork me on Github</a></p>
189
189
  <p>&copy; 2016 Slather</p>
190
- </div></footer><script src="/Users/civetta/Works/Personal/slather/viteinfinite-slather/assets/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script>
190
+ </div></footer><script src="highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script>
191
191
  </body>
192
192
  </html>
@@ -1 +1 @@
1
- {"meta":{"timestamp":"2016-01-18 15:39:23.908507"},"symbols_by_file":{"spec/fixtures/fixtures/fixtures.m":[{"line":1,"long_text":"","short_text":"-"},{"line":2,"long_text":"","short_text":"-"},{"line":3,"long_text":"","short_text":"-"},{"line":4,"long_text":"","short_text":"-"},{"line":5,"long_text":"","short_text":"-"},{"line":6,"long_text":"","short_text":"-"},{"line":7,"long_text":"","short_text":"-"},{"line":8,"long_text":"","short_text":"-"},{"line":9,"long_text":"","short_text":"-"},{"line":10,"long_text":"","short_text":"-"},{"line":11,"long_text":"","short_text":"-"},{"line":12,"long_text":"","short_text":"-"},{"line":13,"long_text":"","short_text":"-"},{"line":14,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":15,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":16,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":17,"long_text":"","short_text":"-"},{"line":18,"long_text":"","short_text":"-"},{"line":19,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":20,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":21,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":22,"long_text":"","short_text":"-"},{"line":23,"long_text":"","short_text":"-"}],"spec/fixtures/fixtures/more_files/Branches.m":[{"line":1,"long_text":"","short_text":"-"},{"line":2,"long_text":"","short_text":"-"},{"line":3,"long_text":"","short_text":"-"},{"line":4,"long_text":"","short_text":"-"},{"line":5,"long_text":"","short_text":"-"},{"line":6,"long_text":"","short_text":"-"},{"line":7,"long_text":"","short_text":"-"},{"line":8,"long_text":"","short_text":"-"},{"line":9,"long_text":"","short_text":"-"},{"line":10,"long_text":"","short_text":"-"},{"line":11,"long_text":"","short_text":"-"},{"line":12,"long_text":"","short_text":"-"},{"line":13,"long_text":"","short_text":"-"},{"line":14,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":15,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":16,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":17,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":18,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":19,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":20,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":21,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":22,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":23,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":24,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":25,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":26,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":27,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":28,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":29,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":30,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":31,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":32,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":33,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":34,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":35,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":36,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":37,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":38,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":39,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":40,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":41,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":42,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":43,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":44,"long_text":"","short_text":"-"},{"line":45,"long_text":"","short_text":"-"}],"spec/fixtures/fixturesTests/BranchesTests.m":[{"line":1,"long_text":"","short_text":"-"},{"line":2,"long_text":"","short_text":"-"},{"line":3,"long_text":"","short_text":"-"},{"line":4,"long_text":"","short_text":"-"},{"line":5,"long_text":"","short_text":"-"},{"line":6,"long_text":"","short_text":"-"},{"line":7,"long_text":"","short_text":"-"},{"line":8,"long_text":"","short_text":"-"},{"line":9,"long_text":"","short_text":"-"},{"line":10,"long_text":"","short_text":"-"},{"line":11,"long_text":"","short_text":"-"},{"line":12,"long_text":"","short_text":"-"},{"line":13,"long_text":"","short_text":"-"},{"line":14,"long_text":"","short_text":"-"},{"line":15,"long_text":"","short_text":"-"},{"line":16,"long_text":"","short_text":"-"},{"line":17,"long_text":"","short_text":"-"},{"line":18,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":19,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":20,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":21,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":22,"long_text":"","short_text":"-"},{"line":23,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":24,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":25,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":26,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":27,"long_text":"","short_text":"-"},{"line":28,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":29,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":30,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":31,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":32,"long_text":"","short_text":"-"},{"line":33,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":34,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":35,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":36,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":37,"long_text":"","short_text":"-"},{"line":38,"long_text":"","short_text":"-"}],"spec/fixtures/fixturesTests/fixturesTests.m":[{"line":1,"long_text":"","short_text":"-"},{"line":2,"long_text":"","short_text":"-"},{"line":3,"long_text":"","short_text":"-"},{"line":4,"long_text":"","short_text":"-"},{"line":5,"long_text":"","short_text":"-"},{"line":6,"long_text":"","short_text":"-"},{"line":7,"long_text":"","short_text":"-"},{"line":8,"long_text":"","short_text":"-"},{"line":9,"long_text":"","short_text":"-"},{"line":10,"long_text":"","short_text":"-"},{"line":11,"long_text":"","short_text":"-"},{"line":12,"long_text":"","short_text":"-"},{"line":13,"long_text":"","short_text":"-"},{"line":14,"long_text":"","short_text":"-"},{"line":15,"long_text":"","short_text":"-"},{"line":16,"long_text":"","short_text":"-"},{"line":17,"long_text":"","short_text":"-"},{"line":18,"long_text":"","short_text":"-"},{"line":19,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":20,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":21,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":22,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":23,"long_text":"","short_text":"-"},{"line":24,"long_text":"","short_text":"-"},{"line":25,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":26,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":27,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":28,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":29,"long_text":"","short_text":"-"},{"line":30,"long_text":"","short_text":"-"},{"line":31,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":32,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":33,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":34,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":35,"long_text":"","short_text":"-"},{"line":36,"long_text":"","short_text":"-"}],"spec/fixtures/fixturesTests/peekaviewTests.m":[{"line":1,"long_text":"","short_text":"-"},{"line":2,"long_text":"","short_text":"-"},{"line":3,"long_text":"","short_text":"-"},{"line":4,"long_text":"","short_text":"-"},{"line":5,"long_text":"","short_text":"-"},{"line":6,"long_text":"","short_text":"-"},{"line":7,"long_text":"","short_text":"-"},{"line":8,"long_text":"","short_text":"-"},{"line":9,"long_text":"","short_text":"-"},{"line":10,"long_text":"","short_text":"-"},{"line":11,"long_text":"","short_text":"-"},{"line":12,"long_text":"","short_text":"-"},{"line":13,"long_text":"","short_text":"-"},{"line":14,"long_text":"","short_text":"-"},{"line":15,"long_text":"","short_text":"-"},{"line":16,"long_text":"","short_text":"-"},{"line":17,"long_text":"","short_text":"-"},{"line":18,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":19,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":20,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":21,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":22,"long_text":"","short_text":"-"},{"line":23,"long_text":"","short_text":"-"},{"line":24,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":25,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":26,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":27,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":28,"long_text":"","short_text":"-"},{"line":29,"long_text":"","short_text":"-"},{"line":30,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":31,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":32,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":33,"long_text":"","short_text":"-"},{"line":34,"long_text":"","short_text":"-"}]}}
1
+ {"meta":{"timestamp":"2016-04-17 16:53:43.919308"},"symbols_by_file":{"spec/fixtures/fixtures/fixtures.m":[{"line":1,"long_text":"","short_text":"-"},{"line":2,"long_text":"","short_text":"-"},{"line":3,"long_text":"","short_text":"-"},{"line":4,"long_text":"","short_text":"-"},{"line":5,"long_text":"","short_text":"-"},{"line":6,"long_text":"","short_text":"-"},{"line":7,"long_text":"","short_text":"-"},{"line":8,"long_text":"","short_text":"-"},{"line":9,"long_text":"","short_text":"-"},{"line":10,"long_text":"","short_text":"-"},{"line":11,"long_text":"","short_text":"-"},{"line":12,"long_text":"","short_text":"-"},{"line":13,"long_text":"","short_text":"-"},{"line":14,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":15,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":16,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":17,"long_text":"","short_text":"-"},{"line":18,"long_text":"","short_text":"-"},{"line":19,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":20,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":21,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":22,"long_text":"","short_text":"-"},{"line":23,"long_text":"","short_text":"-"}],"spec/fixtures/fixtures/more_files/Branches.m":[{"line":1,"long_text":"","short_text":"-"},{"line":2,"long_text":"","short_text":"-"},{"line":3,"long_text":"","short_text":"-"},{"line":4,"long_text":"","short_text":"-"},{"line":5,"long_text":"","short_text":"-"},{"line":6,"long_text":"","short_text":"-"},{"line":7,"long_text":"","short_text":"-"},{"line":8,"long_text":"","short_text":"-"},{"line":9,"long_text":"","short_text":"-"},{"line":10,"long_text":"","short_text":"-"},{"line":11,"long_text":"","short_text":"-"},{"line":12,"long_text":"","short_text":"-"},{"line":13,"long_text":"","short_text":"-"},{"line":14,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":15,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":16,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":17,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":18,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":19,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":20,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":21,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":22,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":23,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":24,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":25,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":26,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":27,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":28,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":29,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":30,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":31,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":32,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":33,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":34,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":35,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":36,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":37,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":38,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":39,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":40,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":41,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":42,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":43,"long_text":"","short_text":"0","background_color":"0xFC635E"},{"line":44,"long_text":"","short_text":"-"},{"line":45,"long_text":"","short_text":"-"}],"spec/fixtures/fixturesTests/BranchesTests.m":[{"line":1,"long_text":"","short_text":"-"},{"line":2,"long_text":"","short_text":"-"},{"line":3,"long_text":"","short_text":"-"},{"line":4,"long_text":"","short_text":"-"},{"line":5,"long_text":"","short_text":"-"},{"line":6,"long_text":"","short_text":"-"},{"line":7,"long_text":"","short_text":"-"},{"line":8,"long_text":"","short_text":"-"},{"line":9,"long_text":"","short_text":"-"},{"line":10,"long_text":"","short_text":"-"},{"line":11,"long_text":"","short_text":"-"},{"line":12,"long_text":"","short_text":"-"},{"line":13,"long_text":"","short_text":"-"},{"line":14,"long_text":"","short_text":"-"},{"line":15,"long_text":"","short_text":"-"},{"line":16,"long_text":"","short_text":"-"},{"line":17,"long_text":"","short_text":"-"},{"line":18,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":19,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":20,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":21,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":22,"long_text":"","short_text":"-"},{"line":23,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":24,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":25,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":26,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":27,"long_text":"","short_text":"-"},{"line":28,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":29,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":30,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":31,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":32,"long_text":"","short_text":"-"},{"line":33,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":34,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":35,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":36,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":37,"long_text":"","short_text":"-"},{"line":38,"long_text":"","short_text":"-"}],"spec/fixtures/fixturesTests/fixturesTests.m":[{"line":1,"long_text":"","short_text":"-"},{"line":2,"long_text":"","short_text":"-"},{"line":3,"long_text":"","short_text":"-"},{"line":4,"long_text":"","short_text":"-"},{"line":5,"long_text":"","short_text":"-"},{"line":6,"long_text":"","short_text":"-"},{"line":7,"long_text":"","short_text":"-"},{"line":8,"long_text":"","short_text":"-"},{"line":9,"long_text":"","short_text":"-"},{"line":10,"long_text":"","short_text":"-"},{"line":11,"long_text":"","short_text":"-"},{"line":12,"long_text":"","short_text":"-"},{"line":13,"long_text":"","short_text":"-"},{"line":14,"long_text":"","short_text":"-"},{"line":15,"long_text":"","short_text":"-"},{"line":16,"long_text":"","short_text":"-"},{"line":17,"long_text":"","short_text":"-"},{"line":18,"long_text":"","short_text":"-"},{"line":19,"long_text":"","short_text":"-"},{"line":20,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":21,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":22,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":23,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":24,"long_text":"","short_text":"-"},{"line":25,"long_text":"","short_text":"-"},{"line":26,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":27,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":28,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":29,"long_text":"","short_text":"2","background_color":"0x35CC4B"},{"line":30,"long_text":"","short_text":"-"},{"line":31,"long_text":"","short_text":"-"},{"line":32,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":33,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":34,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":35,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":36,"long_text":"","short_text":"-"},{"line":37,"long_text":"","short_text":"-"},{"line":38,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":39,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":40,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":41,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":42,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":43,"long_text":"","short_text":"-"},{"line":44,"long_text":"","short_text":"-"}],"spec/fixtures/fixturesTests/peekaviewTests.m":[{"line":1,"long_text":"","short_text":"-"},{"line":2,"long_text":"","short_text":"-"},{"line":3,"long_text":"","short_text":"-"},{"line":4,"long_text":"","short_text":"-"},{"line":5,"long_text":"","short_text":"-"},{"line":6,"long_text":"","short_text":"-"},{"line":7,"long_text":"","short_text":"-"},{"line":8,"long_text":"","short_text":"-"},{"line":9,"long_text":"","short_text":"-"},{"line":10,"long_text":"","short_text":"-"},{"line":11,"long_text":"","short_text":"-"},{"line":12,"long_text":"","short_text":"-"},{"line":13,"long_text":"","short_text":"-"},{"line":14,"long_text":"","short_text":"-"},{"line":15,"long_text":"","short_text":"-"},{"line":16,"long_text":"","short_text":"-"},{"line":17,"long_text":"","short_text":"-"},{"line":18,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":19,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":20,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":21,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":22,"long_text":"","short_text":"-"},{"line":23,"long_text":"","short_text":"-"},{"line":24,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":25,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":26,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":27,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":28,"long_text":"","short_text":"-"},{"line":29,"long_text":"","short_text":"-"},{"line":30,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":31,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":32,"long_text":"","short_text":"1","background_color":"0x35CC4B"},{"line":33,"long_text":"","short_text":"-"},{"line":34,"long_text":"","short_text":"-"}]}}
@@ -5,6 +5,7 @@ describe Slather::CoverageService::SimpleOutput do
5
5
  let(:fixtures_project) do
6
6
  proj = Slather::Project.open(FIXTURES_PROJECT_PATH)
7
7
  proj.build_directory = TEMP_DERIVED_DATA_PATH
8
+ proj.binary_basename = ["fixturesTests", "libfixturesTwo"]
8
9
  proj.input_format = "profdata"
9
10
  proj.configure
10
11
  proj
@@ -21,9 +22,10 @@ describe Slather::CoverageService::SimpleOutput do
21
22
  ["spec/fixtures/fixtures/fixtures.m: 3 of 6 lines (50.00%)",
22
23
  "spec/fixtures/fixtures/more_files/Branches.m: 13 of 30 lines (43.33%)",
23
24
  "spec/fixtures/fixturesTests/BranchesTests.m: 16 of 16 lines (100.00%)",
24
- "spec/fixtures/fixturesTests/fixturesTests.m: 12 of 12 lines (100.00%)",
25
+ "spec/fixtures/fixturesTests/fixturesTests.m: 17 of 17 lines (100.00%)",
25
26
  "spec/fixtures/fixturesTests/peekaviewTests.m: 11 of 11 lines (100.00%)",
26
- "Test Coverage: 73.33%"
27
+ "spec/fixtures/fixturesTwo/fixturesTwo.m: 6 of 6 lines (100.00%)",
28
+ "Test Coverage: 76.74%"
27
29
  ].each do |line|
28
30
  expect(fixtures_project).to receive(:puts).with(line)
29
31
  end
@@ -40,11 +42,12 @@ describe Slather::CoverageService::SimpleOutput do
40
42
  ["spec/fixtures/fixtures/fixtures.m: 3 of 6 lines (50.00%)",
41
43
  "spec/fixtures/fixtures/more_files/Branches.m: 13 of 30 lines (43.33%)",
42
44
  "spec/fixtures/fixturesTests/BranchesTests.m: 16 of 16 lines (100.00%)",
43
- "spec/fixtures/fixturesTests/fixturesTests.m: 12 of 12 lines (100.00%)",
45
+ "spec/fixtures/fixturesTests/fixturesTests.m: 17 of 17 lines (100.00%)",
44
46
  "spec/fixtures/fixturesTests/peekaviewTests.m: 11 of 11 lines (100.00%)",
45
- "##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='55']",
46
- "##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='75']",
47
- "Test Coverage: 73.33%"
47
+ "spec/fixtures/fixturesTwo/fixturesTwo.m: 6 of 6 lines (100.00%)",
48
+ "##teamcity[buildStatisticValue key='CodeCoverageAbsLCovered' value='66']",
49
+ "##teamcity[buildStatisticValue key='CodeCoverageAbsLTotal' value='86']",
50
+ "Test Coverage: 76.74%"
48
51
  ].each do |line|
49
52
  expect(fixtures_project).to receive(:puts).with(line)
50
53
  end
@@ -70,9 +70,17 @@ describe Slather::ProfdataCoverageFile do
70
70
  end
71
71
 
72
72
  describe "#line_number_in_line" do
73
- it "should return the correct line number" do
73
+ it "should return the correct line number for coverage represented as decimals" do
74
74
  expect(profdata_coverage_file.line_number_in_line(" 0| 40| func applicationWillTerminate(application: UIApplication) {")).to eq(40)
75
75
  end
76
+
77
+ it "should return the correct line number for coverage represented as thousands" do
78
+ expect(profdata_coverage_file.line_number_in_line(" 11.8k| 41| func applicationWillTerminate(application: UIApplication) {")).to eq(41)
79
+ end
80
+
81
+ it "should return the correct line number for coverage represented as milions" do
82
+ expect(profdata_coverage_file.line_number_in_line(" 2.58M| 42| func applicationWillTerminate(application: UIApplication) {")).to eq(42)
83
+ end
76
84
  end
77
85
 
78
86
  describe "#coverage_for_line" do
@@ -80,12 +88,16 @@ describe Slather::ProfdataCoverageFile do
80
88
  expect(profdata_coverage_file.coverage_for_line(" 10| 40| func applicationWillTerminate(application: UIApplication) {")).to eq(10)
81
89
  end
82
90
 
83
- it "should return the number of hits for a line in thousands" do
84
- expect(profdata_coverage_file.coverage_for_line(" 11.8k| 49| return result;")).to eq(11800)
91
+ it "should return the number of hits for a line in thousands as an integer" do
92
+ result = profdata_coverage_file.coverage_for_line(" 11.8k| 49| return result;")
93
+ expect(result).to eq(11800)
94
+ expect(result).to be_a(Fixnum)
85
95
  end
86
96
 
87
- it "should return the number of hits for a line in millions" do
88
- expect(profdata_coverage_file.coverage_for_line(" 2.58M| 49| return result;")).to eq(2580000)
97
+ it "should return the number of hits for a line in millions as an integer" do
98
+ result = profdata_coverage_file.coverage_for_line(" 2.58M| 49| return result;")
99
+ expect(result).to eq(2580000)
100
+ expect(result).to be_a(Fixnum)
89
101
  end
90
102
 
91
103
  it "should return the number of hits for an uncovered line" do
@@ -135,6 +147,12 @@ describe Slather::ProfdataCoverageFile do
135
147
  expect(ignorable_file.ignored?).to be_truthy
136
148
  end
137
149
 
150
+ it "should ignore warnings" do
151
+ ignorable_file = Slather::ProfdataCoverageFile.new(fixtures_project, "warning The file '/Users/ci/.ccache/tmp/CALayer-KI.stdout.macmini08.92540.QAQaxt.mi' isn't covered.")
152
+
153
+ expect(ignorable_file.ignored?).to be_truthy
154
+ end
155
+
138
156
  end
139
157
 
140
158
  end