1 [ RUN ] GMockOutputTest.ExpectedCall
3 FILE:#: EXPECT_CALL(foo_, Bar2(0, _)) invoked
6 FILE:#: Mock function call matches EXPECT_CALL(foo_, Bar2(0, _))...
7 Function call: Bar2(0, 0)
10 [ OK ] GMockOutputTest.ExpectedCall
11 [ RUN ] GMockOutputTest.ExpectedCallToVoidFunction
13 FILE:#: EXPECT_CALL(foo_, Bar3(0, _)) invoked
16 FILE:#: Mock function call matches EXPECT_CALL(foo_, Bar3(0, _))...
17 Function call: Bar3(0, 0)
19 [ OK ] GMockOutputTest.ExpectedCallToVoidFunction
20 [ RUN ] GMockOutputTest.ExplicitActionsRunOut
23 FILE:#: Too few actions specified in EXPECT_CALL(foo_, Bar2(_, _))...
24 Expected to be called twice, but has only 1 WillOnce().
26 FILE:#: Actions ran out in EXPECT_CALL(foo_, Bar2(_, _))...
27 Called 2 times, but only 1 WillOnce() is specified - returning default value.
29 [ OK ] GMockOutputTest.ExplicitActionsRunOut
30 [ RUN ] GMockOutputTest.UnexpectedCall
33 Unexpected mock function call - returning default value.
34 Function call: Bar2(1, 0)
36 Google Mock tried the following 1 expectation, but it didn't match:
38 FILE:#: EXPECT_CALL(foo_, Bar2(0, _))...
39 Expected arg #0: is equal to 0
41 Expected: to be called once
42 Actual: never called - unsatisfied and active
44 [ FAILED ] GMockOutputTest.UnexpectedCall
45 [ RUN ] GMockOutputTest.UnexpectedCallToVoidFunction
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:
52 FILE:#: EXPECT_CALL(foo_, Bar3(0, _))...
53 Expected arg #0: is equal to 0
55 Expected: to be called once
56 Actual: never called - unsatisfied and active
58 [ FAILED ] GMockOutputTest.UnexpectedCallToVoidFunction
59 [ RUN ] GMockOutputTest.ExcessiveCall
61 Mock function called more times than expected - returning default value.
62 Function call: Bar2(0, 1)
64 Expected: to be called once
65 Actual: called twice - over-saturated and active
67 [ FAILED ] GMockOutputTest.ExcessiveCall
68 [ RUN ] GMockOutputTest.ExcessiveCallToVoidFunction
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
75 [ FAILED ] GMockOutputTest.ExcessiveCallToVoidFunction
76 [ RUN ] GMockOutputTest.UninterestingCall
79 Uninteresting mock function call - returning default value.
80 Function call: Bar2(0, 1)
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
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
94 Unexpected mock function call - returning default value.
95 Function call: Bar2(1, 1)
97 Google Mock tried the following 2 expectations, but none matched:
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
107 Expected arg #1: is equal to 0
109 Expected: to be called once
110 Actual: never called - unsatisfied and active
112 [ FAILED ] GMockOutputTest.RetiredExpectation
113 [ RUN ] GMockOutputTest.UnsatisfiedPrerequisite
114 unknown file: Failure
116 Unexpected mock function call - returning default value.
117 Function call: Bar2(1, 0)
119 Google Mock tried the following 2 expectations, but none matched:
121 FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(0, 0))...
122 Expected arg #0: is equal to 0
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
134 [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisite
135 [ RUN ] GMockOutputTest.UnsatisfiedPrerequisites
136 unknown file: Failure
138 Unexpected mock function call - returning default value.
139 Function call: Bar2(1, 0)
141 Google Mock tried the following 2 expectations, but none matched:
143 FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(0, 0))...
144 Expected arg #0: is equal to 0
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
157 [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisites
158 [ RUN ] GMockOutputTest.UnsatisfiedWith
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
165 [ FAILED ] GMockOutputTest.UnsatisfiedWith
166 [ RUN ] GMockOutputTest.UnsatisfiedExpectation
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
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
177 [ FAILED ] GMockOutputTest.UnsatisfiedExpectation
178 [ RUN ] GMockOutputTest.MismatchArguments
179 unknown file: Failure
181 Unexpected mock function call - returning default value.
182 Function call: Bar(@0x# "Ho", 0, -0.1)
184 Google Mock tried the following 1 expectation, but it didn't match:
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
191 Expected: to be called once
192 Actual: never called - unsatisfied and active
194 [ FAILED ] GMockOutputTest.MismatchArguments
195 [ RUN ] GMockOutputTest.MismatchWith
196 unknown file: Failure
198 Unexpected mock function call - returning default value.
199 Function call: Bar2(2, 3)
201 Google Mock tried the following 1 expectation, but it didn't match:
203 FILE:#: EXPECT_CALL(foo_, Bar2(Ge(2), Ge(1)))...
204 Expected args: are a pair where the first >= the second
206 Expected: to be called once
207 Actual: never called - unsatisfied and active
209 [ FAILED ] GMockOutputTest.MismatchWith
210 [ RUN ] GMockOutputTest.MismatchArgumentsAndWith
211 unknown file: Failure
213 Unexpected mock function call - returning default value.
214 Function call: Bar2(1, 3)
216 Google Mock tried the following 1 expectation, but it didn't match:
218 FILE:#: EXPECT_CALL(foo_, Bar2(Ge(2), Ge(1)))...
219 Expected arg #0: is >= 2
221 Expected args: are a pair where the first >= the second
223 Expected: to be called once
224 Actual: never called - unsatisfied and active
226 [ FAILED ] GMockOutputTest.MismatchArgumentsAndWith
227 [ RUN ] GMockOutputTest.UnexpectedCallWithDefaultAction
228 unknown file: Failure
230 Unexpected mock function call - taking default action specified at:
232 Function call: Bar2(1, 0)
234 Google Mock tried the following 1 expectation, but it didn't match:
236 FILE:#: EXPECT_CALL(foo_, Bar2(2, 2))...
237 Expected arg #0: is equal to 2
239 Expected arg #1: is equal to 2
241 Expected: to be called once
242 Actual: never called - unsatisfied and active
244 unknown file: Failure
246 Unexpected mock function call - taking default action specified at:
248 Function call: Bar2(0, 0)
250 Google Mock tried the following 1 expectation, but it didn't match:
252 FILE:#: EXPECT_CALL(foo_, Bar2(2, 2))...
253 Expected arg #0: is equal to 2
255 Expected arg #1: is equal to 2
257 Expected: to be called once
258 Actual: never called - unsatisfied and active
260 [ FAILED ] GMockOutputTest.UnexpectedCallWithDefaultAction
261 [ RUN ] GMockOutputTest.ExcessiveCallWithDefaultAction
263 Mock function called more times than expected - taking default action specified at:
265 Function call: Bar2(2, 2)
267 Expected: to be called once
268 Actual: called twice - over-saturated and active
271 Mock function called more times than expected - taking default action specified at:
273 Function call: Bar2(1, 1)
275 Expected: to be called once
276 Actual: called twice - over-saturated and active
278 [ FAILED ] GMockOutputTest.ExcessiveCallWithDefaultAction
279 [ RUN ] GMockOutputTest.UninterestingCallWithDefaultAction
282 Uninteresting mock function call - taking default action specified at:
284 Function call: Bar2(2, 2)
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.
289 Uninteresting mock function call - taking default action specified at:
291 Function call: Bar2(1, 1)
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
298 FILE:#: Too few actions specified in EXPECT_CALL(foo_, Bar2(_, _))...
299 Expected to be called twice, but has only 1 WillOnce().
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:
305 [ OK ] GMockOutputTest.ExplicitActionsRunOutWithDefaultAction
306 [ RUN ] GMockOutputTest.CatchesLeakedMocks
307 [ OK ] GMockOutputTest.CatchesLeakedMocks
308 [ RUN ] GMockOutputTest.PrintsMatcher
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>)
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
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.