{"action":"created","comment":{"url":"https://api.github.com/repos/go-gitea/gitea/pulls/comments/86951062","pull_request_review_id":7581716,"id":86951062,"diff_hunk":"@@ -0,0 +1,104 @@\n+package base\n+\n+import (\n+\t\"github.com/stretchr/testify/assert\"\n+\t\"testing\"\n+)\n+\n+func TestEncodeMD5(t *testing.T) {\n+\tif checksum := EncodeMD5(\"foobar\"); checksum != \"3858f62230ac3c915f300c664312c63f\" {\n+\t\tt.Errorf(\"got the wrong md5sum for string foobar: %s\", checksum)\n+\t}\n+\n+}\n+\n+func TestEncodeSha1(t *testing.T) {\n+\tif checksum := EncodeSha1(\"foobar\"); checksum != \"8843d7f92416211de9ebb963ff4ce28125932878\" {\n+\t\tt.Errorf(\"got the wrong sha1sum for string foobar: %s\", checksum)\n+\t}\n+}\n+\n+func TestShortSha(t *testing.T) {\n+\tif result := ShortSha(\"veryverylong\"); result != \"veryverylo\" {","path":"modules/base/tool_test.go","position":null,"original_position":22,"commit_id":"e74868a8508eb7069c62f3cf71bbd71184985d1f","original_commit_id":"23122c0367fd86b254c33b95a6613b4662508fc5","user":{"login":"bkcsoft","id":4726179,"avatar_url":"https://avatars.githubusercontent.com/u/4726179?v=3","gravatar_id":"","url":"https://api.github.com/users/bkcsoft","html_url":"https://github.com/bkcsoft","followers_url":"https://api.github.com/users/bkcsoft/followers","following_url":"https://api.github.com/users/bkcsoft/following{/other_user}","gists_url":"https://api.github.com/users/bkcsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/bkcsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkcsoft/subscriptions","organizations_url":"https://api.github.com/users/bkcsoft/orgs","repos_url":"https://api.github.com/users/bkcsoft/repos","events_url":"https://api.github.com/users/bkcsoft/events{/privacy}","received_events_url":"https://api.github.com/users/bkcsoft/received_events","type":"User","site_admin":false},"body":"until it's fixed, please use ShaSums ;)","created_at":"2016-11-08T09:27:23Z","updated_at":"2016-11-08T09:27:23Z","html_url":"https://github.com/go-gitea/gitea/pull/90#discussion_r86951062","pull_request_url":"https://api.github.com/repos/go-gitea/gitea/pulls/90","_links":{"self":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/comments/86951062"},"html":{"href":"https://github.com/go-gitea/gitea/pull/90#discussion_r86951062"},"pull_request":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/90"}}},"pull_request":{"url":"https://api.github.com/repos/go-gitea/gitea/pulls/90","id":92472998,"html_url":"https://github.com/go-gitea/gitea/pull/90","diff_url":"https://github.com/go-gitea/gitea/pull/90.diff","patch_url":"https://github.com/go-gitea/gitea/pull/90.patch","issue_url":"https://api.github.com/repos/go-gitea/gitea/issues/90","number":90,"state":"open","locked":false,"title":"Start to add tests for modules/base/tool","user":{"login":"metalmatze","id":872251,"avatar_url":"https://avatars.githubusercontent.com/u/872251?v=3","gravatar_id":"","url":"https://api.github.com/users/metalmatze","html_url":"https://github.com/metalmatze","followers_url":"https://api.github.com/users/metalmatze/followers","following_url":"https://api.github.com/users/metalmatze/following{/other_user}","gists_url":"https://api.github.com/users/metalmatze/gists{/gist_id}","starred_url":"https://api.github.com/users/metalmatze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metalmatze/subscriptions","organizations_url":"https://api.github.com/users/metalmatze/orgs","repos_url":"https://api.github.com/users/metalmatze/repos","events_url":"https://api.github.com/users/metalmatze/events{/privacy}","received_events_url":"https://api.github.com/users/metalmatze/received_events","type":"User","site_admin":false},"body":"I started to write some tests for modules/base/tool.\r\nI'm going to add more tomorrow.","created_at":"2016-11-06T00:54:36Z","updated_at":"2016-11-08T09:27:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8cac0894990a3ea09af517ab02008e1fb1134eea","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/go-gitea/gitea/milestones/1","html_url":"https://github.com/go-gitea/gitea/milestones/1.0.0","labels_url":"https://api.github.com/repos/go-gitea/gitea/milestones/1/labels","id":2110320,"number":1,"title":"1.0.0","description":"","creator":{"login":"tboerger","id":156964,"avatar_url":"https://avatars.githubusercontent.com/u/156964?v=3","gravatar_id":"","url":"https://api.github.com/users/tboerger","html_url":"https://github.com/tboerger","followers_url":"https://api.github.com/users/tboerger/followers","following_url":"https://api.github.com/users/tboerger/following{/other_user}","gists_url":"https://api.github.com/users/tboerger/gists{/gist_id}","starred_url":"https://api.github.com/users/tboerger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tboerger/subscriptions","organizations_url":"https://api.github.com/users/tboerger/orgs","repos_url":"https://api.github.com/users/tboerger/repos","events_url":"https://api.github.com/users/tboerger/events{/privacy}","received_events_url":"https://api.github.com/users/tboerger/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":51,"state":"open","created_at":"2016-11-02T18:06:55Z","updated_at":"2016-11-08T07:57:46Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/go-gitea/gitea/pulls/90/commits","review_comments_url":"https://api.github.com/repos/go-gitea/gitea/pulls/90/comments","review_comment_url":"https://api.github.com/repos/go-gitea/gitea/pulls/comments{/number}","comments_url":"https://api.github.com/repos/go-gitea/gitea/issues/90/comments","statuses_url":"https://api.github.com/repos/go-gitea/gitea/statuses/e74868a8508eb7069c62f3cf71bbd71184985d1f","head":{"label":"metalmatze:feature/tool-tests","ref":"feature/tool-tests","sha":"e74868a8508eb7069c62f3cf71bbd71184985d1f","user":{"login":"metalmatze","id":872251,"avatar_url":"https://avatars.githubusercontent.com/u/872251?v=3","gravatar_id":"","url":"https://api.github.com/users/metalmatze","html_url":"https://github.com/metalmatze","followers_url":"https://api.github.com/users/metalmatze/followers","following_url":"https://api.github.com/users/metalmatze/following{/other_user}","gists_url":"https://api.github.com/users/metalmatze/gists{/gist_id}","starred_url":"https://api.github.com/users/metalmatze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metalmatze/subscriptions","organizations_url":"https://api.github.com/users/metalmatze/orgs","repos_url":"https://api.github.com/users/metalmatze/repos","events_url":"https://api.github.com/users/metalmatze/events{/privacy}","received_events_url":"https://api.github.com/users/metalmatze/received_events","type":"User","site_admin":false},"repo":{"id":72732640,"name":"gitea","full_name":"metalmatze/gitea","owner":{"login":"metalmatze","id":872251,"avatar_url":"https://avatars.githubusercontent.com/u/872251?v=3","gravatar_id":"","url":"https://api.github.com/users/metalmatze","html_url":"https://github.com/metalmatze","followers_url":"https://api.github.com/users/metalmatze/followers","following_url":"https://api.github.com/users/metalmatze/following{/other_user}","gists_url":"https://api.github.com/users/metalmatze/gists{/gist_id}","starred_url":"https://api.github.com/users/metalmatze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metalmatze/subscriptions","organizations_url":"https://api.github.com/users/metalmatze/orgs","repos_url":"https://api.github.com/users/metalmatze/repos","events_url":"https://api.github.com/users/metalmatze/events{/privacy}","received_events_url":"https://api.github.com/users/metalmatze/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/metalmatze/gitea","description":"Git with a cup of tea","fork":true,"url":"https://api.github.com/repos/metalmatze/gitea","forks_url":"https://api.github.com/repos/metalmatze/gitea/forks","keys_url":"https://api.github.com/repos/metalmatze/gitea/keys{/key_id}","collaborators_url":"https://api.github.com/repos/metalmatze/gitea/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/metalmatze/gitea/teams","hooks_url":"https://api.github.com/repos/metalmatze/gitea/hooks","issue_events_url":"https://api.github.com/repos/metalmatze/gitea/issues/events{/number}","events_url":"https://api.github.com/repos/metalmatze/gitea/events","assignees_url":"https://api.github.com/repos/metalmatze/gitea/assignees{/user}","branches_url":"https://api.github.com/repos/metalmatze/gitea/branches{/branch}","tags_url":"https://api.github.com/repos/metalmatze/gitea/tags","blobs_url":"https://api.github.com/repos/metalmatze/gitea/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/metalmatze/gitea/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/metalmatze/gitea/git/refs{/sha}","trees_url":"https://api.github.com/repos/metalmatze/gitea/git/trees{/sha}","statuses_url":"https://api.github.com/repos/metalmatze/gitea/statuses/{sha}","languages_url":"https://api.github.com/repos/metalmatze/gitea/languages","stargazers_url":"https://api.github.com/repos/metalmatze/gitea/stargazers","contributors_url":"https://api.github.com/repos/metalmatze/gitea/contributors","subscribers_url":"https://api.github.com/repos/metalmatze/gitea/subscribers","subscription_url":"https://api.github.com/repos/metalmatze/gitea/subscription","commits_url":"https://api.github.com/repos/metalmatze/gitea/commits{/sha}","git_commits_url":"https://api.github.com/repos/metalmatze/gitea/git/commits{/sha}","comments_url":"https://api.github.com/repos/metalmatze/gitea/comments{/number}","issue_comment_url":"https://api.github.com/repos/metalmatze/gitea/issues/comments{/number}","contents_url":"https://api.github.com/repos/metalmatze/gitea/contents/{+path}","compare_url":"https://api.github.com/repos/metalmatze/gitea/compare/{base}...{head}","merges_url":"https://api.github.com/repos/metalmatze/gitea/merges","archive_url":"https://api.github.com/repos/metalmatze/gitea/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/metalmatze/gitea/downloads","issues_url":"https://api.github.com/repos/metalmatze/gitea/issues{/number}","pulls_url":"https://api.github.com/repos/metalmatze/gitea/pulls{/number}","milestones_url":"https://api.github.com/repos/metalmatze/gitea/milestones{/number}","notifications_url":"https://api.github.com/repos/metalmatze/gitea/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/metalmatze/gitea/labels{/name}","releases_url":"https://api.github.com/repos/metalmatze/gitea/releases{/id}","deployments_url":"https://api.github.com/repos/metalmatze/gitea/deployments","created_at":"2016-11-03T10:06:54Z","updated_at":"2016-11-03T10:06:57Z","pushed_at":"2016-11-07T22:46:07Z","git_url":"git://github.com/metalmatze/gitea.git","ssh_url":"git@github.com:metalmatze/gitea.git","clone_url":"https://github.com/metalmatze/gitea.git","svn_url":"https://github.com/metalmatze/gitea","homepage":"http://gitea.io","size":84194,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"go-gitea:master","ref":"master","sha":"864d1b1f9f6a72589d77ec0f08b21c476b8e13d4","user":{"login":"go-gitea","id":12724356,"avatar_url":"https://avatars.githubusercontent.com/u/12724356?v=3","gravatar_id":"","url":"https://api.github.com/users/go-gitea","html_url":"https://github.com/go-gitea","followers_url":"https://api.github.com/users/go-gitea/followers","following_url":"https://api.github.com/users/go-gitea/following{/other_user}","gists_url":"https://api.github.com/users/go-gitea/gists{/gist_id}","starred_url":"https://api.github.com/users/go-gitea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-gitea/subscriptions","organizations_url":"https://api.github.com/users/go-gitea/orgs","repos_url":"https://api.github.com/users/go-gitea/repos","events_url":"https://api.github.com/users/go-gitea/events{/privacy}","received_events_url":"https://api.github.com/users/go-gitea/received_events","type":"Organization","site_admin":false},"repo":{"id":72495579,"name":"gitea","full_name":"go-gitea/gitea","owner":{"login":"go-gitea","id":12724356,"avatar_url":"https://avatars.githubusercontent.com/u/12724356?v=3","gravatar_id":"","url":"https://api.github.com/users/go-gitea","html_url":"https://github.com/go-gitea","followers_url":"https://api.github.com/users/go-gitea/followers","following_url":"https://api.github.com/users/go-gitea/following{/other_user}","gists_url":"https://api.github.com/users/go-gitea/gists{/gist_id}","starred_url":"https://api.github.com/users/go-gitea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go-gitea/subscriptions","organizations_url":"https://api.github.com/users/go-gitea/orgs","repos_url":"https://api.github.com/users/go-gitea/repos","events_url":"https://api.github.com/users/go-gitea/events{/privacy}","received_events_url":"https://api.github.com/users/go-gitea/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/go-gitea/gitea","description":"Git with a cup of tea","fork":true,"url":"https://api.github.com/repos/go-gitea/gitea","forks_url":"https://api.github.com/repos/go-gitea/gitea/forks","keys_url":"https://api.github.com/repos/go-gitea/gitea/keys{/key_id}","collaborators_url":"https://api.github.com/repos/go-gitea/gitea/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/go-gitea/gitea/teams","hooks_url":"https://api.github.com/repos/go-gitea/gitea/hooks","issue_events_url":"https://api.github.com/repos/go-gitea/gitea/issues/events{/number}","events_url":"https://api.github.com/repos/go-gitea/gitea/events","assignees_url":"https://api.github.com/repos/go-gitea/gitea/assignees{/user}","branches_url":"https://api.github.com/repos/go-gitea/gitea/branches{/branch}","tags_url":"https://api.github.com/repos/go-gitea/gitea/tags","blobs_url":"https://api.github.com/repos/go-gitea/gitea/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/go-gitea/gitea/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/go-gitea/gitea/git/refs{/sha}","trees_url":"https://api.github.com/repos/go-gitea/gitea/git/trees{/sha}","statuses_url":"https://api.github.com/repos/go-gitea/gitea/statuses/{sha}","languages_url":"https://api.github.com/repos/go-gitea/gitea/languages","stargazers_url":"https://api.github.com/repos/go-gitea/gitea/stargazers","contributors_url":"https://api.github.com/repos/go-gitea/gitea/contributors","subscribers_url":"https://api.github.com/repos/go-gitea/gitea/subscribers","subscription_url":"https://api.github.com/repos/go-gitea/gitea/subscription","commits_url":"https://api.github.com/repos/go-gitea/gitea/commits{/sha}","git_commits_url":"https://api.github.com/repos/go-gitea/gitea/git/commits{/sha}","comments_url":"https://api.github.com/repos/go-gitea/gitea/comments{/number}","issue_comment_url":"https://api.github.com/repos/go-gitea/gitea/issues/comments{/number}","contents_url":"https://api.github.com/repos/go-gitea/gitea/contents/{+path}","compare_url":"https://api.github.com/repos/go-gitea/gitea/compare/{base}...{head}","merges_url":"https://api.github.com/repos/go-gitea/gitea/merges","archive_url":"https://api.github.com/repos/go-gitea/gitea/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/go-gitea/gitea/downloads","issues_url":"https://api.github.com/repos/go-gitea/gitea/issues{/number}","pulls_url":"https://api.github.com/repos/go-gitea/gitea/pulls{/number}","milestones_url":"https://api.github.com/repos/go-gitea/gitea/milestones{/number}","notifications_url":"https://api.github.com/repos/go-gitea/gitea/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/go-gitea/gitea/labels{/name}","releases_url":"https://api.github.com/repos/go-gitea/gitea/releases{/id}","deployments_url":"https://api.github.com/repos/go-gitea/gitea/deployments","created_at":"2016-11-01T02:13:26Z","updated_at":"2016-11-08T03:31:20Z","pushed_at":"2016-11-08T08:42:51Z","git_url":"git://github.com/go-gitea/gitea.git","ssh_url":"git@github.com:go-gitea/gitea.git","clone_url":"https://github.com/go-gitea/gitea.git","svn_url":"https://github.com/go-gitea/gitea","homepage":"http://gitea.io","size":94879,"stargazers_count":43,"watchers_count":43,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":51,"forks":10,"open_issues":51,"watchers":43,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/90"},"html":{"href":"https://github.com/go-gitea/gitea/pull/90"},"issue":{"href":"https://api.github.com/repos/go-gitea/gitea/issues/90"},"comments":{"href":"https://api.github.com/repos/go-gitea/gitea/issues/90/comments"},"review_comments":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/90/comments"},"review_comment":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/go-gitea/gitea/pulls/90/commits"},"statuses":{"href":"https://api.github.com/repos/go-gitea/gitea/statuses/e74868a8508eb7069c62f3cf71bbd71184985d1f"}}}}
{"actor":{"display_login":"bkcsoft"}}