payload: {"action":"created","issue":{"url":"https://api.github.com/repos/vberlier/narmock/issues/7","repository_url":"https://api.github.com/repos/vberlier/narmock","labels_url":"https://api.github.com/repos/vberlier/narmock/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/vberlier/narmock/issues/7/comments","events_url":"https://api.github.com/repos/vberlier/narmock/issues/7/events","html_url":"https://github.com/vberlier/narmock/issues/7","id":514635399,"node_id":"MDU6SXNzdWU1MTQ2MzUzOTk=","number":7,"title":"mock_return_once()","user":{"login":"eerimoq","id":176810,"node_id":"MDQ6VXNlcjE3NjgxMA==","avatar_url":"https://avatars1.githubusercontent.com/u/176810?v=4","gravatar_id":"","url":"https://api.github.com/users/eerimoq","html_url":"https://github.com/eerimoq","followers_url":"https://api.github.com/users/eerimoq/followers","following_url":"https://api.github.com/users/eerimoq/following{/other_user}","gists_url":"https://api.github.com/users/eerimoq/gists{/gist_id}","starred_url":"https://api.github.com/users/eerimoq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eerimoq/subscriptions","organizations_url":"https://api.github.com/users/eerimoq/orgs","repos_url":"https://api.github.com/users/eerimoq/repos","events_url":"https://api.github.com/users/eerimoq/events{/privacy}","received_events_url":"https://api.github.com/users/eerimoq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-10-30T12:37:59Z","updated_at":"2019-11-02T15:55:02Z","closed_at":null,"author_association":"NONE","body":"Hello!\r\n\r\nIn https://github.com/vberlier/narwhal/issues/3#issuecomment-506565805 an example shows future functionality, allowing the user to specify a sequence of values to return from the mock. Are there any plans on releasing that?"},"comment":{"url":"https://api.github.com/repos/vberlier/narmock/issues/comments/549056203","html_url":"https://github.com/vberlier/narmock/issues/7#issuecomment-549056203","issue_url":"https://api.github.com/repos/vberlier/narmock/issues/7","id":549056203,"node_id":"MDEyOklzc3VlQ29tbWVudDU0OTA1NjIwMw==","user":{"login":"vberlier","id":24430071,"node_id":"MDQ6VXNlcjI0NDMwMDcx","avatar_url":"https://avatars2.githubusercontent.com/u/24430071?v=4","gravatar_id":"","url":"https://api.github.com/users/vberlier","html_url":"https://github.com/vberlier","followers_url":"https://api.github.com/users/vberlier/followers","following_url":"https://api.github.com/users/vberlier/following{/other_user}","gists_url":"https://api.github.com/users/vberlier/gists{/gist_id}","starred_url":"https://api.github.com/users/vberlier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vberlier/subscriptions","organizations_url":"https://api.github.com/users/vberlier/orgs","repos_url":"https://api.github.com/users/vberlier/repos","events_url":"https://api.github.com/users/vberlier/events{/privacy}","received_events_url":"https://api.github.com/users/vberlier/received_events","type":"User","site_admin":false},"created_at":"2019-11-02T15:55:02Z","updated_at":"2019-11-02T15:55:02Z","author_association":"OWNER","body":"And there's a similar problem for storing the arguments of every call in an array, I'm not sure about making the mocked function allocate to resize the array right in the middle of user code. I'm also trying to think about a way to make it opt-in:\r\n\r\n```c\r\nTEST(xmount_ok)\r\n{\r\n    MOCK(mount)->start_watching();\r\n\r\n    xmount(\"a1\", \"b\", \"c\");\r\n\r\n    MOCK(mount)->stop_watching();\r\n\r\n    xmount(\"a2\", \"b\", \"c\");\r\n\r\n    MOCK(mount)->start_watching();\r\n\r\n    xmount(\"a3\", \"b\", \"c\");\r\n\r\n    ASSERT_EQ(MOCK(mount)->calls[0].arg1, \"a1\");\r\n    ASSERT_EQ(MOCK(mount)->calls[1].arg1, \"a3\");\r\n}\r\n```"}}
other: {"actor":{"display_login":"vberlier"}}