Debian Codegraph @

src/external/googletest/googlemock/test/gmock_output_test_golden.txt

raw
1 [ RUN ] GMockOutputTest.ExpectedCall
2
3 FILE:#: EXPECT_CALL(foo_, Bar2(0, _)) invoked
4 Stack trace:
5
6 FILE:#: Mock function call matches EXPECT_CALL(foo_, Bar2(0, _))...
7 Function call: Bar2(0, 0)
8 Returns: false
9 Stack trace:
10 [ OK ] GMockOutputTest.ExpectedCall
11 [ RUN ] GMockOutputTest.ExpectedCallToVoidFunction
12
13 FILE:#: EXPECT_CALL(foo_, Bar3(0, _)) invoked
14 Stack trace:
15
16 FILE:#: Mock function call matches EXPECT_CALL(foo_, Bar3(0, _))...
17 Function call: Bar3(0, 0)
18 Stack trace:
19 [ OK ] GMockOutputTest.ExpectedCallToVoidFunction
20 [ RUN ] GMockOutputTest.ExplicitActionsRunOut
21
22 GMOCK WARNING:
23 FILE:#: Too few actions specified in EXPECT_CALL(foo_, Bar2(_, _))...
24 Expected to be called twice, but has only 1 WillOnce().
25 GMOCK WARNING:
26 FILE:#: Actions ran out in EXPECT_CALL(foo_, Bar2(_, _))...
27 Called 2 times, but only 1 WillOnce() is specified - returning default value.
28 Stack trace:
29 [ OK ] GMockOutputTest.ExplicitActionsRunOut
30 [ RUN ] GMockOutputTest.UnexpectedCall
31 unknown file: Failure
32
33 Unexpected mock function call - returning default value.
34 Function call: Bar2(1, 0)
35 Returns: false
36 Google Mock tried the following 1 expectation, but it didn't match:
37
38 FILE:#: EXPECT_CALL(foo_, Bar2(0, _))...
39 Expected arg #0: is equal to 0
40 Actual: 1
41 Expected: to be called once
42 Actual: never called - unsatisfied and active
43
44 [ FAILED ] GMockOutputTest.UnexpectedCall
45 [ RUN ] GMockOutputTest.UnexpectedCallToVoidFunction
46 unknown file: Failure
47
48 Unexpected mock function call - returning directly.
49 Function call: Bar3(1, 0)
50 Google Mock tried the following 1 expectation, but it didn't match:
51
52 FILE:#: EXPECT_CALL(foo_, Bar3(0, _))...
53 Expected arg #0: is equal to 0
54 Actual: 1
55 Expected: to be called once
56 Actual: never called - unsatisfied and active
57
58 [ FAILED ] GMockOutputTest.UnexpectedCallToVoidFunction
59 [ RUN ] GMockOutputTest.ExcessiveCall
60 FILE:#: Failure
61 Mock function called more times than expected - returning default value.
62 Function call: Bar2(0, 1)
63 Returns: false
64 Expected: to be called once
65 Actual: called twice - over-saturated and active
66
67 [ FAILED ] GMockOutputTest.ExcessiveCall
68 [ RUN ] GMockOutputTest.ExcessiveCallToVoidFunction
69 FILE:#: Failure
70 Mock function called more times than expected - returning directly.
71 Function call: Bar3(0, 1)
72 Expected: to be called once
73 Actual: called twice - over-saturated and active
74
75 [ FAILED ] GMockOutputTest.ExcessiveCallToVoidFunction
76 [ RUN ] GMockOutputTest.UninterestingCall
77
78 GMOCK WARNING:
79 Uninteresting mock function call - returning default value.
80 Function call: Bar2(0, 1)
81 Returns: false
82 NOTE: You can safely ignore the above warning unless this call should not happen. Do not suppress it by blindly adding an EXPECT_CALL() if you don't mean to enforce the call. See https://github.com/google/googletest/blob/main/docs/gmock_cook_book.md#knowing-when-to-expect-useoncall for details.
83 [ OK ] GMockOutputTest.UninterestingCall
84 [ RUN ] GMockOutputTest.UninterestingCallToVoidFunction
85
86 GMOCK WARNING:
87 Uninteresting mock function call - returning directly.
88 Function call: Bar3(0, 1)
89 NOTE: You can safely ignore the above warning unless this call should not happen. Do not suppress it by blindly adding an EXPECT_CALL() if you don't mean to enforce the call. See https://github.com/google/googletest/blob/main/docs/gmock_cook_book.md#knowing-when-to-expect-useoncall for details.
90 [ OK ] GMockOutputTest.UninterestingCallToVoidFunction
91 [ RUN ] GMockOutputTest.RetiredExpectation
92 unknown file: Failure
93
94 Unexpected mock function call - returning default value.
95 Function call: Bar2(1, 1)
96 Returns: false
97 Google Mock tried the following 2 expectations, but none matched:
98
99 FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(_, _))...
100 Expected: the expectation is active
101 Actual: it is retired
102 Expected: to be called once
103 Actual: called once - saturated and retired
104 FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(0, 0))...
105 Expected arg #0: is equal to 0
106 Actual: 1
107 Expected arg #1: is equal to 0
108 Actual: 1
109 Expected: to be called once
110 Actual: never called - unsatisfied and active
111
112 [ FAILED ] GMockOutputTest.RetiredExpectation
113 [ RUN ] GMockOutputTest.UnsatisfiedPrerequisite
114 unknown file: Failure
115
116 Unexpected mock function call - returning default value.
117 Function call: Bar2(1, 0)
118 Returns: false
119 Google Mock tried the following 2 expectations, but none matched:
120
121 FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(0, 0))...
122 Expected arg #0: is equal to 0
123 Actual: 1
124 Expected: to be called once
125 Actual: never called - unsatisfied and active
126 FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(1, _))...
127 Expected: all pre-requisites are satisfied
128 Actual: the following immediate pre-requisites are not satisfied:
129 FILE:#: pre-requisite #0
130 (end of pre-requisites)
131 Expected: to be called once
132 Actual: never called - unsatisfied and active
133
134 [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisite
135 [ RUN ] GMockOutputTest.UnsatisfiedPrerequisites
136 unknown file: Failure
137
138 Unexpected mock function call - returning default value.
139 Function call: Bar2(1, 0)
140 Returns: false
141 Google Mock tried the following 2 expectations, but none matched:
142
143 FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(0, 0))...
144 Expected arg #0: is equal to 0
145 Actual: 1
146 Expected: to be called once
147 Actual: never called - unsatisfied and active
148 FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(1, _))...
149 Expected: all pre-requisites are satisfied
150 Actual: the following immediate pre-requisites are not satisfied:
151 FILE:#: pre-requisite #0
152 FILE:#: pre-requisite #1
153 (end of pre-requisites)
154 Expected: to be called once
155 Actual: never called - unsatisfied and active
156
157 [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisites
158 [ RUN ] GMockOutputTest.UnsatisfiedWith
159 FILE:#: Failure
160 Actual function call count doesn't match EXPECT_CALL(foo_, Bar2(_, _))...
161 Expected args: are a pair where the first >= the second
162 Expected: to be called once
163 Actual: never called - unsatisfied and active
164
165 [ FAILED ] GMockOutputTest.UnsatisfiedWith
166 [ RUN ] GMockOutputTest.UnsatisfiedExpectation
167 FILE:#: Failure
168 Actual function call count doesn't match EXPECT_CALL(foo_, Bar2(0, _))...
169 Expected: to be called twice
170 Actual: called once - unsatisfied and active
171
172 FILE:#: Failure
173 Actual function call count doesn't match EXPECT_CALL(foo_, Bar(_, _, _))...
174 Expected: to be called once
175 Actual: never called - unsatisfied and active
176
177 [ FAILED ] GMockOutputTest.UnsatisfiedExpectation
178 [ RUN ] GMockOutputTest.MismatchArguments
179 unknown file: Failure
180
181 Unexpected mock function call - returning default value.
182 Function call: Bar(@0x# "Ho", 0, -0.1)
183 Returns: '\0'
184 Google Mock tried the following 1 expectation, but it didn't match:
185
186 FILE:#: EXPECT_CALL(foo_, Bar(Ref(s), _, Ge(0)))...
187 Expected arg #0: references the variable @0x# "Hi"
188 Actual: "Ho", which is located @0x#
189 Expected arg #2: is >= 0
190 Actual: -0.1
191 Expected: to be called once
192 Actual: never called - unsatisfied and active
193
194 [ FAILED ] GMockOutputTest.MismatchArguments
195 [ RUN ] GMockOutputTest.MismatchWith
196 unknown file: Failure
197
198 Unexpected mock function call - returning default value.
199 Function call: Bar2(2, 3)
200 Returns: false
201 Google Mock tried the following 1 expectation, but it didn't match:
202
203 FILE:#: EXPECT_CALL(foo_, Bar2(Ge(2), Ge(1)))...
204 Expected args: are a pair where the first >= the second
205 Actual: don't match
206 Expected: to be called once
207 Actual: never called - unsatisfied and active
208
209 [ FAILED ] GMockOutputTest.MismatchWith
210 [ RUN ] GMockOutputTest.MismatchArgumentsAndWith
211 unknown file: Failure
212
213 Unexpected mock function call - returning default value.
214 Function call: Bar2(1, 3)
215 Returns: false
216 Google Mock tried the following 1 expectation, but it didn't match:
217
218 FILE:#: EXPECT_CALL(foo_, Bar2(Ge(2), Ge(1)))...
219 Expected arg #0: is >= 2
220 Actual: 1
221 Expected args: are a pair where the first >= the second
222 Actual: don't match
223 Expected: to be called once
224 Actual: never called - unsatisfied and active
225
226 [ FAILED ] GMockOutputTest.MismatchArgumentsAndWith
227 [ RUN ] GMockOutputTest.UnexpectedCallWithDefaultAction
228 unknown file: Failure
229
230 Unexpected mock function call - taking default action specified at:
231 FILE:#:
232 Function call: Bar2(1, 0)
233 Returns: false
234 Google Mock tried the following 1 expectation, but it didn't match:
235
236 FILE:#: EXPECT_CALL(foo_, Bar2(2, 2))...
237 Expected arg #0: is equal to 2
238 Actual: 1
239 Expected arg #1: is equal to 2
240 Actual: 0
241 Expected: to be called once
242 Actual: never called - unsatisfied and active
243
244 unknown file: Failure
245
246 Unexpected mock function call - taking default action specified at:
247 FILE:#:
248 Function call: Bar2(0, 0)
249 Returns: true
250 Google Mock tried the following 1 expectation, but it didn't match:
251
252 FILE:#: EXPECT_CALL(foo_, Bar2(2, 2))...
253 Expected arg #0: is equal to 2
254 Actual: 0
255 Expected arg #1: is equal to 2
256 Actual: 0
257 Expected: to be called once
258 Actual: never called - unsatisfied and active
259
260 [ FAILED ] GMockOutputTest.UnexpectedCallWithDefaultAction
261 [ RUN ] GMockOutputTest.ExcessiveCallWithDefaultAction
262 FILE:#: Failure
263 Mock function called more times than expected - taking default action specified at:
264 FILE:#:
265 Function call: Bar2(2, 2)
266 Returns: true
267 Expected: to be called once
268 Actual: called twice - over-saturated and active
269
270 FILE:#: Failure
271 Mock function called more times than expected - taking default action specified at:
272 FILE:#:
273 Function call: Bar2(1, 1)
274 Returns: false
275 Expected: to be called once
276 Actual: called twice - over-saturated and active
277
278 [ FAILED ] GMockOutputTest.ExcessiveCallWithDefaultAction
279 [ RUN ] GMockOutputTest.UninterestingCallWithDefaultAction
280
281 GMOCK WARNING:
282 Uninteresting mock function call - taking default action specified at:
283 FILE:#:
284 Function call: Bar2(2, 2)
285 Returns: true
286 NOTE: You can safely ignore the above warning unless this call should not happen. Do not suppress it by blindly adding an EXPECT_CALL() if you don't mean to enforce the call. See https://github.com/google/googletest/blob/main/docs/gmock_cook_book.md#knowing-when-to-expect-useoncall for details.
287
288 GMOCK WARNING:
289 Uninteresting mock function call - taking default action specified at:
290 FILE:#:
291 Function call: Bar2(1, 1)
292 Returns: false
293 NOTE: You can safely ignore the above warning unless this call should not happen. Do not suppress it by blindly adding an EXPECT_CALL() if you don't mean to enforce the call. See https://github.com/google/googletest/blob/main/docs/gmock_cook_book.md#knowing-when-to-expect-useoncall for details.
294 [ OK ] GMockOutputTest.UninterestingCallWithDefaultAction
295 [ RUN ] GMockOutputTest.ExplicitActionsRunOutWithDefaultAction
296
297 GMOCK WARNING:
298 FILE:#: Too few actions specified in EXPECT_CALL(foo_, Bar2(_, _))...
299 Expected to be called twice, but has only 1 WillOnce().
300 GMOCK WARNING:
301 FILE:#: Actions ran out in EXPECT_CALL(foo_, Bar2(_, _))...
302 Called 2 times, but only 1 WillOnce() is specified - taking default action specified at:
303 FILE:#:
304 Stack trace:
305 [ OK ] GMockOutputTest.ExplicitActionsRunOutWithDefaultAction
306 [ RUN ] GMockOutputTest.CatchesLeakedMocks
307 [ OK ] GMockOutputTest.CatchesLeakedMocks
308 [ RUN ] GMockOutputTest.PrintsMatcher
309 FILE:#: Failure
310 Value of: (std::pair<int, bool>(42, true))
311 Expected: is pair (first: is >= 48, second: true)
312 Actual: (42, true) (of type std::pair<int,bool>)
313
314 [ FAILED ] GMockOutputTest.PrintsMatcher
315 [ FAILED ] GMockOutputTest.UnexpectedCall
316 [ FAILED ] GMockOutputTest.UnexpectedCallToVoidFunction
317 [ FAILED ] GMockOutputTest.ExcessiveCall
318 [ FAILED ] GMockOutputTest.ExcessiveCallToVoidFunction
319 [ FAILED ] GMockOutputTest.RetiredExpectation
320 [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisite
321 [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisites
322 [ FAILED ] GMockOutputTest.UnsatisfiedWith
323 [ FAILED ] GMockOutputTest.UnsatisfiedExpectation
324 [ FAILED ] GMockOutputTest.MismatchArguments
325 [ FAILED ] GMockOutputTest.MismatchWith
326 [ FAILED ] GMockOutputTest.MismatchArgumentsAndWith
327 [ FAILED ] GMockOutputTest.UnexpectedCallWithDefaultAction
328 [ FAILED ] GMockOutputTest.ExcessiveCallWithDefaultAction
329 [ FAILED ] GMockOutputTest.PrintsMatcher
330
331
332 FILE:#: ERROR: this mock object should be deleted but never is. Its address is @0x#.
333 FILE:#: ERROR: this mock object should be deleted but never is. Its address is @0x#.
334 FILE:#: ERROR: this mock object should be deleted but never is. Its address is @0x#.
335 ERROR: 3 leaked mock objects found at program exit. Expectations on a mock object are verified when the object is destructed. Leaking a mock means that its expectations aren't verified, which is usually a test bug. If you really intend to leak a mock, you can suppress this error using testing::Mock::AllowLeak(mock_object), or you may use a fake or stub instead of a mock.