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
43 [ FAILED ] GMockOutputTest.UnexpectedCall
44 [ RUN ] GMockOutputTest.UnexpectedCallToVoidFunction
47 Unexpected mock function call - returning directly.
48 Function call: Bar3(1, 0)
49 Google Mock tried the following 1 expectation, but it didn't match:
51 FILE:#: EXPECT_CALL(foo_, Bar3(0, _))...
52 Expected arg #0: is equal to 0
54 Expected: to be called once
55 Actual: never called - unsatisfied and active
56 [ FAILED ] GMockOutputTest.UnexpectedCallToVoidFunction
57 [ RUN ] GMockOutputTest.ExcessiveCall
59 Mock function called more times than expected - returning default value.
60 Function call: Bar2(0, 1)
62 Expected: to be called once
63 Actual: called twice - over-saturated and active
64 [ FAILED ] GMockOutputTest.ExcessiveCall
65 [ RUN ] GMockOutputTest.ExcessiveCallToVoidFunction
67 Mock function called more times than expected - returning directly.
68 Function call: Bar3(0, 1)
69 Expected: to be called once
70 Actual: called twice - over-saturated and active
71 [ FAILED ] GMockOutputTest.ExcessiveCallToVoidFunction
72 [ RUN ] GMockOutputTest.UninterestingCall
75 Uninteresting mock function call - returning default value.
76 Function call: Bar2(0, 1)
78 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/master/googlemock/docs/CookBook.md#knowing-when-to-expect for details.
79 [ OK ] GMockOutputTest.UninterestingCall
80 [ RUN ] GMockOutputTest.UninterestingCallToVoidFunction
83 Uninteresting mock function call - returning directly.
84 Function call: Bar3(0, 1)
85 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/master/googlemock/docs/CookBook.md#knowing-when-to-expect for details.
86 [ OK ] GMockOutputTest.UninterestingCallToVoidFunction
87 [ RUN ] GMockOutputTest.RetiredExpectation
90 Unexpected mock function call - returning default value.
91 Function call: Bar2(1, 1)
93 Google Mock tried the following 2 expectations, but none matched:
95 FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(_, _))...
96 Expected: the expectation is active
98 Expected: to be called once
99 Actual: called once - saturated and retired
100 FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(0, 0))...
101 Expected arg #0: is equal to 0
103 Expected arg #1: is equal to 0
105 Expected: to be called once
106 Actual: never called - unsatisfied and active
107 [ FAILED ] GMockOutputTest.RetiredExpectation
108 [ RUN ] GMockOutputTest.UnsatisfiedPrerequisite
109 unknown file: Failure
111 Unexpected mock function call - returning default value.
112 Function call: Bar2(1, 0)
114 Google Mock tried the following 2 expectations, but none matched:
116 FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(0, 0))...
117 Expected arg #0: is equal to 0
119 Expected: to be called once
120 Actual: never called - unsatisfied and active
121 FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(1, _))...
122 Expected: all pre-requisites are satisfied
123 Actual: the following immediate pre-requisites are not satisfied:
124 FILE:#: pre-requisite #0
125 (end of pre-requisites)
126 Expected: to be called once
127 Actual: never called - unsatisfied and active
128 [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisite
129 [ RUN ] GMockOutputTest.UnsatisfiedPrerequisites
130 unknown file: Failure
132 Unexpected mock function call - returning default value.
133 Function call: Bar2(1, 0)
135 Google Mock tried the following 2 expectations, but none matched:
137 FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(0, 0))...
138 Expected arg #0: is equal to 0
140 Expected: to be called once
141 Actual: never called - unsatisfied and active
142 FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(1, _))...
143 Expected: all pre-requisites are satisfied
144 Actual: the following immediate pre-requisites are not satisfied:
145 FILE:#: pre-requisite #0
146 FILE:#: pre-requisite #1
147 (end of pre-requisites)
148 Expected: to be called once
149 Actual: never called - unsatisfied and active
150 [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisites
151 [ RUN ] GMockOutputTest.UnsatisfiedWith
153 Actual function call count doesn't match EXPECT_CALL(foo_, Bar2(_, _))...
154 Expected args: are a pair where the first >= the second
155 Expected: to be called once
156 Actual: never called - unsatisfied and active
157 [ FAILED ] GMockOutputTest.UnsatisfiedWith
158 [ RUN ] GMockOutputTest.UnsatisfiedExpectation
160 Actual function call count doesn't match EXPECT_CALL(foo_, Bar2(0, _))...
161 Expected: to be called twice
162 Actual: called once - unsatisfied and active
164 Actual function call count doesn't match EXPECT_CALL(foo_, Bar(_, _, _))...
165 Expected: to be called once
166 Actual: never called - unsatisfied and active
167 [ FAILED ] GMockOutputTest.UnsatisfiedExpectation
168 [ RUN ] GMockOutputTest.MismatchArguments
169 unknown file: Failure
171 Unexpected mock function call - returning default value.
172 Function call: Bar(@0x# "Ho", 0, -0.1)
174 Google Mock tried the following 1 expectation, but it didn't match:
176 FILE:#: EXPECT_CALL(foo_, Bar(Ref(s), _, Ge(0)))...
177 Expected arg #0: references the variable @0x# "Hi"
178 Actual: "Ho", which is located @0x#
179 Expected arg #2: is >= 0
181 Expected: to be called once
182 Actual: never called - unsatisfied and active
183 [ FAILED ] GMockOutputTest.MismatchArguments
184 [ RUN ] GMockOutputTest.MismatchWith
185 unknown file: Failure
187 Unexpected mock function call - returning default value.
188 Function call: Bar2(2, 3)
190 Google Mock tried the following 1 expectation, but it didn't match:
192 FILE:#: EXPECT_CALL(foo_, Bar2(Ge(2), Ge(1)))...
193 Expected args: are a pair where the first >= the second
195 Expected: to be called once
196 Actual: never called - unsatisfied and active
197 [ FAILED ] GMockOutputTest.MismatchWith
198 [ RUN ] GMockOutputTest.MismatchArgumentsAndWith
199 unknown file: Failure
201 Unexpected mock function call - returning default value.
202 Function call: Bar2(1, 3)
204 Google Mock tried the following 1 expectation, but it didn't match:
206 FILE:#: EXPECT_CALL(foo_, Bar2(Ge(2), Ge(1)))...
207 Expected arg #0: is >= 2
209 Expected args: are a pair where the first >= the second
211 Expected: to be called once
212 Actual: never called - unsatisfied and active
213 [ FAILED ] GMockOutputTest.MismatchArgumentsAndWith
214 [ RUN ] GMockOutputTest.UnexpectedCallWithDefaultAction
215 unknown file: Failure
217 Unexpected mock function call - taking default action specified at:
219 Function call: Bar2(1, 0)
221 Google Mock tried the following 1 expectation, but it didn't match:
223 FILE:#: EXPECT_CALL(foo_, Bar2(2, 2))...
224 Expected arg #0: is equal to 2
226 Expected arg #1: is equal to 2
228 Expected: to be called once
229 Actual: never called - unsatisfied and active
230 unknown file: Failure
232 Unexpected mock function call - taking default action specified at:
234 Function call: Bar2(0, 0)
236 Google Mock tried the following 1 expectation, but it didn't match:
238 FILE:#: EXPECT_CALL(foo_, Bar2(2, 2))...
239 Expected arg #0: is equal to 2
241 Expected arg #1: is equal to 2
243 Expected: to be called once
244 Actual: never called - unsatisfied and active
245 [ FAILED ] GMockOutputTest.UnexpectedCallWithDefaultAction
246 [ RUN ] GMockOutputTest.ExcessiveCallWithDefaultAction
248 Mock function called more times than expected - taking default action specified at:
250 Function call: Bar2(2, 2)
252 Expected: to be called once
253 Actual: called twice - over-saturated and active
255 Mock function called more times than expected - taking default action specified at:
257 Function call: Bar2(1, 1)
259 Expected: to be called once
260 Actual: called twice - over-saturated and active
261 [ FAILED ] GMockOutputTest.ExcessiveCallWithDefaultAction
262 [ RUN ] GMockOutputTest.UninterestingCallWithDefaultAction
265 Uninteresting mock function call - taking default action specified at:
267 Function call: Bar2(2, 2)
269 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/master/googlemock/docs/CookBook.md#knowing-when-to-expect for details.
272 Uninteresting mock function call - taking default action specified at:
274 Function call: Bar2(1, 1)
276 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/master/googlemock/docs/CookBook.md#knowing-when-to-expect for details.
277 [ OK ] GMockOutputTest.UninterestingCallWithDefaultAction
278 [ RUN ] GMockOutputTest.ExplicitActionsRunOutWithDefaultAction
281 FILE:#: Too few actions specified in EXPECT_CALL(foo_, Bar2(_, _))...
282 Expected to be called twice, but has only 1 WillOnce().
284 FILE:#: Actions ran out in EXPECT_CALL(foo_, Bar2(_, _))...
285 Called 2 times, but only 1 WillOnce() is specified - taking default action specified at:
288 [ OK ] GMockOutputTest.ExplicitActionsRunOutWithDefaultAction
289 [ RUN ] GMockOutputTest.CatchesLeakedMocks
290 [ OK ] GMockOutputTest.CatchesLeakedMocks
291 [ RUN ] GMockOutputTest.PrintsMatcher
293 Value of: (std::pair<int, bool>(42, true))
294 Expected: is pair (is >= 48, true)
295 Actual: (42, true) (of type std::pair<int, bool>)
296 [ FAILED ] GMockOutputTest.PrintsMatcher
297 [ FAILED ] GMockOutputTest.UnexpectedCall
298 [ FAILED ] GMockOutputTest.UnexpectedCallToVoidFunction
299 [ FAILED ] GMockOutputTest.ExcessiveCall
300 [ FAILED ] GMockOutputTest.ExcessiveCallToVoidFunction
301 [ FAILED ] GMockOutputTest.RetiredExpectation
302 [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisite
303 [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisites
304 [ FAILED ] GMockOutputTest.UnsatisfiedWith
305 [ FAILED ] GMockOutputTest.UnsatisfiedExpectation
306 [ FAILED ] GMockOutputTest.MismatchArguments
307 [ FAILED ] GMockOutputTest.MismatchWith
308 [ FAILED ] GMockOutputTest.MismatchArgumentsAndWith
309 [ FAILED ] GMockOutputTest.UnexpectedCallWithDefaultAction
310 [ FAILED ] GMockOutputTest.ExcessiveCallWithDefaultAction
311 [ FAILED ] GMockOutputTest.PrintsMatcher
314 FILE:#: ERROR: this mock object should be deleted but never is. Its address is @0x#.
315 FILE:#: ERROR: this mock object should be deleted but never is. Its address is @0x#.
316 FILE:#: ERROR: this mock object should be deleted but never is. Its address is @0x#.
317 ERROR: 3 leaked mock objects found at program exit. Expectations on a mock object is 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.