{"action":"created","issue":{"url":"https://api.github.com/repos/oleksiyp/mockk/issues/2","repository_url":"https://api.github.com/repos/oleksiyp/mockk","labels_url":"https://api.github.com/repos/oleksiyp/mockk/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/oleksiyp/mockk/issues/2/comments","events_url":"https://api.github.com/repos/oleksiyp/mockk/issues/2/events","html_url":"https://github.com/oleksiyp/mockk/pull/2","id":272732964,"number":2,"title":"when verifying a method with 'exactly = 0', return verification match…","user":{"login":"yannickvg","id":3224170,"avatar_url":"https://avatars3.githubusercontent.com/u/3224170?v=4","gravatar_id":"","url":"https://api.github.com/users/yannickvg","html_url":"https://github.com/yannickvg","followers_url":"https://api.github.com/users/yannickvg/followers","following_url":"https://api.github.com/users/yannickvg/following{/other_user}","gists_url":"https://api.github.com/users/yannickvg/gists{/gist_id}","starred_url":"https://api.github.com/users/yannickvg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yannickvg/subscriptions","organizations_url":"https://api.github.com/users/yannickvg/orgs","repos_url":"https://api.github.com/users/yannickvg/repos","events_url":"https://api.github.com/users/yannickvg/events{/privacy}","received_events_url":"https://api.github.com/users/yannickvg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-11-09T21:38:13Z","updated_at":"2017-11-23T15:29:29Z","closed_at":"2017-11-09T22:08:18Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/oleksiyp/mockk/pulls/2","html_url":"https://github.com/oleksiyp/mockk/pull/2","diff_url":"https://github.com/oleksiyp/mockk/pull/2.diff","patch_url":"https://github.com/oleksiyp/mockk/pull/2.patch"},"body":"… if a method is never called instead of an error that the method is never called\r\n\r\nThanks for creating Mockk. While using your library I wanted to verify that a certain method on the mock is never called by using verify(exactly = 0). This always resulted in a error \"Verification failed: call 1 of 1. No calls for mockk... \" while that should result in a verification success. Therefor I made a fix to check the min and max in case of no calls to the mock method. If they are 0, it returns a verification success instead of failure. When min and max are not 0, everything stays the same and a failure is reported. I also added a unit test case for this fix."},"comment":{"url":"https://api.github.com/repos/oleksiyp/mockk/issues/comments/346646769","html_url":"https://github.com/oleksiyp/mockk/pull/2#issuecomment-346646769","issue_url":"https://api.github.com/repos/oleksiyp/mockk/issues/2","id":346646769,"user":{"login":"yannickvg","id":3224170,"avatar_url":"https://avatars3.githubusercontent.com/u/3224170?v=4","gravatar_id":"","url":"https://api.github.com/users/yannickvg","html_url":"https://github.com/yannickvg","followers_url":"https://api.github.com/users/yannickvg/followers","following_url":"https://api.github.com/users/yannickvg/following{/other_user}","gists_url":"https://api.github.com/users/yannickvg/gists{/gist_id}","starred_url":"https://api.github.com/users/yannickvg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yannickvg/subscriptions","organizations_url":"https://api.github.com/users/yannickvg/orgs","repos_url":"https://api.github.com/users/yannickvg/repos","events_url":"https://api.github.com/users/yannickvg/events{/privacy}","received_events_url":"https://api.github.com/users/yannickvg/received_events","type":"User","site_admin":false},"created_at":"2017-11-23T15:29:29Z","updated_at":"2017-11-23T15:29:29Z","author_association":"NONE","body":"I found this in the docs\n\nverify {\n    listOf(obj2, obj3) wasNot Called}\n\n\nbut it doesn’t seem to compile\n\n\nOn Thu, Nov 23, 2017 at 4:26 PM, Yannick Van Godtsenhoven <\nyannick@vangodtsenhoven.be> wrote:\n\n>\n> Awesome that it exists!\n>\n> is there a way to verify that no interactions have been done on a mock?\n> (not specifying a method)\n>\n>\n>\n> On Thu, Nov 23, 2017 at 3:56 PM, Oleksiy Pylypenko <\n> notifications@github.com> wrote:\n>\n>> Seems docs really missing a lot...\n>>\n>> —\n>> You are receiving this because you were mentioned.\n>> Reply to this email directly, view it on GitHub\n>> <https://github.com/oleksiyp/mockk/pull/2#issuecomment-346638997>, or mute\n>> the thread\n>> <https://github.com/notifications/unsubscribe-auth/ADEyal-vsiwNnXCXBcsdRgFL194Lpu0Uks5s5YeWgaJpZM4QYsin>\n>> .\n>>\n>\n>\n"}}
{"actor":{"display_login":"yannickvg"}}