{"action":"created","issue":{"url":"https://api.github.com/repos/cpputest/cpputest/issues/844","labels_url":"https://api.github.com/repos/cpputest/cpputest/issues/844/labels{/name}","comments_url":"https://api.github.com/repos/cpputest/cpputest/issues/844/comments","events_url":"https://api.github.com/repos/cpputest/cpputest/issues/844/events","html_url":"https://github.com/cpputest/cpputest/issues/844","id":129076988,"number":844,"title":"[Question] What is the point of having Mocksupport::returnValue() interfaces","user":{"login":"arstrube","id":4686469,"avatar_url":"https://avatars.githubusercontent.com/u/4686469?v=3","gravatar_id":"","url":"https://api.github.com/users/arstrube","html_url":"https://github.com/arstrube","followers_url":"https://api.github.com/users/arstrube/followers","following_url":"https://api.github.com/users/arstrube/following{/other_user}","gists_url":"https://api.github.com/users/arstrube/gists{/gist_id}","starred_url":"https://api.github.com/users/arstrube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arstrube/subscriptions","organizations_url":"https://api.github.com/users/arstrube/orgs","repos_url":"https://api.github.com/users/arstrube/repos","events_url":"https://api.github.com/users/arstrube/events{/privacy}","received_events_url":"https://api.github.com/users/arstrube/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-01-27T09:03:05Z","updated_at":"2016-01-27T10:09:57Z","closed_at":null,"body":"Semantically, this seems rather pointless to me. An actual function call can have a return value; a Mocksupport object does not have a return value.\r\n\r\nLooking at the implementation, I see that this value defaults to the empty string, or the return value of the last actual call, if there was any.\r\n\r\nWhy would I care to know, as a user who writes tests with mocks? Or is this something that is somehow important for the workings of CppU mocking internally?\r\n\r\nIF this is useful for something, then names like `returnValueOfLastCall()` or `lastCallHasReturnValue()` would at least convey the proper semantics of these methods. As far as I remember, this is not documented anywhere, either.\r\n\r\n@basvodde @jwgrenning could you perhaps shed some light on this?\r\n\r\n(I came across this looking at missing interfaces in MockSupport_c)."},"comment":{"url":"https://api.github.com/repos/cpputest/cpputest/issues/comments/175525797","html_url":"https://github.com/cpputest/cpputest/issues/844#issuecomment-175525797","issue_url":"https://api.github.com/repos/cpputest/cpputest/issues/844","id":175525797,"user":{"login":"arstrube","id":4686469,"avatar_url":"https://avatars.githubusercontent.com/u/4686469?v=3","gravatar_id":"","url":"https://api.github.com/users/arstrube","html_url":"https://github.com/arstrube","followers_url":"https://api.github.com/users/arstrube/followers","following_url":"https://api.github.com/users/arstrube/following{/other_user}","gists_url":"https://api.github.com/users/arstrube/gists{/gist_id}","starred_url":"https://api.github.com/users/arstrube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arstrube/subscriptions","organizations_url":"https://api.github.com/users/arstrube/orgs","repos_url":"https://api.github.com/users/arstrube/repos","events_url":"https://api.github.com/users/arstrube/events{/privacy}","received_events_url":"https://api.github.com/users/arstrube/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T10:09:57Z","updated_at":"2016-01-27T10:09:57Z","body":"Oh, now I get it..... you use it inside the actual call. Yes, I remember that now :D. I even plead guilty to having used it. My bad..."}}