{"action":"created","comment":{"url":"https://api.github.com/repos/testmycode/tmc-langs/pulls/comments/38823576","id":38823576,"diff_hunk":"@@ -0,0 +1,67 @@\n+package fi.helsinki.cs.tmc.langs.rust;\n+\n+import static org.junit.Assert.assertEquals;\n+import static org.junit.Assert.assertTrue;\n+\n+import fi.helsinki.cs.tmc.langs.domain.RunResult;\n+import fi.helsinki.cs.tmc.langs.domain.RunResult.Status;\n+import fi.helsinki.cs.tmc.langs.domain.SpecialLogs;\n+import fi.helsinki.cs.tmc.langs.utils.ProcessResult;\n+\n+import org.junit.Before;\n+import org.junit.Test;\n+\n+public class CargoResultParserTest {\n+\n+    private CargoResultParser parser;\n+    private String fail;\n+\n+    @Before\n+    public void setUp() {\n+        parser = new CargoResultParser();\n+\n+        StringBuilder builder = new StringBuilder();\n+        builder.append(\"   Compiling example version (path)\\n\");\n+        builder.append(\"     Running target\\\\debug\\\\mod-hash.exe\\n\");\n+        builder.append(\"\\n\");\n+        builder.append(\"running 1 test\\n\");\n+        builder.append(\"test name ... FAILED\\n\");\n+        builder.append(\"\\n\");\n+        builder.append(\"failures:\\n\");\n+        builder.append(\"\\n\");\n+        builder.append(\"---- name stdout ----\\n\");\n+        builder.append(\"\\tthread 'name' panicked at 'description', tests\\\\mod.rs:line\\n\");\n+        builder.append(\"\\n\");\n+        builder.append(\"\\n\");\n+        builder.append(\"failures:\\n\");\n+        builder.append(\"    name\\n\");\n+        builder.append(\"\\n\");\n+        builder.append(\"test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured\");\n+        fail = builder.toString();","path":"tmc-langs-rust/src/test/java/fi/helsinki/cs/tmc/langs/rust/CargoResultParserTest.java","position":40,"original_position":40,"commit_id":"728b54b7805a32d4839bfabdc724e0d3a5fede45","original_commit_id":"2413d0815cba1eacda6d962befac4e7827262c88","user":{"login":"jamox","id":1354151,"avatar_url":"https://avatars.githubusercontent.com/u/1354151?v=3","gravatar_id":"","url":"https://api.github.com/users/jamox","html_url":"https://github.com/jamox","followers_url":"https://api.github.com/users/jamox/followers","following_url":"https://api.github.com/users/jamox/following{/other_user}","gists_url":"https://api.github.com/users/jamox/gists{/gist_id}","starred_url":"https://api.github.com/users/jamox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamox/subscriptions","organizations_url":"https://api.github.com/users/jamox/orgs","repos_url":"https://api.github.com/users/jamox/repos","events_url":"https://api.github.com/users/jamox/events{/privacy}","received_events_url":"https://api.github.com/users/jamox/received_events","type":"User","site_admin":false},"body":"This could be just a constant? and then I think we could just build to string w/o StringBuilder, as it is done only once (and jvm likely optimizes it)","created_at":"2015-09-06T17:13:14Z","updated_at":"2015-09-06T17:13:14Z","html_url":"https://github.com/testmycode/tmc-langs/pull/28#discussion_r38823576","pull_request_url":"https://api.github.com/repos/testmycode/tmc-langs/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/testmycode/tmc-langs/pulls/comments/38823576"},"html":{"href":"https://github.com/testmycode/tmc-langs/pull/28#discussion_r38823576"},"pull_request":{"href":"https://api.github.com/repos/testmycode/tmc-langs/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/testmycode/tmc-langs/pulls/28","id":44224544,"html_url":"https://github.com/testmycode/tmc-langs/pull/28","diff_url":"https://github.com/testmycode/tmc-langs/pull/28.diff","patch_url":"https://github.com/testmycode/tmc-langs/pull/28.patch","issue_url":"https://api.github.com/repos/testmycode/tmc-langs/issues/28","number":28,"state":"open","locked":false,"title":"Branch for working on rust support #12","user":{"login":"WaDelma","id":1811729,"avatar_url":"https://avatars.githubusercontent.com/u/1811729?v=3","gravatar_id":"","url":"https://api.github.com/users/WaDelma","html_url":"https://github.com/WaDelma","followers_url":"https://api.github.com/users/WaDelma/followers","following_url":"https://api.github.com/users/WaDelma/following{/other_user}","gists_url":"https://api.github.com/users/WaDelma/gists{/gist_id}","starred_url":"https://api.github.com/users/WaDelma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WaDelma/subscriptions","organizations_url":"https://api.github.com/users/WaDelma/orgs","repos_url":"https://api.github.com/users/WaDelma/repos","events_url":"https://api.github.com/users/WaDelma/events{/privacy}","received_events_url":"https://api.github.com/users/WaDelma/received_events","type":"User","site_admin":false},"body":"#18, #17 and #16","created_at":"2015-09-04T14:35:54Z","updated_at":"2015-09-06T17:13:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7280f5ea35e8254829c0bfccbfa6d986dd428c90","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/testmycode/tmc-langs/pulls/28/commits","review_comments_url":"https://api.github.com/repos/testmycode/tmc-langs/pulls/28/comments","review_comment_url":"https://api.github.com/repos/testmycode/tmc-langs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/testmycode/tmc-langs/issues/28/comments","statuses_url":"https://api.github.com/repos/testmycode/tmc-langs/statuses/728b54b7805a32d4839bfabdc724e0d3a5fede45","head":{"label":"WaDelma:rust","ref":"rust","sha":"728b54b7805a32d4839bfabdc724e0d3a5fede45","user":{"login":"WaDelma","id":1811729,"avatar_url":"https://avatars.githubusercontent.com/u/1811729?v=3","gravatar_id":"","url":"https://api.github.com/users/WaDelma","html_url":"https://github.com/WaDelma","followers_url":"https://api.github.com/users/WaDelma/followers","following_url":"https://api.github.com/users/WaDelma/following{/other_user}","gists_url":"https://api.github.com/users/WaDelma/gists{/gist_id}","starred_url":"https://api.github.com/users/WaDelma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WaDelma/subscriptions","organizations_url":"https://api.github.com/users/WaDelma/orgs","repos_url":"https://api.github.com/users/WaDelma/repos","events_url":"https://api.github.com/users/WaDelma/events{/privacy}","received_events_url":"https://api.github.com/users/WaDelma/received_events","type":"User","site_admin":false},"repo":{"id":41810076,"name":"tmc-langs","full_name":"WaDelma/tmc-langs","owner":{"login":"WaDelma","id":1811729,"avatar_url":"https://avatars.githubusercontent.com/u/1811729?v=3","gravatar_id":"","url":"https://api.github.com/users/WaDelma","html_url":"https://github.com/WaDelma","followers_url":"https://api.github.com/users/WaDelma/followers","following_url":"https://api.github.com/users/WaDelma/following{/other_user}","gists_url":"https://api.github.com/users/WaDelma/gists{/gist_id}","starred_url":"https://api.github.com/users/WaDelma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WaDelma/subscriptions","organizations_url":"https://api.github.com/users/WaDelma/orgs","repos_url":"https://api.github.com/users/WaDelma/repos","events_url":"https://api.github.com/users/WaDelma/events{/privacy}","received_events_url":"https://api.github.com/users/WaDelma/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/WaDelma/tmc-langs","description":"TMC language support framework","fork":true,"url":"https://api.github.com/repos/WaDelma/tmc-langs","forks_url":"https://api.github.com/repos/WaDelma/tmc-langs/forks","keys_url":"https://api.github.com/repos/WaDelma/tmc-langs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WaDelma/tmc-langs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WaDelma/tmc-langs/teams","hooks_url":"https://api.github.com/repos/WaDelma/tmc-langs/hooks","issue_events_url":"https://api.github.com/repos/WaDelma/tmc-langs/issues/events{/number}","events_url":"https://api.github.com/repos/WaDelma/tmc-langs/events","assignees_url":"https://api.github.com/repos/WaDelma/tmc-langs/assignees{/user}","branches_url":"https://api.github.com/repos/WaDelma/tmc-langs/branches{/branch}","tags_url":"https://api.github.com/repos/WaDelma/tmc-langs/tags","blobs_url":"https://api.github.com/repos/WaDelma/tmc-langs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WaDelma/tmc-langs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WaDelma/tmc-langs/git/refs{/sha}","trees_url":"https://api.github.com/repos/WaDelma/tmc-langs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WaDelma/tmc-langs/statuses/{sha}","languages_url":"https://api.github.com/repos/WaDelma/tmc-langs/languages","stargazers_url":"https://api.github.com/repos/WaDelma/tmc-langs/stargazers","contributors_url":"https://api.github.com/repos/WaDelma/tmc-langs/contributors","subscribers_url":"https://api.github.com/repos/WaDelma/tmc-langs/subscribers","subscription_url":"https://api.github.com/repos/WaDelma/tmc-langs/subscription","commits_url":"https://api.github.com/repos/WaDelma/tmc-langs/commits{/sha}","git_commits_url":"https://api.github.com/repos/WaDelma/tmc-langs/git/commits{/sha}","comments_url":"https://api.github.com/repos/WaDelma/tmc-langs/comments{/number}","issue_comment_url":"https://api.github.com/repos/WaDelma/tmc-langs/issues/comments{/number}","contents_url":"https://api.github.com/repos/WaDelma/tmc-langs/contents/{+path}","compare_url":"https://api.github.com/repos/WaDelma/tmc-langs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WaDelma/tmc-langs/merges","archive_url":"https://api.github.com/repos/WaDelma/tmc-langs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WaDelma/tmc-langs/downloads","issues_url":"https://api.github.com/repos/WaDelma/tmc-langs/issues{/number}","pulls_url":"https://api.github.com/repos/WaDelma/tmc-langs/pulls{/number}","milestones_url":"https://api.github.com/repos/WaDelma/tmc-langs/milestones{/number}","notifications_url":"https://api.github.com/repos/WaDelma/tmc-langs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WaDelma/tmc-langs/labels{/name}","releases_url":"https://api.github.com/repos/WaDelma/tmc-langs/releases{/id}","created_at":"2015-09-02T15:39:39Z","updated_at":"2015-09-02T15:39:40Z","pushed_at":"2015-09-06T17:06:00Z","git_url":"git://github.com/WaDelma/tmc-langs.git","ssh_url":"git@github.com:WaDelma/tmc-langs.git","clone_url":"https://github.com/WaDelma/tmc-langs.git","svn_url":"https://github.com/WaDelma/tmc-langs","homepage":null,"size":1660,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"testmycode:master","ref":"master","sha":"78e97c98908339883664d6973f958f9915a70579","user":{"login":"testmycode","id":893468,"avatar_url":"https://avatars.githubusercontent.com/u/893468?v=3","gravatar_id":"","url":"https://api.github.com/users/testmycode","html_url":"https://github.com/testmycode","followers_url":"https://api.github.com/users/testmycode/followers","following_url":"https://api.github.com/users/testmycode/following{/other_user}","gists_url":"https://api.github.com/users/testmycode/gists{/gist_id}","starred_url":"https://api.github.com/users/testmycode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testmycode/subscriptions","organizations_url":"https://api.github.com/users/testmycode/orgs","repos_url":"https://api.github.com/users/testmycode/repos","events_url":"https://api.github.com/users/testmycode/events{/privacy}","received_events_url":"https://api.github.com/users/testmycode/received_events","type":"Organization","site_admin":false},"repo":{"id":23525445,"name":"tmc-langs","full_name":"testmycode/tmc-langs","owner":{"login":"testmycode","id":893468,"avatar_url":"https://avatars.githubusercontent.com/u/893468?v=3","gravatar_id":"","url":"https://api.github.com/users/testmycode","html_url":"https://github.com/testmycode","followers_url":"https://api.github.com/users/testmycode/followers","following_url":"https://api.github.com/users/testmycode/following{/other_user}","gists_url":"https://api.github.com/users/testmycode/gists{/gist_id}","starred_url":"https://api.github.com/users/testmycode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testmycode/subscriptions","organizations_url":"https://api.github.com/users/testmycode/orgs","repos_url":"https://api.github.com/users/testmycode/repos","events_url":"https://api.github.com/users/testmycode/events{/privacy}","received_events_url":"https://api.github.com/users/testmycode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/testmycode/tmc-langs","description":"TMC language support framework","fork":false,"url":"https://api.github.com/repos/testmycode/tmc-langs","forks_url":"https://api.github.com/repos/testmycode/tmc-langs/forks","keys_url":"https://api.github.com/repos/testmycode/tmc-langs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/testmycode/tmc-langs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/testmycode/tmc-langs/teams","hooks_url":"https://api.github.com/repos/testmycode/tmc-langs/hooks","issue_events_url":"https://api.github.com/repos/testmycode/tmc-langs/issues/events{/number}","events_url":"https://api.github.com/repos/testmycode/tmc-langs/events","assignees_url":"https://api.github.com/repos/testmycode/tmc-langs/assignees{/user}","branches_url":"https://api.github.com/repos/testmycode/tmc-langs/branches{/branch}","tags_url":"https://api.github.com/repos/testmycode/tmc-langs/tags","blobs_url":"https://api.github.com/repos/testmycode/tmc-langs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/testmycode/tmc-langs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/testmycode/tmc-langs/git/refs{/sha}","trees_url":"https://api.github.com/repos/testmycode/tmc-langs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/testmycode/tmc-langs/statuses/{sha}","languages_url":"https://api.github.com/repos/testmycode/tmc-langs/languages","stargazers_url":"https://api.github.com/repos/testmycode/tmc-langs/stargazers","contributors_url":"https://api.github.com/repos/testmycode/tmc-langs/contributors","subscribers_url":"https://api.github.com/repos/testmycode/tmc-langs/subscribers","subscription_url":"https://api.github.com/repos/testmycode/tmc-langs/subscription","commits_url":"https://api.github.com/repos/testmycode/tmc-langs/commits{/sha}","git_commits_url":"https://api.github.com/repos/testmycode/tmc-langs/git/commits{/sha}","comments_url":"https://api.github.com/repos/testmycode/tmc-langs/comments{/number}","issue_comment_url":"https://api.github.com/repos/testmycode/tmc-langs/issues/comments{/number}","contents_url":"https://api.github.com/repos/testmycode/tmc-langs/contents/{+path}","compare_url":"https://api.github.com/repos/testmycode/tmc-langs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/testmycode/tmc-langs/merges","archive_url":"https://api.github.com/repos/testmycode/tmc-langs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/testmycode/tmc-langs/downloads","issues_url":"https://api.github.com/repos/testmycode/tmc-langs/issues{/number}","pulls_url":"https://api.github.com/repos/testmycode/tmc-langs/pulls{/number}","milestones_url":"https://api.github.com/repos/testmycode/tmc-langs/milestones{/number}","notifications_url":"https://api.github.com/repos/testmycode/tmc-langs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/testmycode/tmc-langs/labels{/name}","releases_url":"https://api.github.com/repos/testmycode/tmc-langs/releases{/id}","created_at":"2014-08-31T23:37:38Z","updated_at":"2015-03-29T10:31:34Z","pushed_at":"2015-09-06T17:06:00Z","git_url":"git://github.com/testmycode/tmc-langs.git","ssh_url":"git@github.com:testmycode/tmc-langs.git","clone_url":"https://github.com/testmycode/tmc-langs.git","svn_url":"https://github.com/testmycode/tmc-langs","homepage":null,"size":1908,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":19,"forks":6,"open_issues":19,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/testmycode/tmc-langs/pulls/28"},"html":{"href":"https://github.com/testmycode/tmc-langs/pull/28"},"issue":{"href":"https://api.github.com/repos/testmycode/tmc-langs/issues/28"},"comments":{"href":"https://api.github.com/repos/testmycode/tmc-langs/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/testmycode/tmc-langs/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/testmycode/tmc-langs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/testmycode/tmc-langs/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/testmycode/tmc-langs/statuses/728b54b7805a32d4839bfabdc724e0d3a5fede45"}}}}