gmock_output_test_golden.txt 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. [ RUN ] GMockOutputTest.ExpectedCall
  2. FILE:#: EXPECT_CALL(foo_, Bar2(0, _)) invoked
  3. Stack trace:
  4. FILE:#: Mock function call matches EXPECT_CALL(foo_, Bar2(0, _))...
  5. Function call: Bar2(0, 0)
  6. Returns: false
  7. Stack trace:
  8. [ OK ] GMockOutputTest.ExpectedCall
  9. [ RUN ] GMockOutputTest.ExpectedCallToVoidFunction
  10. FILE:#: EXPECT_CALL(foo_, Bar3(0, _)) invoked
  11. Stack trace:
  12. FILE:#: Mock function call matches EXPECT_CALL(foo_, Bar3(0, _))...
  13. Function call: Bar3(0, 0)
  14. Stack trace:
  15. [ OK ] GMockOutputTest.ExpectedCallToVoidFunction
  16. [ RUN ] GMockOutputTest.ExplicitActionsRunOut
  17. GMOCK WARNING:
  18. FILE:#: Too few actions specified in EXPECT_CALL(foo_, Bar2(_, _))...
  19. Expected to be called twice, but has only 1 WillOnce().
  20. GMOCK WARNING:
  21. FILE:#: Actions ran out in EXPECT_CALL(foo_, Bar2(_, _))...
  22. Called 2 times, but only 1 WillOnce() is specified - returning default value.
  23. Stack trace:
  24. [ OK ] GMockOutputTest.ExplicitActionsRunOut
  25. [ RUN ] GMockOutputTest.UnexpectedCall
  26. unknown file: Failure
  27. Unexpected mock function call - returning default value.
  28. Function call: Bar2(1, 0)
  29. Returns: false
  30. Google Mock tried the following 1 expectation, but it didn't match:
  31. FILE:#: EXPECT_CALL(foo_, Bar2(0, _))...
  32. Expected arg #0: is equal to 0
  33. Actual: 1
  34. Expected: to be called once
  35. Actual: never called - unsatisfied and active
  36. [ FAILED ] GMockOutputTest.UnexpectedCall
  37. [ RUN ] GMockOutputTest.UnexpectedCallToVoidFunction
  38. unknown file: Failure
  39. Unexpected mock function call - returning directly.
  40. Function call: Bar3(1, 0)
  41. Google Mock tried the following 1 expectation, but it didn't match:
  42. FILE:#: EXPECT_CALL(foo_, Bar3(0, _))...
  43. Expected arg #0: is equal to 0
  44. Actual: 1
  45. Expected: to be called once
  46. Actual: never called - unsatisfied and active
  47. [ FAILED ] GMockOutputTest.UnexpectedCallToVoidFunction
  48. [ RUN ] GMockOutputTest.ExcessiveCall
  49. FILE:#: Failure
  50. Mock function called more times than expected - returning default value.
  51. Function call: Bar2(0, 1)
  52. Returns: false
  53. Expected: to be called once
  54. Actual: called twice - over-saturated and active
  55. [ FAILED ] GMockOutputTest.ExcessiveCall
  56. [ RUN ] GMockOutputTest.ExcessiveCallToVoidFunction
  57. FILE:#: Failure
  58. Mock function called more times than expected - returning directly.
  59. Function call: Bar3(0, 1)
  60. Expected: to be called once
  61. Actual: called twice - over-saturated and active
  62. [ FAILED ] GMockOutputTest.ExcessiveCallToVoidFunction
  63. [ RUN ] GMockOutputTest.UninterestingCall
  64. GMOCK WARNING:
  65. Uninteresting mock function call - returning default value.
  66. Function call: Bar2(0, 1)
  67. Returns: false
  68. 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.
  69. [ OK ] GMockOutputTest.UninterestingCall
  70. [ RUN ] GMockOutputTest.UninterestingCallToVoidFunction
  71. GMOCK WARNING:
  72. Uninteresting mock function call - returning directly.
  73. Function call: Bar3(0, 1)
  74. 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.
  75. [ OK ] GMockOutputTest.UninterestingCallToVoidFunction
  76. [ RUN ] GMockOutputTest.RetiredExpectation
  77. unknown file: Failure
  78. Unexpected mock function call - returning default value.
  79. Function call: Bar2(1, 1)
  80. Returns: false
  81. Google Mock tried the following 2 expectations, but none matched:
  82. FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(_, _))...
  83. Expected: the expectation is active
  84. Actual: it is retired
  85. Expected: to be called once
  86. Actual: called once - saturated and retired
  87. FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(0, 0))...
  88. Expected arg #0: is equal to 0
  89. Actual: 1
  90. Expected arg #1: is equal to 0
  91. Actual: 1
  92. Expected: to be called once
  93. Actual: never called - unsatisfied and active
  94. [ FAILED ] GMockOutputTest.RetiredExpectation
  95. [ RUN ] GMockOutputTest.UnsatisfiedPrerequisite
  96. unknown file: Failure
  97. Unexpected mock function call - returning default value.
  98. Function call: Bar2(1, 0)
  99. Returns: false
  100. Google Mock tried the following 2 expectations, but none matched:
  101. FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(0, 0))...
  102. Expected arg #0: is equal to 0
  103. Actual: 1
  104. Expected: to be called once
  105. Actual: never called - unsatisfied and active
  106. FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(1, _))...
  107. Expected: all pre-requisites are satisfied
  108. Actual: the following immediate pre-requisites are not satisfied:
  109. FILE:#: pre-requisite #0
  110. (end of pre-requisites)
  111. Expected: to be called once
  112. Actual: never called - unsatisfied and active
  113. [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisite
  114. [ RUN ] GMockOutputTest.UnsatisfiedPrerequisites
  115. unknown file: Failure
  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. FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(0, 0))...
  121. Expected arg #0: is equal to 0
  122. Actual: 1
  123. Expected: to be called once
  124. Actual: never called - unsatisfied and active
  125. FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(1, _))...
  126. Expected: all pre-requisites are satisfied
  127. Actual: the following immediate pre-requisites are not satisfied:
  128. FILE:#: pre-requisite #0
  129. FILE:#: pre-requisite #1
  130. (end of pre-requisites)
  131. Expected: to be called once
  132. Actual: never called - unsatisfied and active
  133. [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisites
  134. [ RUN ] GMockOutputTest.UnsatisfiedWith
  135. FILE:#: Failure
  136. Actual function call count doesn't match EXPECT_CALL(foo_, Bar2(_, _))...
  137. Expected args: are a pair where the first >= the second
  138. Expected: to be called once
  139. Actual: never called - unsatisfied and active
  140. [ FAILED ] GMockOutputTest.UnsatisfiedWith
  141. [ RUN ] GMockOutputTest.UnsatisfiedExpectation
  142. FILE:#: Failure
  143. Actual function call count doesn't match EXPECT_CALL(foo_, Bar2(0, _))...
  144. Expected: to be called twice
  145. Actual: called once - unsatisfied and active
  146. FILE:#: Failure
  147. Actual function call count doesn't match EXPECT_CALL(foo_, Bar(_, _, _))...
  148. Expected: to be called once
  149. Actual: never called - unsatisfied and active
  150. [ FAILED ] GMockOutputTest.UnsatisfiedExpectation
  151. [ RUN ] GMockOutputTest.MismatchArguments
  152. unknown file: Failure
  153. Unexpected mock function call - returning default value.
  154. Function call: Bar(@0x# "Ho", 0, -0.1)
  155. Returns: '\0'
  156. Google Mock tried the following 1 expectation, but it didn't match:
  157. FILE:#: EXPECT_CALL(foo_, Bar(Ref(s), _, Ge(0)))...
  158. Expected arg #0: references the variable @0x# "Hi"
  159. Actual: "Ho", which is located @0x#
  160. Expected arg #2: is >= 0
  161. Actual: -0.1
  162. Expected: to be called once
  163. Actual: never called - unsatisfied and active
  164. [ FAILED ] GMockOutputTest.MismatchArguments
  165. [ RUN ] GMockOutputTest.MismatchWith
  166. unknown file: Failure
  167. Unexpected mock function call - returning default value.
  168. Function call: Bar2(2, 3)
  169. Returns: false
  170. Google Mock tried the following 1 expectation, but it didn't match:
  171. FILE:#: EXPECT_CALL(foo_, Bar2(Ge(2), Ge(1)))...
  172. Expected args: are a pair where the first >= the second
  173. Actual: don't match
  174. Expected: to be called once
  175. Actual: never called - unsatisfied and active
  176. [ FAILED ] GMockOutputTest.MismatchWith
  177. [ RUN ] GMockOutputTest.MismatchArgumentsAndWith
  178. unknown file: Failure
  179. Unexpected mock function call - returning default value.
  180. Function call: Bar2(1, 3)
  181. Returns: false
  182. Google Mock tried the following 1 expectation, but it didn't match:
  183. FILE:#: EXPECT_CALL(foo_, Bar2(Ge(2), Ge(1)))...
  184. Expected arg #0: is >= 2
  185. Actual: 1
  186. Expected args: are a pair where the first >= the second
  187. Actual: don't match
  188. Expected: to be called once
  189. Actual: never called - unsatisfied and active
  190. [ FAILED ] GMockOutputTest.MismatchArgumentsAndWith
  191. [ RUN ] GMockOutputTest.UnexpectedCallWithDefaultAction
  192. unknown file: Failure
  193. Unexpected mock function call - taking default action specified at:
  194. FILE:#:
  195. Function call: Bar2(1, 0)
  196. Returns: false
  197. Google Mock tried the following 1 expectation, but it didn't match:
  198. FILE:#: EXPECT_CALL(foo_, Bar2(2, 2))...
  199. Expected arg #0: is equal to 2
  200. Actual: 1
  201. Expected arg #1: is equal to 2
  202. Actual: 0
  203. Expected: to be called once
  204. Actual: never called - unsatisfied and active
  205. unknown file: Failure
  206. Unexpected mock function call - taking default action specified at:
  207. FILE:#:
  208. Function call: Bar2(0, 0)
  209. Returns: true
  210. Google Mock tried the following 1 expectation, but it didn't match:
  211. FILE:#: EXPECT_CALL(foo_, Bar2(2, 2))...
  212. Expected arg #0: is equal to 2
  213. Actual: 0
  214. Expected arg #1: is equal to 2
  215. Actual: 0
  216. Expected: to be called once
  217. Actual: never called - unsatisfied and active
  218. [ FAILED ] GMockOutputTest.UnexpectedCallWithDefaultAction
  219. [ RUN ] GMockOutputTest.ExcessiveCallWithDefaultAction
  220. FILE:#: Failure
  221. Mock function called more times than expected - taking default action specified at:
  222. FILE:#:
  223. Function call: Bar2(2, 2)
  224. Returns: true
  225. Expected: to be called once
  226. Actual: called twice - over-saturated and active
  227. FILE:#: Failure
  228. Mock function called more times than expected - taking default action specified at:
  229. FILE:#:
  230. Function call: Bar2(1, 1)
  231. Returns: false
  232. Expected: to be called once
  233. Actual: called twice - over-saturated and active
  234. [ FAILED ] GMockOutputTest.ExcessiveCallWithDefaultAction
  235. [ RUN ] GMockOutputTest.UninterestingCallWithDefaultAction
  236. GMOCK WARNING:
  237. Uninteresting mock function call - taking default action specified at:
  238. FILE:#:
  239. Function call: Bar2(2, 2)
  240. Returns: true
  241. 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.
  242. GMOCK WARNING:
  243. Uninteresting mock function call - taking default action specified at:
  244. FILE:#:
  245. Function call: Bar2(1, 1)
  246. Returns: false
  247. 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.
  248. [ OK ] GMockOutputTest.UninterestingCallWithDefaultAction
  249. [ RUN ] GMockOutputTest.ExplicitActionsRunOutWithDefaultAction
  250. GMOCK WARNING:
  251. FILE:#: Too few actions specified in EXPECT_CALL(foo_, Bar2(_, _))...
  252. Expected to be called twice, but has only 1 WillOnce().
  253. GMOCK WARNING:
  254. FILE:#: Actions ran out in EXPECT_CALL(foo_, Bar2(_, _))...
  255. Called 2 times, but only 1 WillOnce() is specified - taking default action specified at:
  256. FILE:#:
  257. Stack trace:
  258. [ OK ] GMockOutputTest.ExplicitActionsRunOutWithDefaultAction
  259. [ RUN ] GMockOutputTest.CatchesLeakedMocks
  260. [ OK ] GMockOutputTest.CatchesLeakedMocks
  261. [ RUN ] GMockOutputTest.PrintsMatcher
  262. FILE:#: Failure
  263. Value of: (std::pair<int, bool>(42, true))
  264. Expected: is pair (is >= 48, true)
  265. Actual: (42, true) (of type std::pair<int, bool>)
  266. [ FAILED ] GMockOutputTest.PrintsMatcher
  267. [ FAILED ] GMockOutputTest.UnexpectedCall
  268. [ FAILED ] GMockOutputTest.UnexpectedCallToVoidFunction
  269. [ FAILED ] GMockOutputTest.ExcessiveCall
  270. [ FAILED ] GMockOutputTest.ExcessiveCallToVoidFunction
  271. [ FAILED ] GMockOutputTest.RetiredExpectation
  272. [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisite
  273. [ FAILED ] GMockOutputTest.UnsatisfiedPrerequisites
  274. [ FAILED ] GMockOutputTest.UnsatisfiedWith
  275. [ FAILED ] GMockOutputTest.UnsatisfiedExpectation
  276. [ FAILED ] GMockOutputTest.MismatchArguments
  277. [ FAILED ] GMockOutputTest.MismatchWith
  278. [ FAILED ] GMockOutputTest.MismatchArgumentsAndWith
  279. [ FAILED ] GMockOutputTest.UnexpectedCallWithDefaultAction
  280. [ FAILED ] GMockOutputTest.ExcessiveCallWithDefaultAction
  281. [ FAILED ] GMockOutputTest.PrintsMatcher
  282. FILE:#: ERROR: this mock object should be deleted but never is. Its address is @0x#.
  283. FILE:#: ERROR: this mock object should be deleted but never is. Its address is @0x#.
  284. FILE:#: ERROR: this mock object should be deleted but never is. Its address is @0x#.
  285. 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.