-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTestCollatz.sample.out
304 lines (262 loc) · 7.54 KB
/
TestCollatz.sample.out
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
==6147== Memcheck, a memory error detector
==6147== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==6147== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
==6147== Command: ./TestCollatz
==6147==
Running main() from gtest_main.cc
[==========] Running 7 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 7 tests from CollatzFixture
[ RUN ] CollatzFixture.read
[ OK ] CollatzFixture.read (18 ms)
[ RUN ] CollatzFixture.eval_1
[ OK ] CollatzFixture.eval_1 (2 ms)
[ RUN ] CollatzFixture.eval_2
[ OK ] CollatzFixture.eval_2 (2 ms)
[ RUN ] CollatzFixture.eval_3
[ OK ] CollatzFixture.eval_3 (2 ms)
[ RUN ] CollatzFixture.eval_4
[ OK ] CollatzFixture.eval_4 (2 ms)
[ RUN ] CollatzFixture.print
[ OK ] CollatzFixture.print (9 ms)
[ RUN ] CollatzFixture.solve
[ OK ] CollatzFixture.solve (10 ms)
[----------] 7 tests from CollatzFixture (53 ms total)
[----------] Global test environment tear-down
[==========] 7 tests from 1 test case ran. (79 ms total)
[ PASSED ] 7 tests.
==6147==
==6147== HEAP SUMMARY:
==6147== in use at exit: 0 bytes in 0 blocks
==6147== total heap usage: 501 allocs, 501 frees, 70,794 bytes allocated
==6147==
==6147== All heap blocks were freed -- no leaks are possible
==6147==
==6147== For counts of detected and suppressed errors, rerun with: -v
==6147== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
File 'Collatz.c++'
Lines executed:100.00% of 16
Branches executed:100.00% of 22
Taken at least once:54.55% of 22
Calls executed:90.48% of 21
Creating 'Collatz.c++.gcov'
File '/usr/include/c++/4.8/iostream'
Lines executed:100.00% of 1
No branches
Calls executed:100.00% of 2
Creating 'iostream.gcov'
File '/usr/include/c++/4.8/bits/basic_ios.h'
Lines executed:0.00% of 4
Branches executed:0.00% of 2
Taken at least once:0.00% of 2
Calls executed:0.00% of 1
Creating 'basic_ios.h.gcov'
File '/usr/include/c++/4.8/sstream'
Lines executed:0.00% of 1
Branches executed:0.00% of 2
Taken at least once:0.00% of 2
Calls executed:0.00% of 5
Creating 'sstream.gcov'
File '/usr/include/c++/4.8/streambuf'
No executable lines
No branches
No calls
Removing 'streambuf.gcov'
File '/usr/include/c++/4.8/bits/basic_string.h'
Lines executed:0.00% of 1
No branches
Calls executed:0.00% of 1
Creating 'basic_string.h.gcov'
File '/usr/include/c++/4.8/ext/new_allocator.h'
Lines executed:0.00% of 3
No branches
No calls
Creating 'new_allocator.h.gcov'
File '/usr/include/c++/4.8/ostream'
No executable lines
No branches
No calls
Removing 'ostream.gcov'
File '/usr/include/c++/4.8/istream'
No executable lines
No branches
No calls
Removing 'istream.gcov'
File '/usr/include/c++/4.8/bits/allocator.h'
No executable lines
No branches
No calls
Removing 'allocator.h.gcov'
File '/usr/include/c++/4.8/bits/stl_pair.h'
Lines executed:100.00% of 4
No branches
Calls executed:100.00% of 5
Creating 'stl_pair.h.gcov'
File '/usr/include/c++/4.8/bits/move.h'
Lines executed:100.00% of 2
No branches
No calls
Creating 'move.h.gcov'
File '/usr/include/c++/4.8/bits/locale_facets.h'
Lines executed:0.00% of 5
Branches executed:0.00% of 2
Taken at least once:0.00% of 2
Calls executed:0.00% of 2
Creating 'locale_facets.h.gcov'
File '/usr/include/c++/4.8/bits/ios_base.h'
Lines executed:0.00% of 8
No branches
No calls
Creating 'ios_base.h.gcov'
File '/usr/include/c++/4.8/ext/atomicity.h'
Lines executed:0.00% of 10
Branches executed:0.00% of 2
Taken at least once:0.00% of 2
Calls executed:0.00% of 3
Creating 'atomicity.h.gcov'
File '/usr/include/x86_64-linux-gnu/c++/4.8/bits/gthr-default.h'
Lines executed:0.00% of 2
No branches
No calls
Creating 'gthr-default.h.gcov'
File '/usr/include/c++/4.8/bits/char_traits.h'
Lines executed:0.00% of 2
No branches
No calls
Creating 'char_traits.h.gcov'
File 'TestCollatz.c++'
Lines executed:100.00% of 26
Branches executed:61.45% of 166
Taken at least once:30.72% of 166
Calls executed:54.64% of 194
Creating 'TestCollatz.c++.gcov'
File '/usr/include/gtest/internal/gtest-internal.h'
Lines executed:66.67% of 6
Branches executed:100.00% of 30
Taken at least once:50.00% of 30
Calls executed:70.00% of 60
Creating 'gtest-internal.h.gcov'
File '/usr/include/c++/4.8/iostream'
Lines executed:100.00% of 1
No branches
Calls executed:100.00% of 2
Creating 'iostream.gcov'
File '/usr/include/gtest/gtest-printers.h'
Lines executed:0.00% of 25
Branches executed:0.00% of 14
Taken at least once:0.00% of 14
Calls executed:0.00% of 23
Creating 'gtest-printers.h.gcov'
File '/usr/include/c++/4.8/bits/basic_string.h'
Lines executed:28.57% of 7
Branches executed:0.00% of 4
Taken at least once:0.00% of 4
Calls executed:25.00% of 4
Creating 'basic_string.h.gcov'
File '/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h'
Lines executed:0.00% of 4
No branches
Calls executed:0.00% of 2
Creating 'stl_iterator_base_funcs.h.gcov'
File '/usr/include/c++/4.8/bits/stl_iterator_base_types.h'
Lines executed:0.00% of 2
No branches
No calls
Creating 'stl_iterator_base_types.h.gcov'
File '/usr/include/c++/4.8/ext/type_traits.h'
Lines executed:0.00% of 2
No branches
No calls
Creating 'type_traits.h.gcov'
File '/usr/include/c++/4.8/bits/allocator.h'
Lines executed:0.00% of 2
No branches
No calls
Creating 'allocator.h.gcov'
File '/usr/include/c++/4.8/sstream'
Lines executed:0.00% of 1
Branches executed:0.00% of 2
Taken at least once:0.00% of 2
Calls executed:0.00% of 5
Creating 'sstream.gcov'
File '/usr/include/c++/4.8/bits/basic_string.tcc'
Lines executed:0.00% of 16
Branches executed:0.00% of 16
Taken at least once:0.00% of 16
Calls executed:0.00% of 19
Creating 'basic_string.tcc.gcov'
File '/usr/include/gtest/gtest.h'
Lines executed:56.25% of 16
Branches executed:23.08% of 26
Taken at least once:11.54% of 26
Calls executed:19.57% of 46
Creating 'gtest.h.gcov'
File '/usr/include/c++/4.8/streambuf'
No executable lines
No branches
No calls
Removing 'streambuf.gcov'
File '/usr/include/c++/4.8/ext/new_allocator.h'
Lines executed:0.00% of 3
No branches
No calls
Creating 'new_allocator.h.gcov'
File '/usr/include/c++/4.8/istream'
No executable lines
No branches
No calls
Removing 'istream.gcov'
File '/usr/include/c++/4.8/ostream'
No executable lines
No branches
No calls
Removing 'ostream.gcov'
File '/usr/include/gtest/internal/gtest-port.h'
Lines executed:54.55% of 11
Branches executed:16.67% of 12
Taken at least once:8.33% of 12
Calls executed:14.29% of 7
Creating 'gtest-port.h.gcov'
File '/usr/include/c++/4.8/bits/basic_ios.h'
No executable lines
No branches
No calls
Removing 'basic_ios.h.gcov'
File '/usr/include/c++/4.8/iomanip'
Lines executed:100.00% of 2
No branches
No calls
Creating 'iomanip.gcov'
File '/usr/include/gtest/gtest-message.h'
Lines executed:75.00% of 4
Branches executed:100.00% of 4
Taken at least once:50.00% of 4
Calls executed:63.64% of 11
Creating 'gtest-message.h.gcov'
File '/usr/include/gtest/internal/gtest-string.h'
Lines executed:9.09% of 11
Branches executed:100.00% of 2
Taken at least once:100.00% of 2
Calls executed:20.00% of 5
Creating 'gtest-string.h.gcov'
File '/usr/include/c++/4.8/bits/ios_base.h'
Lines executed:25.00% of 8
No branches
No calls
Creating 'ios_base.h.gcov'
File '/usr/include/c++/4.8/ext/atomicity.h'
Lines executed:0.00% of 10
Branches executed:0.00% of 2
Taken at least once:0.00% of 2
Calls executed:0.00% of 3
Creating 'atomicity.h.gcov'
File '/usr/include/x86_64-linux-gnu/c++/4.8/bits/gthr-default.h'
Lines executed:0.00% of 2
No branches
No calls
Creating 'gthr-default.h.gcov'
File '/usr/include/c++/4.8/bits/char_traits.h'
Lines executed:0.00% of 4
No branches
No calls
Creating 'char_traits.h.gcov'