GitHub PullRequestReviewCommentEvent at 2014-06-05 13:34:47
Repository: unicore_network
Actor: miltontony
Payload: {"comment":{"url":"https://api.github.com/repos/praekelt/unicore_network/pulls/comments/13439235","id":13439235,"diff_hunk":"@@ -0,0 +1,44 @@\n+package unicore_network\n+\n+import (\n+\t\"gopkg.in/yaml.v1\"\n+\t\"io/ioutil\"\n+\t\"os\"\n+\t\"testing\"\n+)\n+\n+func TestIdentityLoading(t *testing.T) {\n+\ttemp_file, _ := ioutil.TempFile(\"\", \"uc\")\n+\tdefer os.Remove(temp_file.Name())\n+\n+\tident := Ident{Signature: \"signature\", Hostname: \"localhost\", DisplayName: \"UCN\"}\n+\tdata, _ := yaml.Marshal(&ident)\n+\ttemp_file.Write(data)\n+\ttemp_file.Close()\n+\n+\ti, _ := LoadIdentity(temp_file.Name())\n+\tif i.Signature != \"signature\" {","path":"identity_test.go","position":20,"original_position":20,"commit_id":"cdacd6b14d2dbc99228999181df267c07a869862","original_commit_id":"cdacd6b14d2dbc99228999181df267c07a869862","user":{"login":"miltontony","id":623417,"avatar_url":"https://avatars.githubusercontent.com/u/623417?","gravatar_id":"c9b3517d05a48511683b6a904507db9f","url":"https://api.github.com/users/miltontony","html_url":"https://github.com/miltontony","followers_url":"https://api.github.com/users/miltontony/followers","following_url":"https://api.github.com/users/miltontony/following{/other_user}","gists_url":"https://api.github.com/users/miltontony/gists{/gist_id}","starred_url":"https://api.github.com/users/miltontony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miltontony/subscriptions","organizations_url":"https://api.github.com/users/miltontony/orgs","repos_url":"https://api.github.com/users/miltontony/repos","events_url":"https://api.github.com/users/miltontony/events{/privacy}","received_events_url":"https://api.github.com/users/miltontony/received_events","type":"User","site_admin":false},"body":"I don't mind not having assertions in normal code, but for tests..why not?","created_at":"2014-06-05T13:34:47Z","updated_at":"2014-06-05T13:34:47Z","html_url":"https://github.com/praekelt/unicore_network/pull/3#discussion_r13439235","pull_request_url":"https://api.github.com/repos/praekelt/unicore_network/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/praekelt/unicore_network/pulls/comments/13439235"},"html":{"href":"https://github.com/praekelt/unicore_network/pull/3#discussion_r13439235"},"pull_request":{"href":"https://api.github.com/repos/praekelt/unicore_network/pulls/3"}}}}