{"action":"created","comment":{"url":"https://api.github.com/repos/DaniilSNikulin/soft_design/pulls/comments/191079367","pull_request_review_id":123586530,"id":191079367,"diff_hunk":"@@ -0,0 +1,80 @@\n+package ru.spbau.mit.cli.functions;\n+\n+import org.junit.Test;\n+import ru.spbau.mit.cli.Executor;\n+\n+import java.io.*;\n+import java.nio.file.Files;\n+import java.nio.file.Paths;\n+import java.util.ArrayList;\n+import java.util.Scanner;\n+\n+import static org.junit.Assert.*;\n+\n+public class GrepFunctionTest {\n+    final private Executor executor = new Executor();\n+    final private String pathName = \"src/test/resources/\";\n+    final private ArrayList<String> queries = new ArrayList<>();\n+\n+    {\n+        queries.add(\"echo hello guy good | grep guy\");\n+        queries.add(\"echo hello guy good | cat | grep guy\");\n+        queries.add(\"echo hello guy good | grep empty\");\n+        queries.add(\"cat HP.txt | grep hag\");\n+        queries.add(\"grep hag HP.txt\");\n+        queries.add(\"grep -w hag HP.txt\");\n+        queries.add(\"grep -i hag HP.txt\");\n+        queries.add(\"grep -A 3 herm HP.txt\");\n+        queries.add(\"grep -A 10 -i herm HP.txt\");","path":"soft_design.1/src/test/java/ru/spbau/mit/cli/functions/GrepFunctionTest.java","position":28,"original_position":28,"commit_id":"998fe1764d57cd9a1d132a5507fe1f53fec713b3","original_commit_id":"998fe1764d57cd9a1d132a5507fe1f53fec713b3","user":{"login":"yurii-litvinov","id":706768,"avatar_url":"https://avatars3.githubusercontent.com/u/706768?v=4","gravatar_id":"","url":"https://api.github.com/users/yurii-litvinov","html_url":"https://github.com/yurii-litvinov","followers_url":"https://api.github.com/users/yurii-litvinov/followers","following_url":"https://api.github.com/users/yurii-litvinov/following{/other_user}","gists_url":"https://api.github.com/users/yurii-litvinov/gists{/gist_id}","starred_url":"https://api.github.com/users/yurii-litvinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yurii-litvinov/subscriptions","organizations_url":"https://api.github.com/users/yurii-litvinov/orgs","repos_url":"https://api.github.com/users/yurii-litvinov/repos","events_url":"https://api.github.com/users/yurii-litvinov/events{/privacy}","received_events_url":"https://api.github.com/users/yurii-litvinov/received_events","type":"User","site_admin":false},"body":"Кстати, имеет смысл посмотреть на параметризованные тесты (https://junit.org/junit4/javadoc/4.12/org/junit/runners/Parameterized.html), чтобы делать это всё не вручную и получать более адекватную диагностику","created_at":"2018-05-27T15:02:02Z","updated_at":"2018-05-27T15:05:03Z","html_url":"https://github.com/DaniilSNikulin/soft_design/pull/3#discussion_r191079367","pull_request_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/pulls/3","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/DaniilSNikulin/soft_design/pulls/comments/191079367"},"html":{"href":"https://github.com/DaniilSNikulin/soft_design/pull/3#discussion_r191079367"},"pull_request":{"href":"https://api.github.com/repos/DaniilSNikulin/soft_design/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/DaniilSNikulin/soft_design/pulls/3","id":189209973,"html_url":"https://github.com/DaniilSNikulin/soft_design/pull/3","diff_url":"https://github.com/DaniilSNikulin/soft_design/pull/3.diff","patch_url":"https://github.com/DaniilSNikulin/soft_design/pull/3.patch","issue_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/issues/3","number":3,"state":"open","locked":false,"title":"Grep","user":{"login":"DaniilSNikulin","id":31708320,"avatar_url":"https://avatars2.githubusercontent.com/u/31708320?v=4","gravatar_id":"","url":"https://api.github.com/users/DaniilSNikulin","html_url":"https://github.com/DaniilSNikulin","followers_url":"https://api.github.com/users/DaniilSNikulin/followers","following_url":"https://api.github.com/users/DaniilSNikulin/following{/other_user}","gists_url":"https://api.github.com/users/DaniilSNikulin/gists{/gist_id}","starred_url":"https://api.github.com/users/DaniilSNikulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaniilSNikulin/subscriptions","organizations_url":"https://api.github.com/users/DaniilSNikulin/orgs","repos_url":"https://api.github.com/users/DaniilSNikulin/repos","events_url":"https://api.github.com/users/DaniilSNikulin/events{/privacy}","received_events_url":"https://api.github.com/users/DaniilSNikulin/received_events","type":"User","site_admin":false},"body":"Добавил функцию `grep` в набор самописных команд.","created_at":"2018-05-19T22:42:07Z","updated_at":"2018-05-27T15:05:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ed51cff707a4a40dccd0607231e8b778b9c81db6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/pulls/3/commits","review_comments_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/pulls/3/comments","review_comment_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/issues/3/comments","statuses_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/statuses/998fe1764d57cd9a1d132a5507fe1f53fec713b3","head":{"label":"DaniilSNikulin:grep","ref":"grep","sha":"998fe1764d57cd9a1d132a5507fe1f53fec713b3","user":{"login":"DaniilSNikulin","id":31708320,"avatar_url":"https://avatars2.githubusercontent.com/u/31708320?v=4","gravatar_id":"","url":"https://api.github.com/users/DaniilSNikulin","html_url":"https://github.com/DaniilSNikulin","followers_url":"https://api.github.com/users/DaniilSNikulin/followers","following_url":"https://api.github.com/users/DaniilSNikulin/following{/other_user}","gists_url":"https://api.github.com/users/DaniilSNikulin/gists{/gist_id}","starred_url":"https://api.github.com/users/DaniilSNikulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaniilSNikulin/subscriptions","organizations_url":"https://api.github.com/users/DaniilSNikulin/orgs","repos_url":"https://api.github.com/users/DaniilSNikulin/repos","events_url":"https://api.github.com/users/DaniilSNikulin/events{/privacy}","received_events_url":"https://api.github.com/users/DaniilSNikulin/received_events","type":"User","site_admin":false},"repo":{"id":123491063,"name":"soft_design","full_name":"DaniilSNikulin/soft_design","owner":{"login":"DaniilSNikulin","id":31708320,"avatar_url":"https://avatars2.githubusercontent.com/u/31708320?v=4","gravatar_id":"","url":"https://api.github.com/users/DaniilSNikulin","html_url":"https://github.com/DaniilSNikulin","followers_url":"https://api.github.com/users/DaniilSNikulin/followers","following_url":"https://api.github.com/users/DaniilSNikulin/following{/other_user}","gists_url":"https://api.github.com/users/DaniilSNikulin/gists{/gist_id}","starred_url":"https://api.github.com/users/DaniilSNikulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaniilSNikulin/subscriptions","organizations_url":"https://api.github.com/users/DaniilSNikulin/orgs","repos_url":"https://api.github.com/users/DaniilSNikulin/repos","events_url":"https://api.github.com/users/DaniilSNikulin/events{/privacy}","received_events_url":"https://api.github.com/users/DaniilSNikulin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DaniilSNikulin/soft_design","description":"au study repository","fork":false,"url":"https://api.github.com/repos/DaniilSNikulin/soft_design","forks_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/forks","keys_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/teams","hooks_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/hooks","issue_events_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/issues/events{/number}","events_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/events","assignees_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/assignees{/user}","branches_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/branches{/branch}","tags_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/tags","blobs_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/git/refs{/sha}","trees_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/statuses/{sha}","languages_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/languages","stargazers_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/stargazers","contributors_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/contributors","subscribers_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/subscribers","subscription_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/subscription","commits_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/commits{/sha}","git_commits_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/git/commits{/sha}","comments_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/comments{/number}","issue_comment_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/issues/comments{/number}","contents_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/contents/{+path}","compare_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/merges","archive_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/downloads","issues_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/issues{/number}","pulls_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/pulls{/number}","milestones_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/milestones{/number}","notifications_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/labels{/name}","releases_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/releases{/id}","deployments_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/deployments","created_at":"2018-03-01T20:52:49Z","updated_at":"2018-05-26T15:40:49Z","pushed_at":"2018-05-26T15:40:49Z","git_url":"git://github.com/DaniilSNikulin/soft_design.git","ssh_url":"git@github.com:DaniilSNikulin/soft_design.git","clone_url":"https://github.com/DaniilSNikulin/soft_design.git","svn_url":"https://github.com/DaniilSNikulin/soft_design","homepage":null,"size":597,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":0,"default_branch":"nikdan_debug"}},"base":{"label":"DaniilSNikulin:nikdan_debug","ref":"nikdan_debug","sha":"49ffafc9a8f82cd440e8a9d089dac0ffeb16f0fe","user":{"login":"DaniilSNikulin","id":31708320,"avatar_url":"https://avatars2.githubusercontent.com/u/31708320?v=4","gravatar_id":"","url":"https://api.github.com/users/DaniilSNikulin","html_url":"https://github.com/DaniilSNikulin","followers_url":"https://api.github.com/users/DaniilSNikulin/followers","following_url":"https://api.github.com/users/DaniilSNikulin/following{/other_user}","gists_url":"https://api.github.com/users/DaniilSNikulin/gists{/gist_id}","starred_url":"https://api.github.com/users/DaniilSNikulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaniilSNikulin/subscriptions","organizations_url":"https://api.github.com/users/DaniilSNikulin/orgs","repos_url":"https://api.github.com/users/DaniilSNikulin/repos","events_url":"https://api.github.com/users/DaniilSNikulin/events{/privacy}","received_events_url":"https://api.github.com/users/DaniilSNikulin/received_events","type":"User","site_admin":false},"repo":{"id":123491063,"name":"soft_design","full_name":"DaniilSNikulin/soft_design","owner":{"login":"DaniilSNikulin","id":31708320,"avatar_url":"https://avatars2.githubusercontent.com/u/31708320?v=4","gravatar_id":"","url":"https://api.github.com/users/DaniilSNikulin","html_url":"https://github.com/DaniilSNikulin","followers_url":"https://api.github.com/users/DaniilSNikulin/followers","following_url":"https://api.github.com/users/DaniilSNikulin/following{/other_user}","gists_url":"https://api.github.com/users/DaniilSNikulin/gists{/gist_id}","starred_url":"https://api.github.com/users/DaniilSNikulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DaniilSNikulin/subscriptions","organizations_url":"https://api.github.com/users/DaniilSNikulin/orgs","repos_url":"https://api.github.com/users/DaniilSNikulin/repos","events_url":"https://api.github.com/users/DaniilSNikulin/events{/privacy}","received_events_url":"https://api.github.com/users/DaniilSNikulin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DaniilSNikulin/soft_design","description":"au study repository","fork":false,"url":"https://api.github.com/repos/DaniilSNikulin/soft_design","forks_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/forks","keys_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/teams","hooks_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/hooks","issue_events_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/issues/events{/number}","events_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/events","assignees_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/assignees{/user}","branches_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/branches{/branch}","tags_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/tags","blobs_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/git/refs{/sha}","trees_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/statuses/{sha}","languages_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/languages","stargazers_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/stargazers","contributors_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/contributors","subscribers_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/subscribers","subscription_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/subscription","commits_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/commits{/sha}","git_commits_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/git/commits{/sha}","comments_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/comments{/number}","issue_comment_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/issues/comments{/number}","contents_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/contents/{+path}","compare_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/merges","archive_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/downloads","issues_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/issues{/number}","pulls_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/pulls{/number}","milestones_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/milestones{/number}","notifications_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/labels{/name}","releases_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/releases{/id}","deployments_url":"https://api.github.com/repos/DaniilSNikulin/soft_design/deployments","created_at":"2018-03-01T20:52:49Z","updated_at":"2018-05-26T15:40:49Z","pushed_at":"2018-05-26T15:40:49Z","git_url":"git://github.com/DaniilSNikulin/soft_design.git","ssh_url":"git@github.com:DaniilSNikulin/soft_design.git","clone_url":"https://github.com/DaniilSNikulin/soft_design.git","svn_url":"https://github.com/DaniilSNikulin/soft_design","homepage":null,"size":597,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":1,"open_issues":3,"watchers":0,"default_branch":"nikdan_debug"}},"_links":{"self":{"href":"https://api.github.com/repos/DaniilSNikulin/soft_design/pulls/3"},"html":{"href":"https://github.com/DaniilSNikulin/soft_design/pull/3"},"issue":{"href":"https://api.github.com/repos/DaniilSNikulin/soft_design/issues/3"},"comments":{"href":"https://api.github.com/repos/DaniilSNikulin/soft_design/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/DaniilSNikulin/soft_design/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/DaniilSNikulin/soft_design/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DaniilSNikulin/soft_design/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/DaniilSNikulin/soft_design/statuses/998fe1764d57cd9a1d132a5507fe1f53fec713b3"}},"author_association":"OWNER"}}
{"actor":{"display_login":"yurii-litvinov"}}