{"action":"created","comment":{"url":"https://api.github.com/repos/mcollina/pino/pulls/comments/66962608","id":66962608,"diff_hunk":"@@ -0,0 +1,131 @@\n+'use strict'\n+\n+var test = require('tap').test\n+var os = require('os')\n+var writeStream = require('flush-write-stream')\n+var spawn = require('child_process').spawn\n+\n+if (process.version.indexOf('v0.10') >= 0) {\n+  require('tap').comment('skipped because of node v0.10')\n+  process.exit(0)\n+}\n+\n+test('extreme mode', function (t) {\n+  var now = Date.now\n+  var hostname = os.hostname\n+  var proc = process\n+  global.process = {\n+    __proto__: process,\n+    pid: 123456\n+  }\n+  Date.now = function () {\n+    return 1459875739796\n+  }\n+  os.hostname = function () {\n+    return 'abcdefghijklmnopqr'\n+  }\n+  delete require.cache[require.resolve('../')]\n+  var pino = require('../')\n+  var expected = ''\n+  var actual = ''\n+  var normal = pino(writeStream(function (s, enc, cb) {\n+    expected += s\n+    cb()\n+  }))\n+\n+  var extreme = pino({extreme: true}, writeStream(function (s, enc, cb) {\n+    actual += s\n+    cb()\n+  }))\n+\n+  var i = 44\n+  while (i--) {\n+    normal.info('h')\n+    extreme.info('h')\n+  }\n+\n+  var expected2 = expected.split('\\n')[0]\n+  var actual2 = ''\n+\n+  var e = 'global.process = { __proto__: process,  pid: 123456};Date.now = function () { return 1459875739796;};require(\"os\").hostname = function () { return \"abcdefghijklmnopqr\";};var pino = require(\"./\");var extreme = pino({extreme: true});extreme.info(\"h\")'","path":"test/extreme.test.js","position":50,"original_position":50,"commit_id":"a6ea26e989313b1d06cfd28fd8d54a1646b5f770","original_commit_id":"a6ea26e989313b1d06cfd28fd8d54a1646b5f770","user":{"login":"davidmarkclements","id":1190716,"avatar_url":"https://avatars.githubusercontent.com/u/1190716?v=3","gravatar_id":"","url":"https://api.github.com/users/davidmarkclements","html_url":"https://github.com/davidmarkclements","followers_url":"https://api.github.com/users/davidmarkclements/followers","following_url":"https://api.github.com/users/davidmarkclements/following{/other_user}","gists_url":"https://api.github.com/users/davidmarkclements/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmarkclements/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmarkclements/subscriptions","organizations_url":"https://api.github.com/users/davidmarkclements/orgs","repos_url":"https://api.github.com/users/davidmarkclements/repos","events_url":"https://api.github.com/users/davidmarkclements/events{/privacy}","received_events_url":"https://api.github.com/users/davidmarkclements/received_events","type":"User","site_admin":false},"body":"I know I actually added this in the first place, but since we're refactoring maybe we should clean this line up no the col width, i.e.\r\n\r\n```\r\nvar e = 'global.process = {',\r\n  '__proto__: process',\r\n  'pid: 123456',\r\n  '}',\r\n  ....etc,\r\n  ].join('')\r\n```","created_at":"2016-06-14T12:49:34Z","updated_at":"2016-06-14T12:49:34Z","html_url":"https://github.com/mcollina/pino/pull/56#discussion_r66962608","pull_request_url":"https://api.github.com/repos/mcollina/pino/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/mcollina/pino/pulls/comments/66962608"},"html":{"href":"https://github.com/mcollina/pino/pull/56#discussion_r66962608"},"pull_request":{"href":"https://api.github.com/repos/mcollina/pino/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/mcollina/pino/pulls/56","id":73619999,"html_url":"https://github.com/mcollina/pino/pull/56","diff_url":"https://github.com/mcollina/pino/pull/56.diff","patch_url":"https://github.com/mcollina/pino/pull/56.patch","issue_url":"https://api.github.com/repos/mcollina/pino/issues/56","number":56,"state":"open","locked":false,"title":"Test refactoring","user":{"login":"mcollina","id":52195,"avatar_url":"https://avatars.githubusercontent.com/u/52195?v=3","gravatar_id":"","url":"https://api.github.com/users/mcollina","html_url":"https://github.com/mcollina","followers_url":"https://api.github.com/users/mcollina/followers","following_url":"https://api.github.com/users/mcollina/following{/other_user}","gists_url":"https://api.github.com/users/mcollina/gists{/gist_id}","starred_url":"https://api.github.com/users/mcollina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcollina/subscriptions","organizations_url":"https://api.github.com/users/mcollina/orgs","repos_url":"https://api.github.com/users/mcollina/repos","events_url":"https://api.github.com/users/mcollina/events{/privacy}","received_events_url":"https://api.github.com/users/mcollina/received_events","type":"User","site_admin":false},"body":"I've splitted the big `test.js` into a multiple files, and added code coverage reports with coveralls.","created_at":"2016-06-13T18:19:48Z","updated_at":"2016-06-14T12:49:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff7f4f0a7bc76da8a93773d4e6beb31b6b45c09c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mcollina/pino/pulls/56/commits","review_comments_url":"https://api.github.com/repos/mcollina/pino/pulls/56/comments","review_comment_url":"https://api.github.com/repos/mcollina/pino/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mcollina/pino/issues/56/comments","statuses_url":"https://api.github.com/repos/mcollina/pino/statuses/a6ea26e989313b1d06cfd28fd8d54a1646b5f770","head":{"label":"mcollina:test-refactoring","ref":"test-refactoring","sha":"a6ea26e989313b1d06cfd28fd8d54a1646b5f770","user":{"login":"mcollina","id":52195,"avatar_url":"https://avatars.githubusercontent.com/u/52195?v=3","gravatar_id":"","url":"https://api.github.com/users/mcollina","html_url":"https://github.com/mcollina","followers_url":"https://api.github.com/users/mcollina/followers","following_url":"https://api.github.com/users/mcollina/following{/other_user}","gists_url":"https://api.github.com/users/mcollina/gists{/gist_id}","starred_url":"https://api.github.com/users/mcollina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcollina/subscriptions","organizations_url":"https://api.github.com/users/mcollina/orgs","repos_url":"https://api.github.com/users/mcollina/repos","events_url":"https://api.github.com/users/mcollina/events{/privacy}","received_events_url":"https://api.github.com/users/mcollina/received_events","type":"User","site_admin":false},"repo":{"id":51840802,"name":"pino","full_name":"mcollina/pino","owner":{"login":"mcollina","id":52195,"avatar_url":"https://avatars.githubusercontent.com/u/52195?v=3","gravatar_id":"","url":"https://api.github.com/users/mcollina","html_url":"https://github.com/mcollina","followers_url":"https://api.github.com/users/mcollina/followers","following_url":"https://api.github.com/users/mcollina/following{/other_user}","gists_url":"https://api.github.com/users/mcollina/gists{/gist_id}","starred_url":"https://api.github.com/users/mcollina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcollina/subscriptions","organizations_url":"https://api.github.com/users/mcollina/orgs","repos_url":"https://api.github.com/users/mcollina/repos","events_url":"https://api.github.com/users/mcollina/events{/privacy}","received_events_url":"https://api.github.com/users/mcollina/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mcollina/pino","description":"fast and simple node.js logger","fork":false,"url":"https://api.github.com/repos/mcollina/pino","forks_url":"https://api.github.com/repos/mcollina/pino/forks","keys_url":"https://api.github.com/repos/mcollina/pino/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mcollina/pino/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mcollina/pino/teams","hooks_url":"https://api.github.com/repos/mcollina/pino/hooks","issue_events_url":"https://api.github.com/repos/mcollina/pino/issues/events{/number}","events_url":"https://api.github.com/repos/mcollina/pino/events","assignees_url":"https://api.github.com/repos/mcollina/pino/assignees{/user}","branches_url":"https://api.github.com/repos/mcollina/pino/branches{/branch}","tags_url":"https://api.github.com/repos/mcollina/pino/tags","blobs_url":"https://api.github.com/repos/mcollina/pino/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mcollina/pino/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mcollina/pino/git/refs{/sha}","trees_url":"https://api.github.com/repos/mcollina/pino/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mcollina/pino/statuses/{sha}","languages_url":"https://api.github.com/repos/mcollina/pino/languages","stargazers_url":"https://api.github.com/repos/mcollina/pino/stargazers","contributors_url":"https://api.github.com/repos/mcollina/pino/contributors","subscribers_url":"https://api.github.com/repos/mcollina/pino/subscribers","subscription_url":"https://api.github.com/repos/mcollina/pino/subscription","commits_url":"https://api.github.com/repos/mcollina/pino/commits{/sha}","git_commits_url":"https://api.github.com/repos/mcollina/pino/git/commits{/sha}","comments_url":"https://api.github.com/repos/mcollina/pino/comments{/number}","issue_comment_url":"https://api.github.com/repos/mcollina/pino/issues/comments{/number}","contents_url":"https://api.github.com/repos/mcollina/pino/contents/{+path}","compare_url":"https://api.github.com/repos/mcollina/pino/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mcollina/pino/merges","archive_url":"https://api.github.com/repos/mcollina/pino/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mcollina/pino/downloads","issues_url":"https://api.github.com/repos/mcollina/pino/issues{/number}","pulls_url":"https://api.github.com/repos/mcollina/pino/pulls{/number}","milestones_url":"https://api.github.com/repos/mcollina/pino/milestones{/number}","notifications_url":"https://api.github.com/repos/mcollina/pino/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mcollina/pino/labels{/name}","releases_url":"https://api.github.com/repos/mcollina/pino/releases{/id}","deployments_url":"https://api.github.com/repos/mcollina/pino/deployments","created_at":"2016-02-16T14:14:29Z","updated_at":"2016-06-13T22:59:40Z","pushed_at":"2016-06-13T18:51:08Z","git_url":"git://github.com/mcollina/pino.git","ssh_url":"git@github.com:mcollina/pino.git","clone_url":"https://github.com/mcollina/pino.git","svn_url":"https://github.com/mcollina/pino","homepage":"","size":702,"stargazers_count":164,"watchers_count":164,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":7,"forks":11,"open_issues":7,"watchers":164,"default_branch":"master"}},"base":{"label":"mcollina:master","ref":"master","sha":"d286e79e15062e9f741424e85a26123a7e055633","user":{"login":"mcollina","id":52195,"avatar_url":"https://avatars.githubusercontent.com/u/52195?v=3","gravatar_id":"","url":"https://api.github.com/users/mcollina","html_url":"https://github.com/mcollina","followers_url":"https://api.github.com/users/mcollina/followers","following_url":"https://api.github.com/users/mcollina/following{/other_user}","gists_url":"https://api.github.com/users/mcollina/gists{/gist_id}","starred_url":"https://api.github.com/users/mcollina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcollina/subscriptions","organizations_url":"https://api.github.com/users/mcollina/orgs","repos_url":"https://api.github.com/users/mcollina/repos","events_url":"https://api.github.com/users/mcollina/events{/privacy}","received_events_url":"https://api.github.com/users/mcollina/received_events","type":"User","site_admin":false},"repo":{"id":51840802,"name":"pino","full_name":"mcollina/pino","owner":{"login":"mcollina","id":52195,"avatar_url":"https://avatars.githubusercontent.com/u/52195?v=3","gravatar_id":"","url":"https://api.github.com/users/mcollina","html_url":"https://github.com/mcollina","followers_url":"https://api.github.com/users/mcollina/followers","following_url":"https://api.github.com/users/mcollina/following{/other_user}","gists_url":"https://api.github.com/users/mcollina/gists{/gist_id}","starred_url":"https://api.github.com/users/mcollina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcollina/subscriptions","organizations_url":"https://api.github.com/users/mcollina/orgs","repos_url":"https://api.github.com/users/mcollina/repos","events_url":"https://api.github.com/users/mcollina/events{/privacy}","received_events_url":"https://api.github.com/users/mcollina/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mcollina/pino","description":"fast and simple node.js logger","fork":false,"url":"https://api.github.com/repos/mcollina/pino","forks_url":"https://api.github.com/repos/mcollina/pino/forks","keys_url":"https://api.github.com/repos/mcollina/pino/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mcollina/pino/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mcollina/pino/teams","hooks_url":"https://api.github.com/repos/mcollina/pino/hooks","issue_events_url":"https://api.github.com/repos/mcollina/pino/issues/events{/number}","events_url":"https://api.github.com/repos/mcollina/pino/events","assignees_url":"https://api.github.com/repos/mcollina/pino/assignees{/user}","branches_url":"https://api.github.com/repos/mcollina/pino/branches{/branch}","tags_url":"https://api.github.com/repos/mcollina/pino/tags","blobs_url":"https://api.github.com/repos/mcollina/pino/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mcollina/pino/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mcollina/pino/git/refs{/sha}","trees_url":"https://api.github.com/repos/mcollina/pino/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mcollina/pino/statuses/{sha}","languages_url":"https://api.github.com/repos/mcollina/pino/languages","stargazers_url":"https://api.github.com/repos/mcollina/pino/stargazers","contributors_url":"https://api.github.com/repos/mcollina/pino/contributors","subscribers_url":"https://api.github.com/repos/mcollina/pino/subscribers","subscription_url":"https://api.github.com/repos/mcollina/pino/subscription","commits_url":"https://api.github.com/repos/mcollina/pino/commits{/sha}","git_commits_url":"https://api.github.com/repos/mcollina/pino/git/commits{/sha}","comments_url":"https://api.github.com/repos/mcollina/pino/comments{/number}","issue_comment_url":"https://api.github.com/repos/mcollina/pino/issues/comments{/number}","contents_url":"https://api.github.com/repos/mcollina/pino/contents/{+path}","compare_url":"https://api.github.com/repos/mcollina/pino/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mcollina/pino/merges","archive_url":"https://api.github.com/repos/mcollina/pino/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mcollina/pino/downloads","issues_url":"https://api.github.com/repos/mcollina/pino/issues{/number}","pulls_url":"https://api.github.com/repos/mcollina/pino/pulls{/number}","milestones_url":"https://api.github.com/repos/mcollina/pino/milestones{/number}","notifications_url":"https://api.github.com/repos/mcollina/pino/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mcollina/pino/labels{/name}","releases_url":"https://api.github.com/repos/mcollina/pino/releases{/id}","deployments_url":"https://api.github.com/repos/mcollina/pino/deployments","created_at":"2016-02-16T14:14:29Z","updated_at":"2016-06-13T22:59:40Z","pushed_at":"2016-06-13T18:51:08Z","git_url":"git://github.com/mcollina/pino.git","ssh_url":"git@github.com:mcollina/pino.git","clone_url":"https://github.com/mcollina/pino.git","svn_url":"https://github.com/mcollina/pino","homepage":"","size":702,"stargazers_count":164,"watchers_count":164,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":7,"forks":11,"open_issues":7,"watchers":164,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mcollina/pino/pulls/56"},"html":{"href":"https://github.com/mcollina/pino/pull/56"},"issue":{"href":"https://api.github.com/repos/mcollina/pino/issues/56"},"comments":{"href":"https://api.github.com/repos/mcollina/pino/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/mcollina/pino/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/mcollina/pino/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mcollina/pino/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/mcollina/pino/statuses/a6ea26e989313b1d06cfd28fd8d54a1646b5f770"}}}}
{"actor":{"display_login":"davidmarkclements"}}