{"action":"opened","number":18,"pull_request":{"url":"https://api.github.com/repos/batate/shouldi/pulls/18","id":37269602,"html_url":"https://github.com/batate/shouldi/pull/18","diff_url":"https://github.com/batate/shouldi/pull/18.diff","patch_url":"https://github.com/batate/shouldi/pull/18.patch","issue_url":"https://api.github.com/repos/batate/shouldi/issues/18","number":18,"state":"open","locked":false,"title":"Share function definitions for with setup","user":{"login":"josevalim","id":9582,"avatar_url":"https://avatars.githubusercontent.com/u/9582?v=3","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"body":"Because with and setup define many variables, a large test\r\ncase could get really slow when compiling, as it would define\r\nmany variables in the same module body, causing some chunks\r\nduring compilation to become really slow.\r\n\r\nTo solve this, we store this code in anonymous functions and\r\nreuse it throughout the test case.\r\n\r\nAs an example, this test suite goes from 50s to 3s to run on\r\nmy machine: https://github.com/limhoff-r7/slow-shouldi","created_at":"2015-06-09T15:59:48Z","updated_at":"2015-06-09T15:59:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/batate/shouldi/pulls/18/commits","review_comments_url":"https://api.github.com/repos/batate/shouldi/pulls/18/comments","review_comment_url":"https://api.github.com/repos/batate/shouldi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/batate/shouldi/issues/18/comments","statuses_url":"https://api.github.com/repos/batate/shouldi/statuses/450bd475cf9820fdfd3e509a2fbc99871015064e","head":{"label":"josevalim:master","ref":"master","sha":"450bd475cf9820fdfd3e509a2fbc99871015064e","user":{"login":"josevalim","id":9582,"avatar_url":"https://avatars.githubusercontent.com/u/9582?v=3","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"repo":{"id":37142240,"name":"shouldi","full_name":"josevalim/shouldi","owner":{"login":"josevalim","id":9582,"avatar_url":"https://avatars.githubusercontent.com/u/9582?v=3","gravatar_id":"","url":"https://api.github.com/users/josevalim","html_url":"https://github.com/josevalim","followers_url":"https://api.github.com/users/josevalim/followers","following_url":"https://api.github.com/users/josevalim/following{/other_user}","gists_url":"https://api.github.com/users/josevalim/gists{/gist_id}","starred_url":"https://api.github.com/users/josevalim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josevalim/subscriptions","organizations_url":"https://api.github.com/users/josevalim/orgs","repos_url":"https://api.github.com/users/josevalim/repos","events_url":"https://api.github.com/users/josevalim/events{/privacy}","received_events_url":"https://api.github.com/users/josevalim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/josevalim/shouldi","description":"Elixir testing libraries with nested contexts, superior readability, and ease of use","fork":true,"url":"https://api.github.com/repos/josevalim/shouldi","forks_url":"https://api.github.com/repos/josevalim/shouldi/forks","keys_url":"https://api.github.com/repos/josevalim/shouldi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/josevalim/shouldi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/josevalim/shouldi/teams","hooks_url":"https://api.github.com/repos/josevalim/shouldi/hooks","issue_events_url":"https://api.github.com/repos/josevalim/shouldi/issues/events{/number}","events_url":"https://api.github.com/repos/josevalim/shouldi/events","assignees_url":"https://api.github.com/repos/josevalim/shouldi/assignees{/user}","branches_url":"https://api.github.com/repos/josevalim/shouldi/branches{/branch}","tags_url":"https://api.github.com/repos/josevalim/shouldi/tags","blobs_url":"https://api.github.com/repos/josevalim/shouldi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/josevalim/shouldi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/josevalim/shouldi/git/refs{/sha}","trees_url":"https://api.github.com/repos/josevalim/shouldi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/josevalim/shouldi/statuses/{sha}","languages_url":"https://api.github.com/repos/josevalim/shouldi/languages","stargazers_url":"https://api.github.com/repos/josevalim/shouldi/stargazers","contributors_url":"https://api.github.com/repos/josevalim/shouldi/contributors","subscribers_url":"https://api.github.com/repos/josevalim/shouldi/subscribers","subscription_url":"https://api.github.com/repos/josevalim/shouldi/subscription","commits_url":"https://api.github.com/repos/josevalim/shouldi/commits{/sha}","git_commits_url":"https://api.github.com/repos/josevalim/shouldi/git/commits{/sha}","comments_url":"https://api.github.com/repos/josevalim/shouldi/comments{/number}","issue_comment_url":"https://api.github.com/repos/josevalim/shouldi/issues/comments{/number}","contents_url":"https://api.github.com/repos/josevalim/shouldi/contents/{+path}","compare_url":"https://api.github.com/repos/josevalim/shouldi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/josevalim/shouldi/merges","archive_url":"https://api.github.com/repos/josevalim/shouldi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/josevalim/shouldi/downloads","issues_url":"https://api.github.com/repos/josevalim/shouldi/issues{/number}","pulls_url":"https://api.github.com/repos/josevalim/shouldi/pulls{/number}","milestones_url":"https://api.github.com/repos/josevalim/shouldi/milestones{/number}","notifications_url":"https://api.github.com/repos/josevalim/shouldi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/josevalim/shouldi/labels{/name}","releases_url":"https://api.github.com/repos/josevalim/shouldi/releases{/id}","created_at":"2015-06-09T15:54:38Z","updated_at":"2015-06-09T15:54:38Z","pushed_at":"2015-06-09T15:58:32Z","git_url":"git://github.com/josevalim/shouldi.git","ssh_url":"git@github.com:josevalim/shouldi.git","clone_url":"https://github.com/josevalim/shouldi.git","svn_url":"https://github.com/josevalim/shouldi","homepage":"","size":343,"stargazers_count":0,"watchers_count":0,"language":"Elixir","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":"batate:master","ref":"master","sha":"e3b881dd71495c84f7d4095a2ee3f1a925523c8d","user":{"login":"batate","id":151993,"avatar_url":"https://avatars.githubusercontent.com/u/151993?v=3","gravatar_id":"","url":"https://api.github.com/users/batate","html_url":"https://github.com/batate","followers_url":"https://api.github.com/users/batate/followers","following_url":"https://api.github.com/users/batate/following{/other_user}","gists_url":"https://api.github.com/users/batate/gists{/gist_id}","starred_url":"https://api.github.com/users/batate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batate/subscriptions","organizations_url":"https://api.github.com/users/batate/orgs","repos_url":"https://api.github.com/users/batate/repos","events_url":"https://api.github.com/users/batate/events{/privacy}","received_events_url":"https://api.github.com/users/batate/received_events","type":"User","site_admin":false},"repo":{"id":25834026,"name":"shouldi","full_name":"batate/shouldi","owner":{"login":"batate","id":151993,"avatar_url":"https://avatars.githubusercontent.com/u/151993?v=3","gravatar_id":"","url":"https://api.github.com/users/batate","html_url":"https://github.com/batate","followers_url":"https://api.github.com/users/batate/followers","following_url":"https://api.github.com/users/batate/following{/other_user}","gists_url":"https://api.github.com/users/batate/gists{/gist_id}","starred_url":"https://api.github.com/users/batate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/batate/subscriptions","organizations_url":"https://api.github.com/users/batate/orgs","repos_url":"https://api.github.com/users/batate/repos","events_url":"https://api.github.com/users/batate/events{/privacy}","received_events_url":"https://api.github.com/users/batate/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/batate/shouldi","description":"Elixir testing libraries with nested contexts, superior readability, and ease of use","fork":false,"url":"https://api.github.com/repos/batate/shouldi","forks_url":"https://api.github.com/repos/batate/shouldi/forks","keys_url":"https://api.github.com/repos/batate/shouldi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/batate/shouldi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/batate/shouldi/teams","hooks_url":"https://api.github.com/repos/batate/shouldi/hooks","issue_events_url":"https://api.github.com/repos/batate/shouldi/issues/events{/number}","events_url":"https://api.github.com/repos/batate/shouldi/events","assignees_url":"https://api.github.com/repos/batate/shouldi/assignees{/user}","branches_url":"https://api.github.com/repos/batate/shouldi/branches{/branch}","tags_url":"https://api.github.com/repos/batate/shouldi/tags","blobs_url":"https://api.github.com/repos/batate/shouldi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/batate/shouldi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/batate/shouldi/git/refs{/sha}","trees_url":"https://api.github.com/repos/batate/shouldi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/batate/shouldi/statuses/{sha}","languages_url":"https://api.github.com/repos/batate/shouldi/languages","stargazers_url":"https://api.github.com/repos/batate/shouldi/stargazers","contributors_url":"https://api.github.com/repos/batate/shouldi/contributors","subscribers_url":"https://api.github.com/repos/batate/shouldi/subscribers","subscription_url":"https://api.github.com/repos/batate/shouldi/subscription","commits_url":"https://api.github.com/repos/batate/shouldi/commits{/sha}","git_commits_url":"https://api.github.com/repos/batate/shouldi/git/commits{/sha}","comments_url":"https://api.github.com/repos/batate/shouldi/comments{/number}","issue_comment_url":"https://api.github.com/repos/batate/shouldi/issues/comments{/number}","contents_url":"https://api.github.com/repos/batate/shouldi/contents/{+path}","compare_url":"https://api.github.com/repos/batate/shouldi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/batate/shouldi/merges","archive_url":"https://api.github.com/repos/batate/shouldi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/batate/shouldi/downloads","issues_url":"https://api.github.com/repos/batate/shouldi/issues{/number}","pulls_url":"https://api.github.com/repos/batate/shouldi/pulls{/number}","milestones_url":"https://api.github.com/repos/batate/shouldi/milestones{/number}","notifications_url":"https://api.github.com/repos/batate/shouldi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/batate/shouldi/labels{/name}","releases_url":"https://api.github.com/repos/batate/shouldi/releases{/id}","created_at":"2014-10-27T18:54:46Z","updated_at":"2015-06-05T20:40:52Z","pushed_at":"2015-06-01T00:24:04Z","git_url":"git://github.com/batate/shouldi.git","ssh_url":"git@github.com:batate/shouldi.git","clone_url":"https://github.com/batate/shouldi.git","svn_url":"https://github.com/batate/shouldi","homepage":"","size":343,"stargazers_count":64,"watchers_count":64,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":5,"forks":8,"open_issues":5,"watchers":64,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/batate/shouldi/pulls/18"},"html":{"href":"https://github.com/batate/shouldi/pull/18"},"issue":{"href":"https://api.github.com/repos/batate/shouldi/issues/18"},"comments":{"href":"https://api.github.com/repos/batate/shouldi/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/batate/shouldi/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/batate/shouldi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/batate/shouldi/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/batate/shouldi/statuses/450bd475cf9820fdfd3e509a2fbc99871015064e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":49,"deletions":40,"changed_files":2}}