{"action":"created","comment":{"url":"https://api.github.com/repos/mull-project/mull/pulls/comments/93517447","pull_request_review_id":14047193,"id":93517447,"diff_hunk":"@@ -0,0 +1,61 @@\n+\n+#include \"Result.h\"\n+\n+#include \"llvm/IR/DebugInfo.h\"\n+#include \"llvm/IR/DebugInfoMetadata.h\"\n+#include \"llvm/IR/Function.h\"\n+\n+#include <sstream>\n+#include <string>\n+\n+using namespace Mutang;\n+using namespace llvm;\n+\n+std::vector<std::string> Result::calculateCallerPath(MutationResult *mutationResult) {\n+  Testee *currentTestee = mutationResult->getTestee();\n+\n+  std::vector<std::string> callerPath;\n+\n+  /// Currently we don't print functions, only \"file:line\". Later we will and\n+  /// for that we will have to demangle them.\n+\n+  /// Last path component: mutation point itself.\n+  auto mutationPoint = mutationResult->getMutationPoint();\n+  Instruction *instruction = dyn_cast<Instruction>(mutationPoint->getOriginalValue());\n+  std::string fileName = instruction->getDebugLoc()->getFilename();\n+  std::string line = std::to_string(instruction->getDebugLoc()->getLine());\n+\n+  ///Function *function = instruction->getFunction();\n+  ///assert(function && \"Expected function\");\n+  ///std::string functionName = function->getName().str();\n+\n+  std::stringstream mpComponentAsStream;\n+  mpComponentAsStream << fileName.c_str();\n+  mpComponentAsStream << \":\";\n+  mpComponentAsStream << line.c_str();\n+  std::string mpComponent = mpComponentAsStream.str();\n+\n+  callerPath.push_back(mpComponent);\n+\n+  // The following loop stops on test as it does not have a caller.\n+  do {\n+    Instruction *instruction = currentTestee->getCallerInstruction();\n+\n+    std::string fileName = instruction->getDebugLoc()->getFilename();\n+    std::string line = std::to_string(instruction->getDebugLoc()->getLine());","path":"lib/Result.cpp","position":45,"original_position":45,"commit_id":"a5beb432d85428257f324246540c63b60bc85967","original_commit_id":"a5beb432d85428257f324246540c63b60bc85967","user":{"login":"JDevlieghere","id":712896,"avatar_url":"https://avatars.githubusercontent.com/u/712896?v=3","gravatar_id":"","url":"https://api.github.com/users/JDevlieghere","html_url":"https://github.com/JDevlieghere","followers_url":"https://api.github.com/users/JDevlieghere/followers","following_url":"https://api.github.com/users/JDevlieghere/following{/other_user}","gists_url":"https://api.github.com/users/JDevlieghere/gists{/gist_id}","starred_url":"https://api.github.com/users/JDevlieghere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JDevlieghere/subscriptions","organizations_url":"https://api.github.com/users/JDevlieghere/orgs","repos_url":"https://api.github.com/users/JDevlieghere/repos","events_url":"https://api.github.com/users/JDevlieghere/events{/privacy}","received_events_url":"https://api.github.com/users/JDevlieghere/received_events","type":"User","site_admin":false},"body":"also const.","created_at":"2016-12-21T20:53:22Z","updated_at":"2016-12-21T20:53:22Z","html_url":"https://github.com/mull-project/mull/pull/65#discussion_r93517447","pull_request_url":"https://api.github.com/repos/mull-project/mull/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/mull-project/mull/pulls/comments/93517447"},"html":{"href":"https://github.com/mull-project/mull/pull/65#discussion_r93517447"},"pull_request":{"href":"https://api.github.com/repos/mull-project/mull/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/mull-project/mull/pulls/65","id":98484405,"html_url":"https://github.com/mull-project/mull/pull/65","diff_url":"https://github.com/mull-project/mull/pull/65.diff","patch_url":"https://github.com/mull-project/mull/pull/65.patch","issue_url":"https://api.github.com/repos/mull-project/mull/issues/65","number":65,"state":"open","locked":false,"title":"Preserve testee call paths to make them available later for reporting.","user":{"login":"stanislaw","id":452547,"avatar_url":"https://avatars.githubusercontent.com/u/452547?v=3","gravatar_id":"","url":"https://api.github.com/users/stanislaw","html_url":"https://github.com/stanislaw","followers_url":"https://api.github.com/users/stanislaw/followers","following_url":"https://api.github.com/users/stanislaw/following{/other_user}","gists_url":"https://api.github.com/users/stanislaw/gists{/gist_id}","starred_url":"https://api.github.com/users/stanislaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stanislaw/subscriptions","organizations_url":"https://api.github.com/users/stanislaw/orgs","repos_url":"https://api.github.com/users/stanislaw/repos","events_url":"https://api.github.com/users/stanislaw/events{/privacy}","received_events_url":"https://api.github.com/users/stanislaw/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-18T19:28:30Z","updated_at":"2016-12-21T20:53:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ac959039ff60728d59d8cb8f895e9153e5c0c87","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/mull-project/mull/pulls/65/commits","review_comments_url":"https://api.github.com/repos/mull-project/mull/pulls/65/comments","review_comment_url":"https://api.github.com/repos/mull-project/mull/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mull-project/mull/issues/65/comments","statuses_url":"https://api.github.com/repos/mull-project/mull/statuses/a5beb432d85428257f324246540c63b60bc85967","head":{"label":"mull-project:feature/testee-paths","ref":"feature/testee-paths","sha":"a5beb432d85428257f324246540c63b60bc85967","user":{"login":"mull-project","id":24233780,"avatar_url":"https://avatars.githubusercontent.com/u/24233780?v=3","gravatar_id":"","url":"https://api.github.com/users/mull-project","html_url":"https://github.com/mull-project","followers_url":"https://api.github.com/users/mull-project/followers","following_url":"https://api.github.com/users/mull-project/following{/other_user}","gists_url":"https://api.github.com/users/mull-project/gists{/gist_id}","starred_url":"https://api.github.com/users/mull-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mull-project/subscriptions","organizations_url":"https://api.github.com/users/mull-project/orgs","repos_url":"https://api.github.com/users/mull-project/repos","events_url":"https://api.github.com/users/mull-project/events{/privacy}","received_events_url":"https://api.github.com/users/mull-project/received_events","type":"Organization","site_admin":false},"repo":{"id":58879166,"name":"mull","full_name":"mull-project/mull","owner":{"login":"mull-project","id":24233780,"avatar_url":"https://avatars.githubusercontent.com/u/24233780?v=3","gravatar_id":"","url":"https://api.github.com/users/mull-project","html_url":"https://github.com/mull-project","followers_url":"https://api.github.com/users/mull-project/followers","following_url":"https://api.github.com/users/mull-project/following{/other_user}","gists_url":"https://api.github.com/users/mull-project/gists{/gist_id}","starred_url":"https://api.github.com/users/mull-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mull-project/subscriptions","organizations_url":"https://api.github.com/users/mull-project/orgs","repos_url":"https://api.github.com/users/mull-project/repos","events_url":"https://api.github.com/users/mull-project/events{/privacy}","received_events_url":"https://api.github.com/users/mull-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mull-project/mull","description":"Attempt to build a system for mutation testing on top of LLVM. Work in progress, as always.","fork":false,"url":"https://api.github.com/repos/mull-project/mull","forks_url":"https://api.github.com/repos/mull-project/mull/forks","keys_url":"https://api.github.com/repos/mull-project/mull/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mull-project/mull/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mull-project/mull/teams","hooks_url":"https://api.github.com/repos/mull-project/mull/hooks","issue_events_url":"https://api.github.com/repos/mull-project/mull/issues/events{/number}","events_url":"https://api.github.com/repos/mull-project/mull/events","assignees_url":"https://api.github.com/repos/mull-project/mull/assignees{/user}","branches_url":"https://api.github.com/repos/mull-project/mull/branches{/branch}","tags_url":"https://api.github.com/repos/mull-project/mull/tags","blobs_url":"https://api.github.com/repos/mull-project/mull/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mull-project/mull/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mull-project/mull/git/refs{/sha}","trees_url":"https://api.github.com/repos/mull-project/mull/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mull-project/mull/statuses/{sha}","languages_url":"https://api.github.com/repos/mull-project/mull/languages","stargazers_url":"https://api.github.com/repos/mull-project/mull/stargazers","contributors_url":"https://api.github.com/repos/mull-project/mull/contributors","subscribers_url":"https://api.github.com/repos/mull-project/mull/subscribers","subscription_url":"https://api.github.com/repos/mull-project/mull/subscription","commits_url":"https://api.github.com/repos/mull-project/mull/commits{/sha}","git_commits_url":"https://api.github.com/repos/mull-project/mull/git/commits{/sha}","comments_url":"https://api.github.com/repos/mull-project/mull/comments{/number}","issue_comment_url":"https://api.github.com/repos/mull-project/mull/issues/comments{/number}","contents_url":"https://api.github.com/repos/mull-project/mull/contents/{+path}","compare_url":"https://api.github.com/repos/mull-project/mull/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mull-project/mull/merges","archive_url":"https://api.github.com/repos/mull-project/mull/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mull-project/mull/downloads","issues_url":"https://api.github.com/repos/mull-project/mull/issues{/number}","pulls_url":"https://api.github.com/repos/mull-project/mull/pulls{/number}","milestones_url":"https://api.github.com/repos/mull-project/mull/milestones{/number}","notifications_url":"https://api.github.com/repos/mull-project/mull/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mull-project/mull/labels{/name}","releases_url":"https://api.github.com/repos/mull-project/mull/releases{/id}","deployments_url":"https://api.github.com/repos/mull-project/mull/deployments","created_at":"2016-05-15T19:08:23Z","updated_at":"2016-12-19T19:40:46Z","pushed_at":"2016-12-21T20:44:09Z","git_url":"git://github.com/mull-project/mull.git","ssh_url":"git@github.com:mull-project/mull.git","clone_url":"https://github.com/mull-project/mull.git","svn_url":"https://github.com/mull-project/mull","homepage":"http://lowlevelbits.org/mutation-testing","size":308,"stargazers_count":22,"watchers_count":22,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":16,"forks":2,"open_issues":16,"watchers":22,"default_branch":"master"}},"base":{"label":"mull-project:master","ref":"master","sha":"aad303de126425901561c2cc3bd8f84c581f2738","user":{"login":"mull-project","id":24233780,"avatar_url":"https://avatars.githubusercontent.com/u/24233780?v=3","gravatar_id":"","url":"https://api.github.com/users/mull-project","html_url":"https://github.com/mull-project","followers_url":"https://api.github.com/users/mull-project/followers","following_url":"https://api.github.com/users/mull-project/following{/other_user}","gists_url":"https://api.github.com/users/mull-project/gists{/gist_id}","starred_url":"https://api.github.com/users/mull-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mull-project/subscriptions","organizations_url":"https://api.github.com/users/mull-project/orgs","repos_url":"https://api.github.com/users/mull-project/repos","events_url":"https://api.github.com/users/mull-project/events{/privacy}","received_events_url":"https://api.github.com/users/mull-project/received_events","type":"Organization","site_admin":false},"repo":{"id":58879166,"name":"mull","full_name":"mull-project/mull","owner":{"login":"mull-project","id":24233780,"avatar_url":"https://avatars.githubusercontent.com/u/24233780?v=3","gravatar_id":"","url":"https://api.github.com/users/mull-project","html_url":"https://github.com/mull-project","followers_url":"https://api.github.com/users/mull-project/followers","following_url":"https://api.github.com/users/mull-project/following{/other_user}","gists_url":"https://api.github.com/users/mull-project/gists{/gist_id}","starred_url":"https://api.github.com/users/mull-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mull-project/subscriptions","organizations_url":"https://api.github.com/users/mull-project/orgs","repos_url":"https://api.github.com/users/mull-project/repos","events_url":"https://api.github.com/users/mull-project/events{/privacy}","received_events_url":"https://api.github.com/users/mull-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mull-project/mull","description":"Attempt to build a system for mutation testing on top of LLVM. Work in progress, as always.","fork":false,"url":"https://api.github.com/repos/mull-project/mull","forks_url":"https://api.github.com/repos/mull-project/mull/forks","keys_url":"https://api.github.com/repos/mull-project/mull/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mull-project/mull/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mull-project/mull/teams","hooks_url":"https://api.github.com/repos/mull-project/mull/hooks","issue_events_url":"https://api.github.com/repos/mull-project/mull/issues/events{/number}","events_url":"https://api.github.com/repos/mull-project/mull/events","assignees_url":"https://api.github.com/repos/mull-project/mull/assignees{/user}","branches_url":"https://api.github.com/repos/mull-project/mull/branches{/branch}","tags_url":"https://api.github.com/repos/mull-project/mull/tags","blobs_url":"https://api.github.com/repos/mull-project/mull/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mull-project/mull/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mull-project/mull/git/refs{/sha}","trees_url":"https://api.github.com/repos/mull-project/mull/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mull-project/mull/statuses/{sha}","languages_url":"https://api.github.com/repos/mull-project/mull/languages","stargazers_url":"https://api.github.com/repos/mull-project/mull/stargazers","contributors_url":"https://api.github.com/repos/mull-project/mull/contributors","subscribers_url":"https://api.github.com/repos/mull-project/mull/subscribers","subscription_url":"https://api.github.com/repos/mull-project/mull/subscription","commits_url":"https://api.github.com/repos/mull-project/mull/commits{/sha}","git_commits_url":"https://api.github.com/repos/mull-project/mull/git/commits{/sha}","comments_url":"https://api.github.com/repos/mull-project/mull/comments{/number}","issue_comment_url":"https://api.github.com/repos/mull-project/mull/issues/comments{/number}","contents_url":"https://api.github.com/repos/mull-project/mull/contents/{+path}","compare_url":"https://api.github.com/repos/mull-project/mull/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mull-project/mull/merges","archive_url":"https://api.github.com/repos/mull-project/mull/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mull-project/mull/downloads","issues_url":"https://api.github.com/repos/mull-project/mull/issues{/number}","pulls_url":"https://api.github.com/repos/mull-project/mull/pulls{/number}","milestones_url":"https://api.github.com/repos/mull-project/mull/milestones{/number}","notifications_url":"https://api.github.com/repos/mull-project/mull/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mull-project/mull/labels{/name}","releases_url":"https://api.github.com/repos/mull-project/mull/releases{/id}","deployments_url":"https://api.github.com/repos/mull-project/mull/deployments","created_at":"2016-05-15T19:08:23Z","updated_at":"2016-12-19T19:40:46Z","pushed_at":"2016-12-21T20:44:09Z","git_url":"git://github.com/mull-project/mull.git","ssh_url":"git@github.com:mull-project/mull.git","clone_url":"https://github.com/mull-project/mull.git","svn_url":"https://github.com/mull-project/mull","homepage":"http://lowlevelbits.org/mutation-testing","size":308,"stargazers_count":22,"watchers_count":22,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":16,"forks":2,"open_issues":16,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mull-project/mull/pulls/65"},"html":{"href":"https://github.com/mull-project/mull/pull/65"},"issue":{"href":"https://api.github.com/repos/mull-project/mull/issues/65"},"comments":{"href":"https://api.github.com/repos/mull-project/mull/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/mull-project/mull/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/mull-project/mull/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mull-project/mull/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/mull-project/mull/statuses/a5beb432d85428257f324246540c63b60bc85967"}}}}
{"actor":{"display_login":"JDevlieghere"}}