{"action":"created","comment":{"url":"https://api.github.com/repos/coreos/etcd/pulls/comments/93984954","pull_request_review_id":14515370,"id":93984954,"diff_hunk":"@@ -77,6 +90,60 @@ function integration_pass {\n \tgo test -timeout 1m -v ${RACE} -cpu 1,2,4 -run=Example $@ ${TEST}\n }\n \n+function unit_cov {\n+\techo \"Running code coverage for unit test...\"\n+\t# only -run=Test so examples can run in integration tests\n+\t# go list (...) | xargs (...) issues following commands where each command runs a unit test for a given pkg and generates its coverage report, e.g $COVEROUT/main.coverprofile for github.com/coreos/etcd","path":"test","position":32,"original_position":32,"commit_id":"4db8947d45e18ea564977ccf61674eb863054bc3","original_commit_id":"4db8947d45e18ea564977ccf61674eb863054bc3","user":{"login":"heyitsanthony","id":16294350,"avatar_url":"https://avatars.githubusercontent.com/u/16294350?v=3","gravatar_id":"","url":"https://api.github.com/users/heyitsanthony","html_url":"https://github.com/heyitsanthony","followers_url":"https://api.github.com/users/heyitsanthony/followers","following_url":"https://api.github.com/users/heyitsanthony/following{/other_user}","gists_url":"https://api.github.com/users/heyitsanthony/gists{/gist_id}","starred_url":"https://api.github.com/users/heyitsanthony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heyitsanthony/subscriptions","organizations_url":"https://api.github.com/users/heyitsanthony/orgs","repos_url":"https://api.github.com/users/heyitsanthony/repos","events_url":"https://api.github.com/users/heyitsanthony/events{/privacy}","received_events_url":"https://api.github.com/users/heyitsanthony/received_events","type":"User","site_admin":false},"body":"don't copy the same comments around, try to consolidate code instead","created_at":"2016-12-28T01:07:08Z","updated_at":"2016-12-28T01:38:28Z","html_url":"https://github.com/coreos/etcd/pull/7067#discussion_r93984954","pull_request_url":"https://api.github.com/repos/coreos/etcd/pulls/7067","_links":{"self":{"href":"https://api.github.com/repos/coreos/etcd/pulls/comments/93984954"},"html":{"href":"https://github.com/coreos/etcd/pull/7067#discussion_r93984954"},"pull_request":{"href":"https://api.github.com/repos/coreos/etcd/pulls/7067"}}},"pull_request":{"url":"https://api.github.com/repos/coreos/etcd/pulls/7067","id":99493526,"html_url":"https://github.com/coreos/etcd/pull/7067","diff_url":"https://github.com/coreos/etcd/pull/7067.diff","patch_url":"https://github.com/coreos/etcd/pull/7067.patch","issue_url":"https://api.github.com/repos/coreos/etcd/issues/7067","number":7067,"state":"open","locked":false,"title":"coverage: rework coverage for unit and integration tests","user":{"login":"fanminshi","id":4983345,"avatar_url":"https://avatars.githubusercontent.com/u/4983345?v=3","gravatar_id":"","url":"https://api.github.com/users/fanminshi","html_url":"https://github.com/fanminshi","followers_url":"https://api.github.com/users/fanminshi/followers","following_url":"https://api.github.com/users/fanminshi/following{/other_user}","gists_url":"https://api.github.com/users/fanminshi/gists{/gist_id}","starred_url":"https://api.github.com/users/fanminshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fanminshi/subscriptions","organizations_url":"https://api.github.com/users/fanminshi/orgs","repos_url":"https://api.github.com/users/fanminshi/repos","events_url":"https://api.github.com/users/fanminshi/events{/privacy}","received_events_url":"https://api.github.com/users/fanminshi/received_events","type":"User","site_admin":false},"body":"\r\n","created_at":"2016-12-27T23:36:42Z","updated_at":"2016-12-28T01:38:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eba602dfd0206dee52d03c57b7f01cd96211c138","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/coreos/etcd/pulls/7067/commits","review_comments_url":"https://api.github.com/repos/coreos/etcd/pulls/7067/comments","review_comment_url":"https://api.github.com/repos/coreos/etcd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/7067/comments","statuses_url":"https://api.github.com/repos/coreos/etcd/statuses/4db8947d45e18ea564977ccf61674eb863054bc3","head":{"label":"fanminshi:rework_coverage_unit_integration","ref":"rework_coverage_unit_integration","sha":"4db8947d45e18ea564977ccf61674eb863054bc3","user":{"login":"fanminshi","id":4983345,"avatar_url":"https://avatars.githubusercontent.com/u/4983345?v=3","gravatar_id":"","url":"https://api.github.com/users/fanminshi","html_url":"https://github.com/fanminshi","followers_url":"https://api.github.com/users/fanminshi/followers","following_url":"https://api.github.com/users/fanminshi/following{/other_user}","gists_url":"https://api.github.com/users/fanminshi/gists{/gist_id}","starred_url":"https://api.github.com/users/fanminshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fanminshi/subscriptions","organizations_url":"https://api.github.com/users/fanminshi/orgs","repos_url":"https://api.github.com/users/fanminshi/repos","events_url":"https://api.github.com/users/fanminshi/events{/privacy}","received_events_url":"https://api.github.com/users/fanminshi/received_events","type":"User","site_admin":false},"repo":{"id":67535590,"name":"etcd","full_name":"fanminshi/etcd","owner":{"login":"fanminshi","id":4983345,"avatar_url":"https://avatars.githubusercontent.com/u/4983345?v=3","gravatar_id":"","url":"https://api.github.com/users/fanminshi","html_url":"https://github.com/fanminshi","followers_url":"https://api.github.com/users/fanminshi/followers","following_url":"https://api.github.com/users/fanminshi/following{/other_user}","gists_url":"https://api.github.com/users/fanminshi/gists{/gist_id}","starred_url":"https://api.github.com/users/fanminshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fanminshi/subscriptions","organizations_url":"https://api.github.com/users/fanminshi/orgs","repos_url":"https://api.github.com/users/fanminshi/repos","events_url":"https://api.github.com/users/fanminshi/events{/privacy}","received_events_url":"https://api.github.com/users/fanminshi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fanminshi/etcd","description":"Distributed reliable key-value store for the most critical data of a distributed system","fork":true,"url":"https://api.github.com/repos/fanminshi/etcd","forks_url":"https://api.github.com/repos/fanminshi/etcd/forks","keys_url":"https://api.github.com/repos/fanminshi/etcd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fanminshi/etcd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fanminshi/etcd/teams","hooks_url":"https://api.github.com/repos/fanminshi/etcd/hooks","issue_events_url":"https://api.github.com/repos/fanminshi/etcd/issues/events{/number}","events_url":"https://api.github.com/repos/fanminshi/etcd/events","assignees_url":"https://api.github.com/repos/fanminshi/etcd/assignees{/user}","branches_url":"https://api.github.com/repos/fanminshi/etcd/branches{/branch}","tags_url":"https://api.github.com/repos/fanminshi/etcd/tags","blobs_url":"https://api.github.com/repos/fanminshi/etcd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fanminshi/etcd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fanminshi/etcd/git/refs{/sha}","trees_url":"https://api.github.com/repos/fanminshi/etcd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fanminshi/etcd/statuses/{sha}","languages_url":"https://api.github.com/repos/fanminshi/etcd/languages","stargazers_url":"https://api.github.com/repos/fanminshi/etcd/stargazers","contributors_url":"https://api.github.com/repos/fanminshi/etcd/contributors","subscribers_url":"https://api.github.com/repos/fanminshi/etcd/subscribers","subscription_url":"https://api.github.com/repos/fanminshi/etcd/subscription","commits_url":"https://api.github.com/repos/fanminshi/etcd/commits{/sha}","git_commits_url":"https://api.github.com/repos/fanminshi/etcd/git/commits{/sha}","comments_url":"https://api.github.com/repos/fanminshi/etcd/comments{/number}","issue_comment_url":"https://api.github.com/repos/fanminshi/etcd/issues/comments{/number}","contents_url":"https://api.github.com/repos/fanminshi/etcd/contents/{+path}","compare_url":"https://api.github.com/repos/fanminshi/etcd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fanminshi/etcd/merges","archive_url":"https://api.github.com/repos/fanminshi/etcd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fanminshi/etcd/downloads","issues_url":"https://api.github.com/repos/fanminshi/etcd/issues{/number}","pulls_url":"https://api.github.com/repos/fanminshi/etcd/pulls{/number}","milestones_url":"https://api.github.com/repos/fanminshi/etcd/milestones{/number}","notifications_url":"https://api.github.com/repos/fanminshi/etcd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fanminshi/etcd/labels{/name}","releases_url":"https://api.github.com/repos/fanminshi/etcd/releases{/id}","deployments_url":"https://api.github.com/repos/fanminshi/etcd/deployments","created_at":"2016-09-06T18:28:06Z","updated_at":"2016-09-06T18:28:10Z","pushed_at":"2016-12-28T01:00:53Z","git_url":"git://github.com/fanminshi/etcd.git","ssh_url":"git@github.com:fanminshi/etcd.git","clone_url":"https://github.com/fanminshi/etcd.git","svn_url":"https://github.com/fanminshi/etcd","homepage":"https://coreos.com/etcd/docs/latest/","size":28641,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"coreos:master","ref":"master","sha":"c00084812c121e5b983dfc14e1a077dce3f8d427","user":{"login":"coreos","id":3730757,"avatar_url":"https://avatars.githubusercontent.com/u/3730757?v=3","gravatar_id":"","url":"https://api.github.com/users/coreos","html_url":"https://github.com/coreos","followers_url":"https://api.github.com/users/coreos/followers","following_url":"https://api.github.com/users/coreos/following{/other_user}","gists_url":"https://api.github.com/users/coreos/gists{/gist_id}","starred_url":"https://api.github.com/users/coreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreos/subscriptions","organizations_url":"https://api.github.com/users/coreos/orgs","repos_url":"https://api.github.com/users/coreos/repos","events_url":"https://api.github.com/users/coreos/events{/privacy}","received_events_url":"https://api.github.com/users/coreos/received_events","type":"Organization","site_admin":false},"repo":{"id":11225014,"name":"etcd","full_name":"coreos/etcd","owner":{"login":"coreos","id":3730757,"avatar_url":"https://avatars.githubusercontent.com/u/3730757?v=3","gravatar_id":"","url":"https://api.github.com/users/coreos","html_url":"https://github.com/coreos","followers_url":"https://api.github.com/users/coreos/followers","following_url":"https://api.github.com/users/coreos/following{/other_user}","gists_url":"https://api.github.com/users/coreos/gists{/gist_id}","starred_url":"https://api.github.com/users/coreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreos/subscriptions","organizations_url":"https://api.github.com/users/coreos/orgs","repos_url":"https://api.github.com/users/coreos/repos","events_url":"https://api.github.com/users/coreos/events{/privacy}","received_events_url":"https://api.github.com/users/coreos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coreos/etcd","description":"Distributed reliable key-value store for the most critical data of a distributed system","fork":false,"url":"https://api.github.com/repos/coreos/etcd","forks_url":"https://api.github.com/repos/coreos/etcd/forks","keys_url":"https://api.github.com/repos/coreos/etcd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coreos/etcd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coreos/etcd/teams","hooks_url":"https://api.github.com/repos/coreos/etcd/hooks","issue_events_url":"https://api.github.com/repos/coreos/etcd/issues/events{/number}","events_url":"https://api.github.com/repos/coreos/etcd/events","assignees_url":"https://api.github.com/repos/coreos/etcd/assignees{/user}","branches_url":"https://api.github.com/repos/coreos/etcd/branches{/branch}","tags_url":"https://api.github.com/repos/coreos/etcd/tags","blobs_url":"https://api.github.com/repos/coreos/etcd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coreos/etcd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coreos/etcd/git/refs{/sha}","trees_url":"https://api.github.com/repos/coreos/etcd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coreos/etcd/statuses/{sha}","languages_url":"https://api.github.com/repos/coreos/etcd/languages","stargazers_url":"https://api.github.com/repos/coreos/etcd/stargazers","contributors_url":"https://api.github.com/repos/coreos/etcd/contributors","subscribers_url":"https://api.github.com/repos/coreos/etcd/subscribers","subscription_url":"https://api.github.com/repos/coreos/etcd/subscription","commits_url":"https://api.github.com/repos/coreos/etcd/commits{/sha}","git_commits_url":"https://api.github.com/repos/coreos/etcd/git/commits{/sha}","comments_url":"https://api.github.com/repos/coreos/etcd/comments{/number}","issue_comment_url":"https://api.github.com/repos/coreos/etcd/issues/comments{/number}","contents_url":"https://api.github.com/repos/coreos/etcd/contents/{+path}","compare_url":"https://api.github.com/repos/coreos/etcd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coreos/etcd/merges","archive_url":"https://api.github.com/repos/coreos/etcd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coreos/etcd/downloads","issues_url":"https://api.github.com/repos/coreos/etcd/issues{/number}","pulls_url":"https://api.github.com/repos/coreos/etcd/pulls{/number}","milestones_url":"https://api.github.com/repos/coreos/etcd/milestones{/number}","notifications_url":"https://api.github.com/repos/coreos/etcd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coreos/etcd/labels{/name}","releases_url":"https://api.github.com/repos/coreos/etcd/releases{/id}","deployments_url":"https://api.github.com/repos/coreos/etcd/deployments","created_at":"2013-07-06T21:57:21Z","updated_at":"2016-12-28T00:58:57Z","pushed_at":"2016-12-28T01:00:55Z","git_url":"git://github.com/coreos/etcd.git","ssh_url":"git@github.com:coreos/etcd.git","clone_url":"https://github.com/coreos/etcd.git","svn_url":"https://github.com/coreos/etcd","homepage":"https://coreos.com/etcd/docs/latest/","size":28202,"stargazers_count":11843,"watchers_count":11843,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2148,"mirror_url":null,"open_issues_count":149,"forks":2148,"open_issues":149,"watchers":11843,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coreos/etcd/pulls/7067"},"html":{"href":"https://github.com/coreos/etcd/pull/7067"},"issue":{"href":"https://api.github.com/repos/coreos/etcd/issues/7067"},"comments":{"href":"https://api.github.com/repos/coreos/etcd/issues/7067/comments"},"review_comments":{"href":"https://api.github.com/repos/coreos/etcd/pulls/7067/comments"},"review_comment":{"href":"https://api.github.com/repos/coreos/etcd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coreos/etcd/pulls/7067/commits"},"statuses":{"href":"https://api.github.com/repos/coreos/etcd/statuses/4db8947d45e18ea564977ccf61674eb863054bc3"}}}}
{"actor":{"display_login":"heyitsanthony"}}