-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestInteger.out
408 lines (370 loc) · 13.2 KB
/
TestInteger.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
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
==6531== Memcheck, a memory error detector
==6531== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==6531== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
==6531== Command: ./TestInteger
==6531==
Running main() from gtest_main.cc
[==========] Running 72 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 72 tests from IntegerFixture
[ RUN ] IntegerFixture.shift_left_digits_1
[ OK ] IntegerFixture.shift_left_digits_1 (26 ms)
[ RUN ] IntegerFixture.shift_left_digits_2
[ OK ] IntegerFixture.shift_left_digits_2 (4 ms)
[ RUN ] IntegerFixture.shift_left_digits_3
[ OK ] IntegerFixture.shift_left_digits_3 (4 ms)
[ RUN ] IntegerFixture.shift_right_digits_1
[ OK ] IntegerFixture.shift_right_digits_1 (5 ms)
[ RUN ] IntegerFixture.shift_right_digits_2
[ OK ] IntegerFixture.shift_right_digits_2 (4 ms)
[ RUN ] IntegerFixture.shift_right_digits_3
[ OK ] IntegerFixture.shift_right_digits_3 (4 ms)
[ RUN ] IntegerFixture.plus_digits_1
[ OK ] IntegerFixture.plus_digits_1 (9 ms)
[ RUN ] IntegerFixture.plus_digits_2
[ OK ] IntegerFixture.plus_digits_2 (5 ms)
[ RUN ] IntegerFixture.plus_digits_3
[ OK ] IntegerFixture.plus_digits_3 (5 ms)
[ RUN ] IntegerFixture.minus_digits_1
[ OK ] IntegerFixture.minus_digits_1 (6 ms)
[ RUN ] IntegerFixture.minus_digits_2
[ OK ] IntegerFixture.minus_digits_2 (6 ms)
[ RUN ] IntegerFixture.minus_digits_3
[ OK ] IntegerFixture.minus_digits_3 (5 ms)
[ RUN ] IntegerFixture.multiplies_digits_1
[ OK ] IntegerFixture.multiplies_digits_1 (9 ms)
[ RUN ] IntegerFixture.multiplies_digits_2
[ OK ] IntegerFixture.multiplies_digits_2 (6 ms)
[ RUN ] IntegerFixture.multiplies_digits_3
[ OK ] IntegerFixture.multiplies_digits_3 (5 ms)
[ RUN ] IntegerFixture.multiplies_digits_4
[ OK ] IntegerFixture.multiplies_digits_4 (6 ms)
[ RUN ] IntegerFixture.valid_1
[ OK ] IntegerFixture.valid_1 (51 ms)
[ RUN ] IntegerFixture.valid_2
[ OK ] IntegerFixture.valid_2 (3 ms)
[ RUN ] IntegerFixture.valid_3
[ OK ] IntegerFixture.valid_3 (2 ms)
[ RUN ] IntegerFixture.valid_4
[ OK ] IntegerFixture.valid_4 (2 ms)
[ RUN ] IntegerFixture.valid_5
[ OK ] IntegerFixture.valid_5 (5 ms)
[ RUN ] IntegerFixture.valid_6
[ OK ] IntegerFixture.valid_6 (2 ms)
[ RUN ] IntegerFixture.valid_7
[ OK ] IntegerFixture.valid_7 (14 ms)
[ RUN ] IntegerFixture.valid_8
[ OK ] IntegerFixture.valid_8 (1 ms)
[ RUN ] IntegerFixture.valid_9
[ OK ] IntegerFixture.valid_9 (3 ms)
[ RUN ] IntegerFixture.equals_1
[ OK ] IntegerFixture.equals_1 (5 ms)
[ RUN ] IntegerFixture.equals_2
[ OK ] IntegerFixture.equals_2 (3 ms)
[ RUN ] IntegerFixture.notequals_1
[ OK ] IntegerFixture.notequals_1 (3 ms)
[ RUN ] IntegerFixture.notequals_2
[ OK ] IntegerFixture.notequals_2 (2 ms)
[ RUN ] IntegerFixture.timesequal_1
[ OK ] IntegerFixture.timesequal_1 (14 ms)
[ RUN ] IntegerFixture.timesequal_2
[ OK ] IntegerFixture.timesequal_2 (8 ms)
[ RUN ] IntegerFixture.timesequal_3
[ OK ] IntegerFixture.timesequal_3 (3 ms)
[ RUN ] IntegerFixture.negation_1
[ OK ] IntegerFixture.negation_1 (10 ms)
[ RUN ] IntegerFixture.negation_2
[ OK ] IntegerFixture.negation_2 (3 ms)
[ RUN ] IntegerFixture.pow_1
[ OK ] IntegerFixture.pow_1 (7 ms)
[ RUN ] IntegerFixture.pow_2
[ OK ] IntegerFixture.pow_2 (3 ms)
[ RUN ] IntegerFixture.pow_3
[ OK ] IntegerFixture.pow_3 (3 ms)
[ RUN ] IntegerFixture.pow_4
[ OK ] IntegerFixture.pow_4 (2 ms)
[ RUN ] IntegerFixture.pow_5
[ OK ] IntegerFixture.pow_5 (2 ms)
[ RUN ] IntegerFixture.lessthan_1
[ OK ] IntegerFixture.lessthan_1 (5 ms)
[ RUN ] IntegerFixture.lessthan_2
[ OK ] IntegerFixture.lessthan_2 (2 ms)
[ RUN ] IntegerFixture.lessthan_3
[ OK ] IntegerFixture.lessthan_3 (3 ms)
[ RUN ] IntegerFixture.lessthan_4
[ OK ] IntegerFixture.lessthan_4 (3 ms)
[ RUN ] IntegerFixture.minusequals_1
[ OK ] IntegerFixture.minusequals_1 (10 ms)
[ RUN ] IntegerFixture.minusequals_2
[ OK ] IntegerFixture.minusequals_2 (3 ms)
[ RUN ] IntegerFixture.minusequals_3
[ OK ] IntegerFixture.minusequals_3 (5 ms)
[ RUN ] IntegerFixture.minusequals_4
[ OK ] IntegerFixture.minusequals_4 (3 ms)
[ RUN ] IntegerFixture.minusequals_5
[ OK ] IntegerFixture.minusequals_5 (6 ms)
[ RUN ] IntegerFixture.minusequals_6
[ OK ] IntegerFixture.minusequals_6 (8 ms)
[ RUN ] IntegerFixture.minusequals_7
[ OK ] IntegerFixture.minusequals_7 (3 ms)
[ RUN ] IntegerFixture.minusequals_8
[ OK ] IntegerFixture.minusequals_8 (5 ms)
[ RUN ] IntegerFixture.minusequals_9
[ OK ] IntegerFixture.minusequals_9 (4 ms)
[ RUN ] IntegerFixture.minusequals_10
[ OK ] IntegerFixture.minusequals_10 (3 ms)
[ RUN ] IntegerFixture.minusequals_11
[ OK ] IntegerFixture.minusequals_11 (3 ms)
[ RUN ] IntegerFixture.plusequals_1
[ OK ] IntegerFixture.plusequals_1 (7 ms)
[ RUN ] IntegerFixture.plusequals_2
[ OK ] IntegerFixture.plusequals_2 (3 ms)
[ RUN ] IntegerFixture.plusequals_3
[ OK ] IntegerFixture.plusequals_3 (4 ms)
[ RUN ] IntegerFixture.plusequals_4
[ OK ] IntegerFixture.plusequals_4 (5 ms)
[ RUN ] IntegerFixture.plusequals_5
[ OK ] IntegerFixture.plusequals_5 (4 ms)
[ RUN ] IntegerFixture.plusequals_6
[ OK ] IntegerFixture.plusequals_6 (3 ms)
[ RUN ] IntegerFixture.leftshiftequals_1
[ OK ] IntegerFixture.leftshiftequals_1 (6 ms)
[ RUN ] IntegerFixture.leftshiftequals_2
[ OK ] IntegerFixture.leftshiftequals_2 (3 ms)
[ RUN ] IntegerFixture.leftshiftequals_3
[ OK ] IntegerFixture.leftshiftequals_3 (2 ms)
[ RUN ] IntegerFixture.rightshiftequals_1
[ OK ] IntegerFixture.rightshiftequals_1 (6 ms)
[ RUN ] IntegerFixture.rightshiftequals_2
[ OK ] IntegerFixture.rightshiftequals_2 (2 ms)
[ RUN ] IntegerFixture.rightshiftequals_3
[ OK ] IntegerFixture.rightshiftequals_3 (2 ms)
[ RUN ] IntegerFixture.divise_equals_1
[ OK ] IntegerFixture.divise_equals_1 (6 ms)
[ RUN ] IntegerFixture.divise_equals_2
[ OK ] IntegerFixture.divise_equals_2 (4 ms)
[ RUN ] IntegerFixture.divise_equals_3
[ OK ] IntegerFixture.divise_equals_3 (3 ms)
[ RUN ] IntegerFixture.mod_equals_1
[ OK ] IntegerFixture.mod_equals_1 (5 ms)
[ RUN ] IntegerFixture.mod_equals_2
[ OK ] IntegerFixture.mod_equals_2 (4 ms)
[ RUN ] IntegerFixture.mod_equals_3
[ OK ] IntegerFixture.mod_equals_3 (4 ms)
[----------] 72 tests from IntegerFixture (410 ms total)
[----------] Global test environment tear-down
[==========] 72 tests from 1 test case ran. (438 ms total)
[ PASSED ] 72 tests.
==6531==
==6531== HEAP SUMMARY:
==6531== in use at exit: 0 bytes in 0 blocks
==6531== total heap usage: 1,879 allocs, 1,879 frees, 166,598 bytes allocated
==6531==
==6531== All heap blocks were freed -- no leaks are possible
==6531==
==6531== For counts of detected and suppressed errors, rerun with: -v
==6531== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
File 'TestInteger.c++'
Lines executed:95.40% of 522
Branches executed:66.70% of 2168
Taken at least once:33.35% of 2168
Calls executed:54.57% of 2657
Creating 'TestInteger.c++.gcov'
File '/usr/include/gtest/internal/gtest-internal.h'
Lines executed:42.86% of 7
Branches executed:49.66% of 290
Taken at least once:24.83% of 290
Calls executed:37.31% of 579
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/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/ostream'
No executable lines
No branches
No calls
Removing 'ostream.gcov'
File '/usr/include/c++/4.8/bits/stl_iterator.h'
Lines executed:100.00% of 25
No branches
Calls executed:100.00% of 8
Creating 'stl_iterator.h.gcov'
File 'Integer.h'
Lines executed:94.08% of 304
Branches executed:92.44% of 450
Taken at least once:66.00% of 450
Calls executed:80.37% of 428
Creating 'Integer.h.gcov'
File '/usr/include/gtest/gtest-printers.h'
Lines executed:0.00% of 39
Branches executed:0.00% of 42
Taken at least once:0.00% of 42
Calls executed:0.00% of 49
Creating 'gtest-printers.h.gcov'
File '/usr/include/c++/4.8/bits/stl_algobase.h'
Lines executed:73.91% of 46
Branches executed:66.67% of 12
Taken at least once:58.33% of 12
Calls executed:73.53% of 68
Creating 'stl_algobase.h.gcov'
File '/usr/include/c++/4.8/bits/stl_iterator_base_types.h'
Lines executed:100.00% of 6
No branches
Calls executed:100.00% of 3
Creating 'stl_iterator_base_types.h.gcov'
File '/usr/include/c++/4.8/bits/stl_iterator_base_funcs.h'
Lines executed:100.00% of 4
No branches
Calls executed:50.00% of 4
Creating 'stl_iterator_base_funcs.h.gcov'
File '/usr/include/c++/4.8/ext/new_allocator.h'
Lines executed:92.86% of 14
Branches executed:100.00% of 8
Taken at least once:50.00% of 8
Calls executed:83.33% of 12
Creating 'new_allocator.h.gcov'
File '/usr/include/c++/4.8/bits/stl_uninitialized.h'
Lines executed:65.22% of 23
Branches executed:0.00% of 2
Taken at least once:0.00% of 2
Calls executed:83.33% of 18
Creating 'stl_uninitialized.h.gcov'
File '/usr/include/c++/4.8/bits/alloc_traits.h'
Lines executed:80.77% of 26
No branches
Calls executed:94.12% of 17
Creating 'alloc_traits.h.gcov'
File '/usr/include/c++/4.8/bits/basic_string.h'
Lines executed:0.00% of 5
Branches executed:0.00% of 4
Taken at least once:0.00% of 4
Calls executed:0.00% of 3
Creating 'basic_string.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/stl_construct.h'
Lines executed:100.00% of 7
No branches
Calls executed:100.00% of 4
Creating 'stl_construct.h.gcov'
File '/usr/include/c++/4.8/bits/allocator.h'
Lines executed:55.56% of 9
No branches
Calls executed:100.00% of 5
Creating 'allocator.h.gcov'
File '/usr/include/c++/4.8/bits/stl_deque.h'
Lines executed:81.25% of 112
Branches executed:69.23% of 26
Taken at least once:42.31% of 26
Calls executed:73.77% of 61
Creating 'stl_deque.h.gcov'
File '/usr/include/c++/4.8/bits/deque.tcc'
Lines executed:16.67% of 42
Branches executed:14.29% of 14
Taken at least once:7.14% of 14
Calls executed:6.67% of 30
Creating 'deque.tcc.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:52.63% of 19
Branches executed:30.00% of 20
Taken at least once:15.00% of 20
Calls executed:24.39% of 41
Creating 'gtest.h.gcov'
File '/usr/include/c++/4.8/bits/move.h'
Lines executed:100.00% of 9
No branches
Calls executed:100.00% of 3
Creating 'move.h.gcov'
File '/usr/include/c++/4.8/bits/vector.tcc'
Lines executed:46.67% of 90
Branches executed:34.62% of 52
Taken at least once:21.15% of 52
Calls executed:46.07% of 89
Creating 'vector.tcc.gcov'
File '/usr/include/c++/4.8/bits/stl_vector.h'
Lines executed:86.62% of 142
Branches executed:84.21% of 38
Taken at least once:44.74% of 38
Calls executed:79.21% of 101
Creating 'stl_vector.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/alloc_traits.h'
Lines executed:75.00% of 8
No branches
Calls executed:100.00% of 1
Creating 'alloc_traits.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/istream'
No executable lines
No branches
No calls
Removing 'istream.gcov'
File '/usr/include/gtest/internal/gtest-port.h'
Lines executed:50.00% of 10
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/gtest/gtest-message.h'
Lines executed:0.00% of 1
No branches
Calls executed:0.00% of 1
Creating 'gtest-message.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 4
No branches
No calls
Creating 'ios_base.h.gcov'
File '/usr/include/c++/4.8/new'
Lines executed:100.00% of 2
No branches
No calls
Creating 'new.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 6
No branches
No calls
Creating 'char_traits.h.gcov'