{"action":"created","comment":{"url":"https://api.github.com/repos/esl/escalus/pulls/comments/42108720","id":42108720,"diff_hunk":"@@ -49,6 +49,12 @@ assert_many(Predicates, Stanzas) ->\n     assert_true(Ok and AllStanzas,\n         {assertion_failed, assert_many, AllStanzas, Predicates, Stanzas, StanzasStr}).","path":"src/escalus_new_assert.erl","position":11,"original_position":11,"commit_id":"e366628f93ae60b2df7aae10af81ee488bcee31c","original_commit_id":"e366628f93ae60b2df7aae10af81ee488bcee31c","user":{"login":"gadgetci","id":10134338,"avatar_url":"https://avatars.githubusercontent.com/u/10134338?v=3","gravatar_id":"","url":"https://api.github.com/users/gadgetci","html_url":"https://github.com/gadgetci","followers_url":"https://api.github.com/users/gadgetci/followers","following_url":"https://api.github.com/users/gadgetci/following{/other_user}","gists_url":"https://api.github.com/users/gadgetci/gists{/gist_id}","starred_url":"https://api.github.com/users/gadgetci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gadgetci/subscriptions","organizations_url":"https://api.github.com/users/gadgetci/orgs","repos_url":"https://api.github.com/users/gadgetci/repos","events_url":"https://api.github.com/users/gadgetci/events{/privacy}","received_events_url":"https://api.github.com/users/gadgetci/received_events","type":"User","site_admin":false},"body":"According to **Elvis**:\n> Line 50 is too long:         {assertion_failed, assert_many, AllStanzas, Predicates, Stanzas, StanzasStr})..","created_at":"2015-10-15T10:53:07Z","updated_at":"2015-10-15T10:53:07Z","html_url":"https://github.com/esl/escalus/pull/83#discussion_r42108720","pull_request_url":"https://api.github.com/repos/esl/escalus/pulls/83","_links":{"self":{"href":"https://api.github.com/repos/esl/escalus/pulls/comments/42108720"},"html":{"href":"https://github.com/esl/escalus/pull/83#discussion_r42108720"},"pull_request":{"href":"https://api.github.com/repos/esl/escalus/pulls/83"}}},"pull_request":{"url":"https://api.github.com/repos/esl/escalus/pulls/83","id":47770990,"html_url":"https://github.com/esl/escalus/pull/83","diff_url":"https://github.com/esl/escalus/pull/83.diff","patch_url":"https://github.com/esl/escalus/pull/83.patch","issue_url":"https://api.github.com/repos/esl/escalus/issues/83","number":83,"state":"open","locked":false,"title":"Delegate predicates","user":{"login":"sstrigler","id":23786,"avatar_url":"https://avatars.githubusercontent.com/u/23786?v=3","gravatar_id":"","url":"https://api.github.com/users/sstrigler","html_url":"https://github.com/sstrigler","followers_url":"https://api.github.com/users/sstrigler/followers","following_url":"https://api.github.com/users/sstrigler/following{/other_user}","gists_url":"https://api.github.com/users/sstrigler/gists{/gist_id}","starred_url":"https://api.github.com/users/sstrigler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sstrigler/subscriptions","organizations_url":"https://api.github.com/users/sstrigler/orgs","repos_url":"https://api.github.com/users/sstrigler/repos","events_url":"https://api.github.com/users/sstrigler/events{/privacy}","received_events_url":"https://api.github.com/users/sstrigler/received_events","type":"User","site_admin":false},"body":"this allows to define own module that contains predicates, for example for testing custom features or things not implemented yet at escalus. eg\r\n\r\n```erlang\r\nmy_test(Config) ->\r\n  %% ...\r\n  escalus:assert(?MODULE, is_pubsub_subscription, [<<\"subscribed\">>], Result)\r\n  end.\r\n\r\nis_pubsub_subscription(Type, Stanza) ->\r\n  %% ... check stuff\r\n  true.\r\n```","created_at":"2015-10-15T10:53:05Z","updated_at":"2015-10-15T10:53:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"197b991dd6260effd75738cc4fc7081207001d4e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/esl/escalus/pulls/83/commits","review_comments_url":"https://api.github.com/repos/esl/escalus/pulls/83/comments","review_comment_url":"https://api.github.com/repos/esl/escalus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/esl/escalus/issues/83/comments","statuses_url":"https://api.github.com/repos/esl/escalus/statuses/e366628f93ae60b2df7aae10af81ee488bcee31c","head":{"label":"sstrigler:delegate_pred","ref":"delegate_pred","sha":"e366628f93ae60b2df7aae10af81ee488bcee31c","user":{"login":"sstrigler","id":23786,"avatar_url":"https://avatars.githubusercontent.com/u/23786?v=3","gravatar_id":"","url":"https://api.github.com/users/sstrigler","html_url":"https://github.com/sstrigler","followers_url":"https://api.github.com/users/sstrigler/followers","following_url":"https://api.github.com/users/sstrigler/following{/other_user}","gists_url":"https://api.github.com/users/sstrigler/gists{/gist_id}","starred_url":"https://api.github.com/users/sstrigler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sstrigler/subscriptions","organizations_url":"https://api.github.com/users/sstrigler/orgs","repos_url":"https://api.github.com/users/sstrigler/repos","events_url":"https://api.github.com/users/sstrigler/events{/privacy}","received_events_url":"https://api.github.com/users/sstrigler/received_events","type":"User","site_admin":false},"repo":{"id":44261779,"name":"escalus","full_name":"sstrigler/escalus","owner":{"login":"sstrigler","id":23786,"avatar_url":"https://avatars.githubusercontent.com/u/23786?v=3","gravatar_id":"","url":"https://api.github.com/users/sstrigler","html_url":"https://github.com/sstrigler","followers_url":"https://api.github.com/users/sstrigler/followers","following_url":"https://api.github.com/users/sstrigler/following{/other_user}","gists_url":"https://api.github.com/users/sstrigler/gists{/gist_id}","starred_url":"https://api.github.com/users/sstrigler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sstrigler/subscriptions","organizations_url":"https://api.github.com/users/sstrigler/orgs","repos_url":"https://api.github.com/users/sstrigler/repos","events_url":"https://api.github.com/users/sstrigler/events{/privacy}","received_events_url":"https://api.github.com/users/sstrigler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sstrigler/escalus","description":"An Erlang XMPP client library for conveniently testing XMPP servers","fork":true,"url":"https://api.github.com/repos/sstrigler/escalus","forks_url":"https://api.github.com/repos/sstrigler/escalus/forks","keys_url":"https://api.github.com/repos/sstrigler/escalus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sstrigler/escalus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sstrigler/escalus/teams","hooks_url":"https://api.github.com/repos/sstrigler/escalus/hooks","issue_events_url":"https://api.github.com/repos/sstrigler/escalus/issues/events{/number}","events_url":"https://api.github.com/repos/sstrigler/escalus/events","assignees_url":"https://api.github.com/repos/sstrigler/escalus/assignees{/user}","branches_url":"https://api.github.com/repos/sstrigler/escalus/branches{/branch}","tags_url":"https://api.github.com/repos/sstrigler/escalus/tags","blobs_url":"https://api.github.com/repos/sstrigler/escalus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sstrigler/escalus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sstrigler/escalus/git/refs{/sha}","trees_url":"https://api.github.com/repos/sstrigler/escalus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sstrigler/escalus/statuses/{sha}","languages_url":"https://api.github.com/repos/sstrigler/escalus/languages","stargazers_url":"https://api.github.com/repos/sstrigler/escalus/stargazers","contributors_url":"https://api.github.com/repos/sstrigler/escalus/contributors","subscribers_url":"https://api.github.com/repos/sstrigler/escalus/subscribers","subscription_url":"https://api.github.com/repos/sstrigler/escalus/subscription","commits_url":"https://api.github.com/repos/sstrigler/escalus/commits{/sha}","git_commits_url":"https://api.github.com/repos/sstrigler/escalus/git/commits{/sha}","comments_url":"https://api.github.com/repos/sstrigler/escalus/comments{/number}","issue_comment_url":"https://api.github.com/repos/sstrigler/escalus/issues/comments{/number}","contents_url":"https://api.github.com/repos/sstrigler/escalus/contents/{+path}","compare_url":"https://api.github.com/repos/sstrigler/escalus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sstrigler/escalus/merges","archive_url":"https://api.github.com/repos/sstrigler/escalus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sstrigler/escalus/downloads","issues_url":"https://api.github.com/repos/sstrigler/escalus/issues{/number}","pulls_url":"https://api.github.com/repos/sstrigler/escalus/pulls{/number}","milestones_url":"https://api.github.com/repos/sstrigler/escalus/milestones{/number}","notifications_url":"https://api.github.com/repos/sstrigler/escalus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sstrigler/escalus/labels{/name}","releases_url":"https://api.github.com/repos/sstrigler/escalus/releases{/id}","created_at":"2015-10-14T16:38:49Z","updated_at":"2015-10-14T16:38:50Z","pushed_at":"2015-10-15T10:50:00Z","git_url":"git://github.com/sstrigler/escalus.git","ssh_url":"git@github.com:sstrigler/escalus.git","clone_url":"https://github.com/sstrigler/escalus.git","svn_url":"https://github.com/sstrigler/escalus","homepage":"","size":3523,"stargazers_count":0,"watchers_count":0,"language":"Erlang","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"esl:master","ref":"master","sha":"59e119ddbee530c9b07565ebb5911d3c3273ee92","user":{"login":"esl","id":283412,"avatar_url":"https://avatars.githubusercontent.com/u/283412?v=3","gravatar_id":"","url":"https://api.github.com/users/esl","html_url":"https://github.com/esl","followers_url":"https://api.github.com/users/esl/followers","following_url":"https://api.github.com/users/esl/following{/other_user}","gists_url":"https://api.github.com/users/esl/gists{/gist_id}","starred_url":"https://api.github.com/users/esl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esl/subscriptions","organizations_url":"https://api.github.com/users/esl/orgs","repos_url":"https://api.github.com/users/esl/repos","events_url":"https://api.github.com/users/esl/events{/privacy}","received_events_url":"https://api.github.com/users/esl/received_events","type":"Organization","site_admin":false},"repo":{"id":1934832,"name":"escalus","full_name":"esl/escalus","owner":{"login":"esl","id":283412,"avatar_url":"https://avatars.githubusercontent.com/u/283412?v=3","gravatar_id":"","url":"https://api.github.com/users/esl","html_url":"https://github.com/esl","followers_url":"https://api.github.com/users/esl/followers","following_url":"https://api.github.com/users/esl/following{/other_user}","gists_url":"https://api.github.com/users/esl/gists{/gist_id}","starred_url":"https://api.github.com/users/esl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esl/subscriptions","organizations_url":"https://api.github.com/users/esl/orgs","repos_url":"https://api.github.com/users/esl/repos","events_url":"https://api.github.com/users/esl/events{/privacy}","received_events_url":"https://api.github.com/users/esl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/esl/escalus","description":"An Erlang XMPP client library for conveniently testing XMPP servers","fork":false,"url":"https://api.github.com/repos/esl/escalus","forks_url":"https://api.github.com/repos/esl/escalus/forks","keys_url":"https://api.github.com/repos/esl/escalus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esl/escalus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esl/escalus/teams","hooks_url":"https://api.github.com/repos/esl/escalus/hooks","issue_events_url":"https://api.github.com/repos/esl/escalus/issues/events{/number}","events_url":"https://api.github.com/repos/esl/escalus/events","assignees_url":"https://api.github.com/repos/esl/escalus/assignees{/user}","branches_url":"https://api.github.com/repos/esl/escalus/branches{/branch}","tags_url":"https://api.github.com/repos/esl/escalus/tags","blobs_url":"https://api.github.com/repos/esl/escalus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esl/escalus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esl/escalus/git/refs{/sha}","trees_url":"https://api.github.com/repos/esl/escalus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esl/escalus/statuses/{sha}","languages_url":"https://api.github.com/repos/esl/escalus/languages","stargazers_url":"https://api.github.com/repos/esl/escalus/stargazers","contributors_url":"https://api.github.com/repos/esl/escalus/contributors","subscribers_url":"https://api.github.com/repos/esl/escalus/subscribers","subscription_url":"https://api.github.com/repos/esl/escalus/subscription","commits_url":"https://api.github.com/repos/esl/escalus/commits{/sha}","git_commits_url":"https://api.github.com/repos/esl/escalus/git/commits{/sha}","comments_url":"https://api.github.com/repos/esl/escalus/comments{/number}","issue_comment_url":"https://api.github.com/repos/esl/escalus/issues/comments{/number}","contents_url":"https://api.github.com/repos/esl/escalus/contents/{+path}","compare_url":"https://api.github.com/repos/esl/escalus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esl/escalus/merges","archive_url":"https://api.github.com/repos/esl/escalus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esl/escalus/downloads","issues_url":"https://api.github.com/repos/esl/escalus/issues{/number}","pulls_url":"https://api.github.com/repos/esl/escalus/pulls{/number}","milestones_url":"https://api.github.com/repos/esl/escalus/milestones{/number}","notifications_url":"https://api.github.com/repos/esl/escalus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esl/escalus/labels{/name}","releases_url":"https://api.github.com/repos/esl/escalus/releases{/id}","created_at":"2011-06-22T13:03:44Z","updated_at":"2015-10-14T16:28:29Z","pushed_at":"2015-10-15T10:53:05Z","git_url":"git://github.com/esl/escalus.git","ssh_url":"git@github.com:esl/escalus.git","clone_url":"https://github.com/esl/escalus.git","svn_url":"https://github.com/esl/escalus","homepage":"","size":3523,"stargazers_count":53,"watchers_count":53,"language":"Erlang","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":14,"forks":34,"open_issues":14,"watchers":53,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/esl/escalus/pulls/83"},"html":{"href":"https://github.com/esl/escalus/pull/83"},"issue":{"href":"https://api.github.com/repos/esl/escalus/issues/83"},"comments":{"href":"https://api.github.com/repos/esl/escalus/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/esl/escalus/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/esl/escalus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/esl/escalus/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/esl/escalus/statuses/e366628f93ae60b2df7aae10af81ee488bcee31c"}}}}