{"action":"closed","issue":{"url":"https://api.github.com/repos/google/googlemock/issues/42","labels_url":"https://api.github.com/repos/google/googlemock/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/google/googlemock/issues/42/comments","events_url":"https://api.github.com/repos/google/googlemock/issues/42/events","html_url":"https://github.com/google/googlemock/issues/42","id":102906348,"number":42,"title":"support explicit checking for leaked mock objects","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/googlemock/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/google/googlemock/labels/OpSys-All","name":"OpSys-All","color":"ededed"},{"url":"https://api.github.com/repos/google/googlemock/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/google/googlemock/labels/Type-Enhancement","name":"Type-Enhancement","color":"ededed"},{"url":"https://api.github.com/repos/google/googlemock/labels/Usability","name":"Usability","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-24T22:38:49Z","updated_at":"2015-08-25T23:10:29Z","closed_at":"2015-08-25T23:10:29Z","body":"```\n2009/4/16 Simon Bowden:\n\n> As a suggestion, it would be convenient if there were a function to call any\n> time [mainly at the end of a single test case] to assert the no-leaks check\n> earlier. Specifically, I'd like all of my test cases to assert no leaks at\n> the end of the case so that error reporting is better targetted.\n\nI like it.  Does\n\n // Returns true if the mock registry is empty; otherwise\n // generates a non-fatal failure for each leaked mock object\n // and returns false.\n bool Mock::CatchLeakedMock();\n\nsound good?\n\n```\n\nOriginal issue reported on code.google.com by `zhanyong...@gmail.com` on 17 Apr 2009 at 9:51"}}