{"action":"created","comment":{"url":"https://api.github.com/repos/btcsuite/btcwallet/pulls/comments/28687532","id":28687532,"diff_hunk":"@@ -1019,38 +1019,64 @@ func testImportScript(tc *testContext) bool {\n \n // testMarkUsed ensures used addresses are flagged as such.\n func testMarkUsed(tc *testContext) bool {\n-\texpectedAddr1 := expectedAddr{\n-\t\taddressHash: hexToBytes(\"2ef94abb9ee8f785d087c3ec8d6ee467e92d0d0a\"),\n-\t\tused:        true,\n+\ttests := []struct {\n+\t\tname       string\n+\t\taddrType   btcutil.Address","path":"waddrmgr/manager_test.go","position":231,"original_position":9,"commit_id":"3aad0b822c2014688570301633658021cdd29398","original_commit_id":"51bd2afa360e80c9d1d7024eb5ae60c9024f89ed","user":{"login":"tuxcanfly","id":132667,"avatar_url":"https://avatars.githubusercontent.com/u/132667?v=3","gravatar_id":"","url":"https://api.github.com/users/tuxcanfly","html_url":"https://github.com/tuxcanfly","followers_url":"https://api.github.com/users/tuxcanfly/followers","following_url":"https://api.github.com/users/tuxcanfly/following{/other_user}","gists_url":"https://api.github.com/users/tuxcanfly/gists{/gist_id}","starred_url":"https://api.github.com/users/tuxcanfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuxcanfly/subscriptions","organizations_url":"https://api.github.com/users/tuxcanfly/orgs","repos_url":"https://api.github.com/users/tuxcanfly/repos","events_url":"https://api.github.com/users/tuxcanfly/events{/privacy}","received_events_url":"https://api.github.com/users/tuxcanfly/received_events","type":"User","site_admin":false},"body":"I'm using this field now, to switch between `managedAddress` and `scriptAddress` so that both paths are covered in the test cases.","created_at":"2015-04-20T13:27:40Z","updated_at":"2015-04-20T13:27:40Z","html_url":"https://github.com/btcsuite/btcwallet/pull/239#discussion_r28687532","pull_request_url":"https://api.github.com/repos/btcsuite/btcwallet/pulls/239","_links":{"self":{"href":"https://api.github.com/repos/btcsuite/btcwallet/pulls/comments/28687532"},"html":{"href":"https://github.com/btcsuite/btcwallet/pull/239#discussion_r28687532"},"pull_request":{"href":"https://api.github.com/repos/btcsuite/btcwallet/pulls/239"}}},"pull_request":{"url":"https://api.github.com/repos/btcsuite/btcwallet/pulls/239","id":33106098,"html_url":"https://github.com/btcsuite/btcwallet/pull/239","diff_url":"https://github.com/btcsuite/btcwallet/pull/239.diff","patch_url":"https://github.com/btcsuite/btcwallet/pull/239.patch","issue_url":"https://api.github.com/repos/btcsuite/btcwallet/issues/239","number":239,"state":"open","locked":false,"title":"Improve account related test coverage","user":{"login":"tuxcanfly","id":132667,"avatar_url":"https://avatars.githubusercontent.com/u/132667?v=3","gravatar_id":"","url":"https://api.github.com/users/tuxcanfly","html_url":"https://github.com/tuxcanfly","followers_url":"https://api.github.com/users/tuxcanfly/followers","following_url":"https://api.github.com/users/tuxcanfly/following{/other_user}","gists_url":"https://api.github.com/users/tuxcanfly/gists{/gist_id}","starred_url":"https://api.github.com/users/tuxcanfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuxcanfly/subscriptions","organizations_url":"https://api.github.com/users/tuxcanfly/orgs","repos_url":"https://api.github.com/users/tuxcanfly/repos","events_url":"https://api.github.com/users/tuxcanfly/events{/privacy}","received_events_url":"https://api.github.com/users/tuxcanfly/received_events","type":"User","site_admin":false},"body":"Added test coverage for account related manager funcs.","created_at":"2015-04-11T16:48:40Z","updated_at":"2015-04-20T13:27:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7c423017d291ae809fcab7befe79d5eebefa07eb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/btcsuite/btcwallet/pulls/239/commits","review_comments_url":"https://api.github.com/repos/btcsuite/btcwallet/pulls/239/comments","review_comment_url":"https://api.github.com/repos/btcsuite/btcwallet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/btcsuite/btcwallet/issues/239/comments","statuses_url":"https://api.github.com/repos/btcsuite/btcwallet/statuses/3aad0b822c2014688570301633658021cdd29398","head":{"label":"tuxcanfly:accounts-coverage","ref":"accounts-coverage","sha":"3aad0b822c2014688570301633658021cdd29398","user":{"login":"tuxcanfly","id":132667,"avatar_url":"https://avatars.githubusercontent.com/u/132667?v=3","gravatar_id":"","url":"https://api.github.com/users/tuxcanfly","html_url":"https://github.com/tuxcanfly","followers_url":"https://api.github.com/users/tuxcanfly/followers","following_url":"https://api.github.com/users/tuxcanfly/following{/other_user}","gists_url":"https://api.github.com/users/tuxcanfly/gists{/gist_id}","starred_url":"https://api.github.com/users/tuxcanfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuxcanfly/subscriptions","organizations_url":"https://api.github.com/users/tuxcanfly/orgs","repos_url":"https://api.github.com/users/tuxcanfly/repos","events_url":"https://api.github.com/users/tuxcanfly/events{/privacy}","received_events_url":"https://api.github.com/users/tuxcanfly/received_events","type":"User","site_admin":false},"repo":{"id":21453162,"name":"btcwallet","full_name":"tuxcanfly/btcwallet","owner":{"login":"tuxcanfly","id":132667,"avatar_url":"https://avatars.githubusercontent.com/u/132667?v=3","gravatar_id":"","url":"https://api.github.com/users/tuxcanfly","html_url":"https://github.com/tuxcanfly","followers_url":"https://api.github.com/users/tuxcanfly/followers","following_url":"https://api.github.com/users/tuxcanfly/following{/other_user}","gists_url":"https://api.github.com/users/tuxcanfly/gists{/gist_id}","starred_url":"https://api.github.com/users/tuxcanfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuxcanfly/subscriptions","organizations_url":"https://api.github.com/users/tuxcanfly/orgs","repos_url":"https://api.github.com/users/tuxcanfly/repos","events_url":"https://api.github.com/users/tuxcanfly/events{/privacy}","received_events_url":"https://api.github.com/users/tuxcanfly/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tuxcanfly/btcwallet","description":"","fork":true,"url":"https://api.github.com/repos/tuxcanfly/btcwallet","forks_url":"https://api.github.com/repos/tuxcanfly/btcwallet/forks","keys_url":"https://api.github.com/repos/tuxcanfly/btcwallet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tuxcanfly/btcwallet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tuxcanfly/btcwallet/teams","hooks_url":"https://api.github.com/repos/tuxcanfly/btcwallet/hooks","issue_events_url":"https://api.github.com/repos/tuxcanfly/btcwallet/issues/events{/number}","events_url":"https://api.github.com/repos/tuxcanfly/btcwallet/events","assignees_url":"https://api.github.com/repos/tuxcanfly/btcwallet/assignees{/user}","branches_url":"https://api.github.com/repos/tuxcanfly/btcwallet/branches{/branch}","tags_url":"https://api.github.com/repos/tuxcanfly/btcwallet/tags","blobs_url":"https://api.github.com/repos/tuxcanfly/btcwallet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tuxcanfly/btcwallet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tuxcanfly/btcwallet/git/refs{/sha}","trees_url":"https://api.github.com/repos/tuxcanfly/btcwallet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tuxcanfly/btcwallet/statuses/{sha}","languages_url":"https://api.github.com/repos/tuxcanfly/btcwallet/languages","stargazers_url":"https://api.github.com/repos/tuxcanfly/btcwallet/stargazers","contributors_url":"https://api.github.com/repos/tuxcanfly/btcwallet/contributors","subscribers_url":"https://api.github.com/repos/tuxcanfly/btcwallet/subscribers","subscription_url":"https://api.github.com/repos/tuxcanfly/btcwallet/subscription","commits_url":"https://api.github.com/repos/tuxcanfly/btcwallet/commits{/sha}","git_commits_url":"https://api.github.com/repos/tuxcanfly/btcwallet/git/commits{/sha}","comments_url":"https://api.github.com/repos/tuxcanfly/btcwallet/comments{/number}","issue_comment_url":"https://api.github.com/repos/tuxcanfly/btcwallet/issues/comments{/number}","contents_url":"https://api.github.com/repos/tuxcanfly/btcwallet/contents/{+path}","compare_url":"https://api.github.com/repos/tuxcanfly/btcwallet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tuxcanfly/btcwallet/merges","archive_url":"https://api.github.com/repos/tuxcanfly/btcwallet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tuxcanfly/btcwallet/downloads","issues_url":"https://api.github.com/repos/tuxcanfly/btcwallet/issues{/number}","pulls_url":"https://api.github.com/repos/tuxcanfly/btcwallet/pulls{/number}","milestones_url":"https://api.github.com/repos/tuxcanfly/btcwallet/milestones{/number}","notifications_url":"https://api.github.com/repos/tuxcanfly/btcwallet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tuxcanfly/btcwallet/labels{/name}","releases_url":"https://api.github.com/repos/tuxcanfly/btcwallet/releases{/id}","created_at":"2014-07-03T07:10:43Z","updated_at":"2014-07-09T11:38:45Z","pushed_at":"2015-04-20T13:21:51Z","git_url":"git://github.com/tuxcanfly/btcwallet.git","ssh_url":"git@github.com:tuxcanfly/btcwallet.git","clone_url":"https://github.com/tuxcanfly/btcwallet.git","svn_url":"https://github.com/tuxcanfly/btcwallet","homepage":null,"size":4763,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"btcsuite:master","ref":"master","sha":"ab8a155841da2ef4bbe656534fb7d37535b9dded","user":{"login":"btcsuite","id":10235229,"avatar_url":"https://avatars.githubusercontent.com/u/10235229?v=3","gravatar_id":"","url":"https://api.github.com/users/btcsuite","html_url":"https://github.com/btcsuite","followers_url":"https://api.github.com/users/btcsuite/followers","following_url":"https://api.github.com/users/btcsuite/following{/other_user}","gists_url":"https://api.github.com/users/btcsuite/gists{/gist_id}","starred_url":"https://api.github.com/users/btcsuite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btcsuite/subscriptions","organizations_url":"https://api.github.com/users/btcsuite/orgs","repos_url":"https://api.github.com/users/btcsuite/repos","events_url":"https://api.github.com/users/btcsuite/events{/privacy}","received_events_url":"https://api.github.com/users/btcsuite/received_events","type":"Organization","site_admin":false},"repo":{"id":12136863,"name":"btcwallet","full_name":"btcsuite/btcwallet","owner":{"login":"btcsuite","id":10235229,"avatar_url":"https://avatars.githubusercontent.com/u/10235229?v=3","gravatar_id":"","url":"https://api.github.com/users/btcsuite","html_url":"https://github.com/btcsuite","followers_url":"https://api.github.com/users/btcsuite/followers","following_url":"https://api.github.com/users/btcsuite/following{/other_user}","gists_url":"https://api.github.com/users/btcsuite/gists{/gist_id}","starred_url":"https://api.github.com/users/btcsuite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btcsuite/subscriptions","organizations_url":"https://api.github.com/users/btcsuite/orgs","repos_url":"https://api.github.com/users/btcsuite/repos","events_url":"https://api.github.com/users/btcsuite/events{/privacy}","received_events_url":"https://api.github.com/users/btcsuite/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/btcsuite/btcwallet","description":"","fork":false,"url":"https://api.github.com/repos/btcsuite/btcwallet","forks_url":"https://api.github.com/repos/btcsuite/btcwallet/forks","keys_url":"https://api.github.com/repos/btcsuite/btcwallet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/btcsuite/btcwallet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/btcsuite/btcwallet/teams","hooks_url":"https://api.github.com/repos/btcsuite/btcwallet/hooks","issue_events_url":"https://api.github.com/repos/btcsuite/btcwallet/issues/events{/number}","events_url":"https://api.github.com/repos/btcsuite/btcwallet/events","assignees_url":"https://api.github.com/repos/btcsuite/btcwallet/assignees{/user}","branches_url":"https://api.github.com/repos/btcsuite/btcwallet/branches{/branch}","tags_url":"https://api.github.com/repos/btcsuite/btcwallet/tags","blobs_url":"https://api.github.com/repos/btcsuite/btcwallet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/btcsuite/btcwallet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/btcsuite/btcwallet/git/refs{/sha}","trees_url":"https://api.github.com/repos/btcsuite/btcwallet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/btcsuite/btcwallet/statuses/{sha}","languages_url":"https://api.github.com/repos/btcsuite/btcwallet/languages","stargazers_url":"https://api.github.com/repos/btcsuite/btcwallet/stargazers","contributors_url":"https://api.github.com/repos/btcsuite/btcwallet/contributors","subscribers_url":"https://api.github.com/repos/btcsuite/btcwallet/subscribers","subscription_url":"https://api.github.com/repos/btcsuite/btcwallet/subscription","commits_url":"https://api.github.com/repos/btcsuite/btcwallet/commits{/sha}","git_commits_url":"https://api.github.com/repos/btcsuite/btcwallet/git/commits{/sha}","comments_url":"https://api.github.com/repos/btcsuite/btcwallet/comments{/number}","issue_comment_url":"https://api.github.com/repos/btcsuite/btcwallet/issues/comments{/number}","contents_url":"https://api.github.com/repos/btcsuite/btcwallet/contents/{+path}","compare_url":"https://api.github.com/repos/btcsuite/btcwallet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/btcsuite/btcwallet/merges","archive_url":"https://api.github.com/repos/btcsuite/btcwallet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/btcsuite/btcwallet/downloads","issues_url":"https://api.github.com/repos/btcsuite/btcwallet/issues{/number}","pulls_url":"https://api.github.com/repos/btcsuite/btcwallet/pulls{/number}","milestones_url":"https://api.github.com/repos/btcsuite/btcwallet/milestones{/number}","notifications_url":"https://api.github.com/repos/btcsuite/btcwallet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/btcsuite/btcwallet/labels{/name}","releases_url":"https://api.github.com/repos/btcsuite/btcwallet/releases{/id}","created_at":"2013-08-15T14:53:57Z","updated_at":"2015-04-17T06:42:22Z","pushed_at":"2015-04-20T13:21:51Z","git_url":"git://github.com/btcsuite/btcwallet.git","ssh_url":"git@github.com:btcsuite/btcwallet.git","clone_url":"https://github.com/btcsuite/btcwallet.git","svn_url":"https://github.com/btcsuite/btcwallet","homepage":null,"size":7852,"stargazers_count":64,"watchers_count":64,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":40,"mirror_url":null,"open_issues_count":41,"forks":40,"open_issues":41,"watchers":64,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/btcsuite/btcwallet/pulls/239"},"html":{"href":"https://github.com/btcsuite/btcwallet/pull/239"},"issue":{"href":"https://api.github.com/repos/btcsuite/btcwallet/issues/239"},"comments":{"href":"https://api.github.com/repos/btcsuite/btcwallet/issues/239/comments"},"review_comments":{"href":"https://api.github.com/repos/btcsuite/btcwallet/pulls/239/comments"},"review_comment":{"href":"https://api.github.com/repos/btcsuite/btcwallet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/btcsuite/btcwallet/pulls/239/commits"},"statuses":{"href":"https://api.github.com/repos/btcsuite/btcwallet/statuses/3aad0b822c2014688570301633658021cdd29398"}}}}