1[ RUN      ] GMockOutputTest.ExpectedCall
2
3FILE:#: EXPECT_CALL(foo_, Bar2(0, _)) invoked
4Stack trace:
5
6FILE:#: Mock function call matches EXPECT_CALL(foo_, Bar2(0, _))...
7    Function call: Bar2(0, 0)
8          Returns: false
9Stack trace:
10[       OK ] GMockOutputTest.ExpectedCall
11[ RUN      ] GMockOutputTest.ExpectedCallToVoidFunction
12
13FILE:#: EXPECT_CALL(foo_, Bar3(0, _)) invoked
14Stack trace:
15
16FILE:#: Mock function call matches EXPECT_CALL(foo_, Bar3(0, _))...
17    Function call: Bar3(0, 0)
18Stack trace:
19[       OK ] GMockOutputTest.ExpectedCallToVoidFunction
20[ RUN      ] GMockOutputTest.ExplicitActionsRunOut
21
22GMOCK WARNING:
23FILE:#: Too few actions specified in EXPECT_CALL(foo_, Bar2(_, _))...
24Expected to be called twice, but has only 1 WillOnce().
25GMOCK WARNING:
26FILE:#: Actions ran out in EXPECT_CALL(foo_, Bar2(_, _))...
27Called 2 times, but only 1 WillOnce() is specified - returning default value.
28Stack trace:
29[       OK ] GMockOutputTest.ExplicitActionsRunOut
30[ RUN      ] GMockOutputTest.UnexpectedCall
31unknown file: Failure
32
33Unexpected mock function call - returning default value.
34    Function call: Bar2(1, 0)
35          Returns: false
36Google Mock tried the following 1 expectation, but it didn't match:
37
38FILE:#: 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
46unknown file: Failure
47
48Unexpected mock function call - returning directly.
49    Function call: Bar3(1, 0)
50Google Mock tried the following 1 expectation, but it didn't match:
51
52FILE:#: 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
60FILE:#: Failure
61Mock 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
69FILE:#: Failure
70Mock 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
78GMOCK WARNING:
79Uninteresting mock function call - returning default value.
80    Function call: Bar2(0, 1)
81          Returns: false
82NOTE: 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
86GMOCK WARNING:
87Uninteresting mock function call - returning directly.
88    Function call: Bar3(0, 1)
89NOTE: 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
92unknown file: Failure
93
94Unexpected mock function call - returning default value.
95    Function call: Bar2(1, 1)
96          Returns: false
97Google Mock tried the following 2 expectations, but none matched:
98
99FILE:#: 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
104FILE:#: 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
114unknown file: Failure
115
116Unexpected mock function call - returning default value.
117    Function call: Bar2(1, 0)
118          Returns: false
119Google Mock tried the following 2 expectations, but none matched:
120
121FILE:#: 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
126FILE:#: 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:
129FILE:#: 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
136unknown file: Failure
137
138Unexpected mock function call - returning default value.
139    Function call: Bar2(1, 0)
140          Returns: false
141Google Mock tried the following 2 expectations, but none matched:
142
143FILE:#: 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
148FILE:#: 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:
151FILE:#: pre-requisite #0
152FILE:#: 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
159FILE:#: Failure
160Actual 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
167FILE:#: Failure
168Actual 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
172FILE:#: Failure
173Actual 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
179unknown file: Failure
180
181Unexpected mock function call - returning default value.
182    Function call: Bar(@0x# "Ho", 0, -0.1)
183          Returns: '\0'
184Google Mock tried the following 1 expectation, but it didn't match:
185
186FILE:#: 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
196unknown file: Failure
197
198Unexpected mock function call - returning default value.
199    Function call: Bar2(2, 3)
200          Returns: false
201Google Mock tried the following 1 expectation, but it didn't match:
202
203FILE:#: 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
211unknown file: Failure
212
213Unexpected mock function call - returning default value.
214    Function call: Bar2(1, 3)
215          Returns: false
216Google Mock tried the following 1 expectation, but it didn't match:
217
218FILE:#: 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
228unknown file: Failure
229
230Unexpected mock function call - taking default action specified at:
231FILE:#:
232    Function call: Bar2(1, 0)
233          Returns: false
234Google Mock tried the following 1 expectation, but it didn't match:
235
236FILE:#: 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
244unknown file: Failure
245
246Unexpected mock function call - taking default action specified at:
247FILE:#:
248    Function call: Bar2(0, 0)
249          Returns: true
250Google Mock tried the following 1 expectation, but it didn't match:
251
252FILE:#: 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
262FILE:#: Failure
263Mock function called more times than expected - taking default action specified at:
264FILE:#:
265    Function call: Bar2(2, 2)
266          Returns: true
267         Expected: to be called once
268           Actual: called twice - over-saturated and active
269
270FILE:#: Failure
271Mock function called more times than expected - taking default action specified at:
272FILE:#:
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
281GMOCK WARNING:
282Uninteresting mock function call - taking default action specified at:
283FILE:#:
284    Function call: Bar2(2, 2)
285          Returns: true
286NOTE: 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
288GMOCK WARNING:
289Uninteresting mock function call - taking default action specified at:
290FILE:#:
291    Function call: Bar2(1, 1)
292          Returns: false
293NOTE: 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
297GMOCK WARNING:
298FILE:#: Too few actions specified in EXPECT_CALL(foo_, Bar2(_, _))...
299Expected to be called twice, but has only 1 WillOnce().
300GMOCK WARNING:
301FILE:#: Actions ran out in EXPECT_CALL(foo_, Bar2(_, _))...
302Called 2 times, but only 1 WillOnce() is specified - taking default action specified at:
303FILE:#:
304Stack trace:
305[       OK ] GMockOutputTest.ExplicitActionsRunOutWithDefaultAction
306[ RUN      ] GMockOutputTest.CatchesLeakedMocks
307[       OK ] GMockOutputTest.CatchesLeakedMocks
308[ RUN      ] GMockOutputTest.PrintsMatcher
309FILE:#: Failure
310Value of: (std::pair<int, bool>(42, true))
311Expected: 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
332FILE:#: ERROR: this mock object should be deleted but never is. Its address is @0x#.
333FILE:#: ERROR: this mock object should be deleted but never is. Its address is @0x#.
334FILE:#: ERROR: this mock object should be deleted but never is. Its address is @0x#.
335ERROR: 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.
336