{"action":"created","comment":{"url":"https://api.github.com/repos/G-Node/gin-auth/pulls/comments/58663435","id":58663435,"diff_hunk":"@@ -0,0 +1,137 @@\n+package data\n+\n+import (\n+\t\"database/sql\"\n+\t\"github.com/pborman/uuid\"\n+\t\"testing\"\n+)\n+\n+const (\n+\tuuidClientGin = \"8b14d6bb-cae7-4163-bbd1-f3be46e43e31\"\n+)\n+\n+func TestListOAuthClients(t *testing.T) {\n+\tdefer func() {\n+\t\tif r := recover(); r != nil {\n+\t\t\tt.Error(r)\n+\t\t}\n+\t}()","path":"data/oauth_client_test.go","position":null,"original_position":18,"commit_id":"af537483eb242ca690d906232f3636a6b7d3573f","original_commit_id":"4e4df1077a019f2236a274b14ea29a003df3ad3e","user":{"login":"stoewer","id":2076136,"avatar_url":"https://avatars.githubusercontent.com/u/2076136?v=3","gravatar_id":"","url":"https://api.github.com/users/stoewer","html_url":"https://github.com/stoewer","followers_url":"https://api.github.com/users/stoewer/followers","following_url":"https://api.github.com/users/stoewer/following{/other_user}","gists_url":"https://api.github.com/users/stoewer/gists{/gist_id}","starred_url":"https://api.github.com/users/stoewer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stoewer/subscriptions","organizations_url":"https://api.github.com/users/stoewer/orgs","repos_url":"https://api.github.com/users/stoewer/repos","events_url":"https://api.github.com/users/stoewer/events{/privacy}","received_events_url":"https://api.github.com/users/stoewer/received_events","type":"User","site_admin":false},"body":"`TestMain` does not really help in this case because it would not allow recover from single tests. But I added a `failOnPanic` function which helps to reduces the redundancy a bit. ","created_at":"2016-04-06T07:43:05Z","updated_at":"2016-04-06T07:43:05Z","html_url":"https://github.com/G-Node/gin-auth/pull/5#discussion_r58663435","pull_request_url":"https://api.github.com/repos/G-Node/gin-auth/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/G-Node/gin-auth/pulls/comments/58663435"},"html":{"href":"https://github.com/G-Node/gin-auth/pull/5#discussion_r58663435"},"pull_request":{"href":"https://api.github.com/repos/G-Node/gin-auth/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/G-Node/gin-auth/pulls/5","id":65326295,"html_url":"https://github.com/G-Node/gin-auth/pull/5","diff_url":"https://github.com/G-Node/gin-auth/pull/5.diff","patch_url":"https://github.com/G-Node/gin-auth/pull/5.patch","issue_url":"https://api.github.com/repos/G-Node/gin-auth/issues/5","number":5,"state":"open","locked":false,"title":"More functions for data access","user":{"login":"stoewer","id":2076136,"avatar_url":"https://avatars.githubusercontent.com/u/2076136?v=3","gravatar_id":"","url":"https://api.github.com/users/stoewer","html_url":"https://github.com/stoewer","followers_url":"https://api.github.com/users/stoewer/followers","following_url":"https://api.github.com/users/stoewer/following{/other_user}","gists_url":"https://api.github.com/users/stoewer/gists{/gist_id}","starred_url":"https://api.github.com/users/stoewer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stoewer/subscriptions","organizations_url":"https://api.github.com/users/stoewer/orgs","repos_url":"https://api.github.com/users/stoewer/repos","events_url":"https://api.github.com/users/stoewer/events{/privacy}","received_events_url":"https://api.github.com/users/stoewer/received_events","type":"User","site_admin":false},"body":"Data access for:\r\n* SSHKeys\r\n* OAuthClients\r\n* GrantRequests","created_at":"2016-04-05T15:36:03Z","updated_at":"2016-04-06T07:43:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b62bdb111a6cd1579d7aaeb16ffb7ee6f7c15aaa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/G-Node/gin-auth/pulls/5/commits","review_comments_url":"https://api.github.com/repos/G-Node/gin-auth/pulls/5/comments","review_comment_url":"https://api.github.com/repos/G-Node/gin-auth/pulls/comments{/number}","comments_url":"https://api.github.com/repos/G-Node/gin-auth/issues/5/comments","statuses_url":"https://api.github.com/repos/G-Node/gin-auth/statuses/af537483eb242ca690d906232f3636a6b7d3573f","head":{"label":"stoewer:data-model","ref":"data-model","sha":"af537483eb242ca690d906232f3636a6b7d3573f","user":{"login":"stoewer","id":2076136,"avatar_url":"https://avatars.githubusercontent.com/u/2076136?v=3","gravatar_id":"","url":"https://api.github.com/users/stoewer","html_url":"https://github.com/stoewer","followers_url":"https://api.github.com/users/stoewer/followers","following_url":"https://api.github.com/users/stoewer/following{/other_user}","gists_url":"https://api.github.com/users/stoewer/gists{/gist_id}","starred_url":"https://api.github.com/users/stoewer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stoewer/subscriptions","organizations_url":"https://api.github.com/users/stoewer/orgs","repos_url":"https://api.github.com/users/stoewer/repos","events_url":"https://api.github.com/users/stoewer/events{/privacy}","received_events_url":"https://api.github.com/users/stoewer/received_events","type":"User","site_admin":false},"repo":{"id":54481896,"name":"gin-auth","full_name":"stoewer/gin-auth","owner":{"login":"stoewer","id":2076136,"avatar_url":"https://avatars.githubusercontent.com/u/2076136?v=3","gravatar_id":"","url":"https://api.github.com/users/stoewer","html_url":"https://github.com/stoewer","followers_url":"https://api.github.com/users/stoewer/followers","following_url":"https://api.github.com/users/stoewer/following{/other_user}","gists_url":"https://api.github.com/users/stoewer/gists{/gist_id}","starred_url":"https://api.github.com/users/stoewer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stoewer/subscriptions","organizations_url":"https://api.github.com/users/stoewer/orgs","repos_url":"https://api.github.com/users/stoewer/repos","events_url":"https://api.github.com/users/stoewer/events{/privacy}","received_events_url":"https://api.github.com/users/stoewer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stoewer/gin-auth","description":"G-Node Infrastructure Authentication Provider","fork":true,"url":"https://api.github.com/repos/stoewer/gin-auth","forks_url":"https://api.github.com/repos/stoewer/gin-auth/forks","keys_url":"https://api.github.com/repos/stoewer/gin-auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stoewer/gin-auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stoewer/gin-auth/teams","hooks_url":"https://api.github.com/repos/stoewer/gin-auth/hooks","issue_events_url":"https://api.github.com/repos/stoewer/gin-auth/issues/events{/number}","events_url":"https://api.github.com/repos/stoewer/gin-auth/events","assignees_url":"https://api.github.com/repos/stoewer/gin-auth/assignees{/user}","branches_url":"https://api.github.com/repos/stoewer/gin-auth/branches{/branch}","tags_url":"https://api.github.com/repos/stoewer/gin-auth/tags","blobs_url":"https://api.github.com/repos/stoewer/gin-auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stoewer/gin-auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stoewer/gin-auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/stoewer/gin-auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stoewer/gin-auth/statuses/{sha}","languages_url":"https://api.github.com/repos/stoewer/gin-auth/languages","stargazers_url":"https://api.github.com/repos/stoewer/gin-auth/stargazers","contributors_url":"https://api.github.com/repos/stoewer/gin-auth/contributors","subscribers_url":"https://api.github.com/repos/stoewer/gin-auth/subscribers","subscription_url":"https://api.github.com/repos/stoewer/gin-auth/subscription","commits_url":"https://api.github.com/repos/stoewer/gin-auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/stoewer/gin-auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/stoewer/gin-auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/stoewer/gin-auth/issues/comments{/number}","contents_url":"https://api.github.com/repos/stoewer/gin-auth/contents/{+path}","compare_url":"https://api.github.com/repos/stoewer/gin-auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stoewer/gin-auth/merges","archive_url":"https://api.github.com/repos/stoewer/gin-auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stoewer/gin-auth/downloads","issues_url":"https://api.github.com/repos/stoewer/gin-auth/issues{/number}","pulls_url":"https://api.github.com/repos/stoewer/gin-auth/pulls{/number}","milestones_url":"https://api.github.com/repos/stoewer/gin-auth/milestones{/number}","notifications_url":"https://api.github.com/repos/stoewer/gin-auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stoewer/gin-auth/labels{/name}","releases_url":"https://api.github.com/repos/stoewer/gin-auth/releases{/id}","deployments_url":"https://api.github.com/repos/stoewer/gin-auth/deployments","created_at":"2016-03-22T14:30:48Z","updated_at":"2016-04-04T14:50:47Z","pushed_at":"2016-04-06T07:39:21Z","git_url":"git://github.com/stoewer/gin-auth.git","ssh_url":"git@github.com:stoewer/gin-auth.git","clone_url":"https://github.com/stoewer/gin-auth.git","svn_url":"https://github.com/stoewer/gin-auth","homepage":null,"size":40,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"G-Node:master","ref":"master","sha":"eded7e8d8f5f495faa4152c6a6f7dfc1e626bb71","user":{"login":"G-Node","id":574778,"avatar_url":"https://avatars.githubusercontent.com/u/574778?v=3","gravatar_id":"","url":"https://api.github.com/users/G-Node","html_url":"https://github.com/G-Node","followers_url":"https://api.github.com/users/G-Node/followers","following_url":"https://api.github.com/users/G-Node/following{/other_user}","gists_url":"https://api.github.com/users/G-Node/gists{/gist_id}","starred_url":"https://api.github.com/users/G-Node/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/G-Node/subscriptions","organizations_url":"https://api.github.com/users/G-Node/orgs","repos_url":"https://api.github.com/users/G-Node/repos","events_url":"https://api.github.com/users/G-Node/events{/privacy}","received_events_url":"https://api.github.com/users/G-Node/received_events","type":"Organization","site_admin":false},"repo":{"id":54481711,"name":"gin-auth","full_name":"G-Node/gin-auth","owner":{"login":"G-Node","id":574778,"avatar_url":"https://avatars.githubusercontent.com/u/574778?v=3","gravatar_id":"","url":"https://api.github.com/users/G-Node","html_url":"https://github.com/G-Node","followers_url":"https://api.github.com/users/G-Node/followers","following_url":"https://api.github.com/users/G-Node/following{/other_user}","gists_url":"https://api.github.com/users/G-Node/gists{/gist_id}","starred_url":"https://api.github.com/users/G-Node/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/G-Node/subscriptions","organizations_url":"https://api.github.com/users/G-Node/orgs","repos_url":"https://api.github.com/users/G-Node/repos","events_url":"https://api.github.com/users/G-Node/events{/privacy}","received_events_url":"https://api.github.com/users/G-Node/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/G-Node/gin-auth","description":"G-Node Infrastructure Authentication Provider","fork":false,"url":"https://api.github.com/repos/G-Node/gin-auth","forks_url":"https://api.github.com/repos/G-Node/gin-auth/forks","keys_url":"https://api.github.com/repos/G-Node/gin-auth/keys{/key_id}","collaborators_url":"https://api.github.com/repos/G-Node/gin-auth/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/G-Node/gin-auth/teams","hooks_url":"https://api.github.com/repos/G-Node/gin-auth/hooks","issue_events_url":"https://api.github.com/repos/G-Node/gin-auth/issues/events{/number}","events_url":"https://api.github.com/repos/G-Node/gin-auth/events","assignees_url":"https://api.github.com/repos/G-Node/gin-auth/assignees{/user}","branches_url":"https://api.github.com/repos/G-Node/gin-auth/branches{/branch}","tags_url":"https://api.github.com/repos/G-Node/gin-auth/tags","blobs_url":"https://api.github.com/repos/G-Node/gin-auth/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/G-Node/gin-auth/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/G-Node/gin-auth/git/refs{/sha}","trees_url":"https://api.github.com/repos/G-Node/gin-auth/git/trees{/sha}","statuses_url":"https://api.github.com/repos/G-Node/gin-auth/statuses/{sha}","languages_url":"https://api.github.com/repos/G-Node/gin-auth/languages","stargazers_url":"https://api.github.com/repos/G-Node/gin-auth/stargazers","contributors_url":"https://api.github.com/repos/G-Node/gin-auth/contributors","subscribers_url":"https://api.github.com/repos/G-Node/gin-auth/subscribers","subscription_url":"https://api.github.com/repos/G-Node/gin-auth/subscription","commits_url":"https://api.github.com/repos/G-Node/gin-auth/commits{/sha}","git_commits_url":"https://api.github.com/repos/G-Node/gin-auth/git/commits{/sha}","comments_url":"https://api.github.com/repos/G-Node/gin-auth/comments{/number}","issue_comment_url":"https://api.github.com/repos/G-Node/gin-auth/issues/comments{/number}","contents_url":"https://api.github.com/repos/G-Node/gin-auth/contents/{+path}","compare_url":"https://api.github.com/repos/G-Node/gin-auth/compare/{base}...{head}","merges_url":"https://api.github.com/repos/G-Node/gin-auth/merges","archive_url":"https://api.github.com/repos/G-Node/gin-auth/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/G-Node/gin-auth/downloads","issues_url":"https://api.github.com/repos/G-Node/gin-auth/issues{/number}","pulls_url":"https://api.github.com/repos/G-Node/gin-auth/pulls{/number}","milestones_url":"https://api.github.com/repos/G-Node/gin-auth/milestones{/number}","notifications_url":"https://api.github.com/repos/G-Node/gin-auth/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/G-Node/gin-auth/labels{/name}","releases_url":"https://api.github.com/repos/G-Node/gin-auth/releases{/id}","deployments_url":"https://api.github.com/repos/G-Node/gin-auth/deployments","created_at":"2016-03-22T14:28:10Z","updated_at":"2016-04-01T14:06:17Z","pushed_at":"2016-04-06T07:39:21Z","git_url":"git://github.com/G-Node/gin-auth.git","ssh_url":"git@github.com:G-Node/gin-auth.git","clone_url":"https://github.com/G-Node/gin-auth.git","svn_url":"https://github.com/G-Node/gin-auth","homepage":null,"size":18,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/G-Node/gin-auth/pulls/5"},"html":{"href":"https://github.com/G-Node/gin-auth/pull/5"},"issue":{"href":"https://api.github.com/repos/G-Node/gin-auth/issues/5"},"comments":{"href":"https://api.github.com/repos/G-Node/gin-auth/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/G-Node/gin-auth/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/G-Node/gin-auth/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/G-Node/gin-auth/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/G-Node/gin-auth/statuses/af537483eb242ca690d906232f3636a6b7d3573f"}}}}