Path: blob/main/contrib/googletest/googlemock/test/gmock_output_test_golden.txt
48257 views
[ RUN ] GMockOutputTest.ExpectedCall12FILE:#: EXPECT_CALL(foo_, Bar2(0, _)) invoked3Stack trace:45FILE:#: Mock function call matches EXPECT_CALL(foo_, Bar2(0, _))...6Function call: Bar2(0, 0)7Returns: false8Stack trace:9[ OK ] GMockOutputTest.ExpectedCall10[ RUN ] GMockOutputTest.ExpectedCallToVoidFunction1112FILE:#: EXPECT_CALL(foo_, Bar3(0, _)) invoked13Stack trace:1415FILE:#: Mock function call matches EXPECT_CALL(foo_, Bar3(0, _))...16Function call: Bar3(0, 0)17Stack trace:18[ OK ] GMockOutputTest.ExpectedCallToVoidFunction19[ RUN ] GMockOutputTest.ExplicitActionsRunOut2021GMOCK WARNING:22FILE:#: Too few actions specified in EXPECT_CALL(foo_, Bar2(_, _))...23Expected to be called twice, but has only 1 WillOnce().24GMOCK WARNING:25FILE:#: Actions ran out in EXPECT_CALL(foo_, Bar2(_, _))...26Called 2 times, but only 1 WillOnce() is specified - returning default value.27Stack trace:28[ OK ] GMockOutputTest.ExplicitActionsRunOut29[ RUN ] GMockOutputTest.UnexpectedCall30unknown file: Failure3132Unexpected mock function call - returning default value.33Function call: Bar2(1, 0)34Returns: false35Google Mock tried the following 1 expectation, but it didn't match:3637FILE:#: EXPECT_CALL(foo_, Bar2(0, _))...38Expected arg #0: is equal to 039Actual: 140Expected: to be called once41Actual: never called - unsatisfied and active4243[ FAILED ] GMockOutputTest.UnexpectedCall44[ RUN ] GMockOutputTest.UnexpectedCallToVoidFunction45unknown file: Failure4647Unexpected mock function call - returning directly.48Function call: Bar3(1, 0)49Google Mock tried the following 1 expectation, but it didn't match:5051FILE:#: EXPECT_CALL(foo_, Bar3(0, _))...52Expected arg #0: is equal to 053Actual: 154Expected: to be called once55Actual: never called - unsatisfied and active5657[ FAILED ] GMockOutputTest.UnexpectedCallToVoidFunction58[ RUN ] GMockOutputTest.ExcessiveCall59FILE:#: Failure60Mock function called more times than expected - returning default value.61Function call: Bar2(0, 1)62Returns: false63Expected: to be called once64Actual: called twice - over-saturated and active6566[ FAILED ] GMockOutputTest.ExcessiveCall67[ RUN ] GMockOutputTest.ExcessiveCallToVoidFunction68FILE:#: Failure69Mock function called more times than expected - returning directly.70Function call: Bar3(0, 1)71Expected: to be called once72Actual: called twice - over-saturated and active7374[ FAILED ] GMockOutputTest.ExcessiveCallToVoidFunction75[ RUN ] GMockOutputTest.UninterestingCall7677GMOCK WARNING:78Uninteresting mock function call - returning default value.79Function call: Bar2(0, 1)80Returns: false81NOTE: 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.82[ OK ] GMockOutputTest.UninterestingCall83[ RUN ] GMockOutputTest.UninterestingCallToVoidFunction8485GMOCK WARNING:86Uninteresting mock function call - returning directly.87Function call: Bar3(0, 1)88NOTE: 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.89[ OK ] GMockOutputTest.UninterestingCallToVoidFunction90[ RUN ] GMockOutputTest.RetiredExpectation91unknown file: Failure9293Unexpected mock function call - returning default value.94Function call: Bar2(1, 1)95Returns: false96Google Mock tried the following 2 expectations, but none matched:9798FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(_, _))...99Expected: the expectation is active100Actual: it is retired101Expected: to be called once102Actual: called once - saturated and retired103FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(0, 0))...104Expected arg #0: is equal to 0105Actual: 1106Expected arg #1: is equal to 0107Actual: 1108Expected: to be called once109Actual: never called - unsatisfied and active110111[ FAILED ] GMockOutputTest.RetiredExpectation112[ RUN ] GMockOutputTest.UnsatisfiedPrerequisite113unknown file: Failure114115Unexpected mock function call - returning default value.116Function call: Bar2(1, 0)117Returns: false118Google Mock tried the following 2 expectations, but none matched:119120FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(0, 0))...121Expected arg #0: is equal to 0122Actual: 1123Expected: to be called once124Actual: never called - unsatisfied and active125FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(1, _))...126Expected: all pre-requisites are satisfied127Actual: the following immediate pre-requisites are not satisfied:128FILE:#: pre-requisite #0129(end of pre-requisites)130Expected: to be called once131Actual: never called - unsatisfied and active132133[ FAILED ] GMockOutputTest.UnsatisfiedPrerequisite134[ RUN ] GMockOutputTest.UnsatisfiedPrerequisites135unknown file: Failure136137Unexpected mock function call - returning default value.138Function call: Bar2(1, 0)139Returns: false140Google Mock tried the following 2 expectations, but none matched:141142FILE:#: tried expectation #0: EXPECT_CALL(foo_, Bar2(0, 0))...143Expected arg #0: is equal to 0144Actual: 1145Expected: to be called once146Actual: never called - unsatisfied and active147FILE:#: tried expectation #1: EXPECT_CALL(foo_, Bar2(1, _))...148Expected: all pre-requisites are satisfied149Actual: the following immediate pre-requisites are not satisfied:150FILE:#: pre-requisite #0151FILE:#: pre-requisite #1152(end of pre-requisites)153Expected: to be called once154Actual: never called - unsatisfied and active155156[ FAILED ] GMockOutputTest.UnsatisfiedPrerequisites157[ RUN ] GMockOutputTest.UnsatisfiedWith158FILE:#: Failure159Actual function call count doesn't match EXPECT_CALL(foo_, Bar2(_, _))...160Expected args: are a pair where the first >= the second161Expected: to be called once162Actual: never called - unsatisfied and active163164[ FAILED ] GMockOutputTest.UnsatisfiedWith165[ RUN ] GMockOutputTest.UnsatisfiedExpectation166FILE:#: Failure167Actual function call count doesn't match EXPECT_CALL(foo_, Bar2(0, _))...168Expected: to be called twice169Actual: called once - unsatisfied and active170171FILE:#: Failure172Actual function call count doesn't match EXPECT_CALL(foo_, Bar(_, _, _))...173Expected: to be called once174Actual: never called - unsatisfied and active175176[ FAILED ] GMockOutputTest.UnsatisfiedExpectation177[ RUN ] GMockOutputTest.MismatchArguments178unknown file: Failure179180Unexpected mock function call - returning default value.181Function call: Bar(@0x# "Ho", 0, -0.1)182Returns: '\0'183Google Mock tried the following 1 expectation, but it didn't match:184185FILE:#: EXPECT_CALL(foo_, Bar(Ref(s), _, Ge(0)))...186Expected arg #0: references the variable @0x# "Hi"187Actual: "Ho", which is located @0x#188Expected arg #2: is >= 0189Actual: -0.1190Expected: to be called once191Actual: never called - unsatisfied and active192193[ FAILED ] GMockOutputTest.MismatchArguments194[ RUN ] GMockOutputTest.MismatchWith195unknown file: Failure196197Unexpected mock function call - returning default value.198Function call: Bar2(2, 3)199Returns: false200Google Mock tried the following 1 expectation, but it didn't match:201202FILE:#: EXPECT_CALL(foo_, Bar2(Ge(2), Ge(1)))...203Expected args: are a pair where the first >= the second204Actual: don't match205Expected: to be called once206Actual: never called - unsatisfied and active207208[ FAILED ] GMockOutputTest.MismatchWith209[ RUN ] GMockOutputTest.MismatchArgumentsAndWith210unknown file: Failure211212Unexpected mock function call - returning default value.213Function call: Bar2(1, 3)214Returns: false215Google Mock tried the following 1 expectation, but it didn't match:216217FILE:#: EXPECT_CALL(foo_, Bar2(Ge(2), Ge(1)))...218Expected arg #0: is >= 2219Actual: 1220Expected args: are a pair where the first >= the second221Actual: don't match222Expected: to be called once223Actual: never called - unsatisfied and active224225[ FAILED ] GMockOutputTest.MismatchArgumentsAndWith226[ RUN ] GMockOutputTest.UnexpectedCallWithDefaultAction227unknown file: Failure228229Unexpected mock function call - taking default action specified at:230FILE:#:231Function call: Bar2(1, 0)232Returns: false233Google Mock tried the following 1 expectation, but it didn't match:234235FILE:#: EXPECT_CALL(foo_, Bar2(2, 2))...236Expected arg #0: is equal to 2237Actual: 1238Expected arg #1: is equal to 2239Actual: 0240Expected: to be called once241Actual: never called - unsatisfied and active242243unknown file: Failure244245Unexpected mock function call - taking default action specified at:246FILE:#:247Function call: Bar2(0, 0)248Returns: true249Google Mock tried the following 1 expectation, but it didn't match:250251FILE:#: EXPECT_CALL(foo_, Bar2(2, 2))...252Expected arg #0: is equal to 2253Actual: 0254Expected arg #1: is equal to 2255Actual: 0256Expected: to be called once257Actual: never called - unsatisfied and active258259[ FAILED ] GMockOutputTest.UnexpectedCallWithDefaultAction260[ RUN ] GMockOutputTest.ExcessiveCallWithDefaultAction261FILE:#: Failure262Mock function called more times than expected - taking default action specified at:263FILE:#:264Function call: Bar2(2, 2)265Returns: true266Expected: to be called once267Actual: called twice - over-saturated and active268269FILE:#: Failure270Mock function called more times than expected - taking default action specified at:271FILE:#:272Function call: Bar2(1, 1)273Returns: false274Expected: to be called once275Actual: called twice - over-saturated and active276277[ FAILED ] GMockOutputTest.ExcessiveCallWithDefaultAction278[ RUN ] GMockOutputTest.UninterestingCallWithDefaultAction279280GMOCK WARNING:281Uninteresting mock function call - taking default action specified at:282FILE:#:283Function call: Bar2(2, 2)284Returns: true285NOTE: 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.286287GMOCK WARNING:288Uninteresting mock function call - taking default action specified at:289FILE:#:290Function call: Bar2(1, 1)291Returns: false292NOTE: 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.293[ OK ] GMockOutputTest.UninterestingCallWithDefaultAction294[ RUN ] GMockOutputTest.ExplicitActionsRunOutWithDefaultAction295296GMOCK WARNING:297FILE:#: Too few actions specified in EXPECT_CALL(foo_, Bar2(_, _))...298Expected to be called twice, but has only 1 WillOnce().299GMOCK WARNING:300FILE:#: Actions ran out in EXPECT_CALL(foo_, Bar2(_, _))...301Called 2 times, but only 1 WillOnce() is specified - taking default action specified at:302FILE:#:303Stack trace:304[ OK ] GMockOutputTest.ExplicitActionsRunOutWithDefaultAction305[ RUN ] GMockOutputTest.CatchesLeakedMocks306[ OK ] GMockOutputTest.CatchesLeakedMocks307[ RUN ] GMockOutputTest.PrintsMatcher308FILE:#: Failure309Value of: (std::pair<int, bool>(42, true))310Expected: is pair (first: is >= 48, second: true)311Actual: (42, true) (of type std::pair<int,bool>)312313[ FAILED ] GMockOutputTest.PrintsMatcher314[ FAILED ] GMockOutputTest.UnexpectedCall315[ FAILED ] GMockOutputTest.UnexpectedCallToVoidFunction316[ FAILED ] GMockOutputTest.ExcessiveCall317[ FAILED ] GMockOutputTest.ExcessiveCallToVoidFunction318[ FAILED ] GMockOutputTest.RetiredExpectation319[ FAILED ] GMockOutputTest.UnsatisfiedPrerequisite320[ FAILED ] GMockOutputTest.UnsatisfiedPrerequisites321[ FAILED ] GMockOutputTest.UnsatisfiedWith322[ FAILED ] GMockOutputTest.UnsatisfiedExpectation323[ FAILED ] GMockOutputTest.MismatchArguments324[ FAILED ] GMockOutputTest.MismatchWith325[ FAILED ] GMockOutputTest.MismatchArgumentsAndWith326[ FAILED ] GMockOutputTest.UnexpectedCallWithDefaultAction327[ FAILED ] GMockOutputTest.ExcessiveCallWithDefaultAction328[ FAILED ] GMockOutputTest.PrintsMatcher329330331FILE:#: ERROR: this mock object should be deleted but never is. Its address is @0x#.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#.334ERROR: 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.335336337