{"action":"created","comment":{"url":"https://api.github.com/repos/mbedmicro/pyOCD/pulls/comments/32889358","id":32889358,"diff_hunk":"@@ -18,18 +18,18 @@\n import struct\n import binascii\n \n-## @brief Convert a byte array into a word array.\n-def byte2word(data):\n+## @brief Convert a list of bytes to a list of 32-bit integers (little endian)\n+def byteListToLittleEndianU32List(data):","path":"pyOCD/utility/conversion.py","position":7,"original_position":7,"commit_id":"735a42fad7d8091dac50c1bdf3829a845ee25b60","original_commit_id":"735a42fad7d8091dac50c1bdf3829a845ee25b60","user":{"login":"posborne","id":41714,"avatar_url":"https://avatars.githubusercontent.com/u/41714?v=3","gravatar_id":"","url":"https://api.github.com/users/posborne","html_url":"https://github.com/posborne","followers_url":"https://api.github.com/users/posborne/followers","following_url":"https://api.github.com/users/posborne/following{/other_user}","gists_url":"https://api.github.com/users/posborne/gists{/gist_id}","starred_url":"https://api.github.com/users/posborne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/posborne/subscriptions","organizations_url":"https://api.github.com/users/posborne/orgs","repos_url":"https://api.github.com/users/posborne/repos","events_url":"https://api.github.com/users/posborne/events{/privacy}","received_events_url":"https://api.github.com/users/posborne/received_events","type":"User","site_admin":false},"body":"Will change to be `le`.  Was playing with the names a bit.","created_at":"2015-06-21T00:28:57Z","updated_at":"2015-06-21T00:28:57Z","html_url":"https://github.com/mbedmicro/pyOCD/pull/168#discussion_r32889358","pull_request_url":"https://api.github.com/repos/mbedmicro/pyOCD/pulls/168","_links":{"self":{"href":"https://api.github.com/repos/mbedmicro/pyOCD/pulls/comments/32889358"},"html":{"href":"https://github.com/mbedmicro/pyOCD/pull/168#discussion_r32889358"},"pull_request":{"href":"https://api.github.com/repos/mbedmicro/pyOCD/pulls/168"}}},"pull_request":{"url":"https://api.github.com/repos/mbedmicro/pyOCD/pulls/168","id":38175126,"html_url":"https://github.com/mbedmicro/pyOCD/pull/168","diff_url":"https://github.com/mbedmicro/pyOCD/pull/168.diff","patch_url":"https://github.com/mbedmicro/pyOCD/pull/168.patch","issue_url":"https://api.github.com/repos/mbedmicro/pyOCD/issues/168","number":168,"state":"open","locked":false,"title":"tests: add initial unittests and related infrastructure","user":{"login":"posborne","id":41714,"avatar_url":"https://avatars.githubusercontent.com/u/41714?v=3","gravatar_id":"","url":"https://api.github.com/users/posborne","html_url":"https://github.com/posborne","followers_url":"https://api.github.com/users/posborne/followers","following_url":"https://api.github.com/users/posborne/following{/other_user}","gists_url":"https://api.github.com/users/posborne/gists{/gist_id}","starred_url":"https://api.github.com/users/posborne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/posborne/subscriptions","organizations_url":"https://api.github.com/users/posborne/orgs","repos_url":"https://api.github.com/users/posborne/repos","events_url":"https://api.github.com/users/posborne/events{/privacy}","received_events_url":"https://api.github.com/users/posborne/received_events","type":"User","site_admin":false},"body":"These changes add tests for some functions for the conversion\r\nutilities.  Since some of the names for these functions were\r\nnot very good, those were also updated to be more meaningful.\r\nFinally,  the implementation for intToHex8 was modified to be\r\nmuch simpler (after writing a test that covered the code with\r\nthe existing implementation).\r\n\r\nSigned-off-by: Paul Osborne <osbpau@gmail.com>","created_at":"2015-06-20T22:01:32Z","updated_at":"2015-06-21T00:28:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"650dde5bfdc0d418bac7488f1279429af0eb386b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mbedmicro/pyOCD/pulls/168/commits","review_comments_url":"https://api.github.com/repos/mbedmicro/pyOCD/pulls/168/comments","review_comment_url":"https://api.github.com/repos/mbedmicro/pyOCD/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mbedmicro/pyOCD/issues/168/comments","statuses_url":"https://api.github.com/repos/mbedmicro/pyOCD/statuses/735a42fad7d8091dac50c1bdf3829a845ee25b60","head":{"label":"posborne:unittest-coverage","ref":"unittest-coverage","sha":"735a42fad7d8091dac50c1bdf3829a845ee25b60","user":{"login":"posborne","id":41714,"avatar_url":"https://avatars.githubusercontent.com/u/41714?v=3","gravatar_id":"","url":"https://api.github.com/users/posborne","html_url":"https://github.com/posborne","followers_url":"https://api.github.com/users/posborne/followers","following_url":"https://api.github.com/users/posborne/following{/other_user}","gists_url":"https://api.github.com/users/posborne/gists{/gist_id}","starred_url":"https://api.github.com/users/posborne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/posborne/subscriptions","organizations_url":"https://api.github.com/users/posborne/orgs","repos_url":"https://api.github.com/users/posborne/repos","events_url":"https://api.github.com/users/posborne/events{/privacy}","received_events_url":"https://api.github.com/users/posborne/received_events","type":"User","site_admin":false},"repo":{"id":36619610,"name":"pyOCD","full_name":"posborne/pyOCD","owner":{"login":"posborne","id":41714,"avatar_url":"https://avatars.githubusercontent.com/u/41714?v=3","gravatar_id":"","url":"https://api.github.com/users/posborne","html_url":"https://github.com/posborne","followers_url":"https://api.github.com/users/posborne/followers","following_url":"https://api.github.com/users/posborne/following{/other_user}","gists_url":"https://api.github.com/users/posborne/gists{/gist_id}","starred_url":"https://api.github.com/users/posborne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/posborne/subscriptions","organizations_url":"https://api.github.com/users/posborne/orgs","repos_url":"https://api.github.com/users/posborne/repos","events_url":"https://api.github.com/users/posborne/events{/privacy}","received_events_url":"https://api.github.com/users/posborne/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/posborne/pyOCD","description":"Open source python library for programming and debugging ARM Cortex-M microcontrollers using CMSIS-DAP","fork":true,"url":"https://api.github.com/repos/posborne/pyOCD","forks_url":"https://api.github.com/repos/posborne/pyOCD/forks","keys_url":"https://api.github.com/repos/posborne/pyOCD/keys{/key_id}","collaborators_url":"https://api.github.com/repos/posborne/pyOCD/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/posborne/pyOCD/teams","hooks_url":"https://api.github.com/repos/posborne/pyOCD/hooks","issue_events_url":"https://api.github.com/repos/posborne/pyOCD/issues/events{/number}","events_url":"https://api.github.com/repos/posborne/pyOCD/events","assignees_url":"https://api.github.com/repos/posborne/pyOCD/assignees{/user}","branches_url":"https://api.github.com/repos/posborne/pyOCD/branches{/branch}","tags_url":"https://api.github.com/repos/posborne/pyOCD/tags","blobs_url":"https://api.github.com/repos/posborne/pyOCD/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/posborne/pyOCD/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/posborne/pyOCD/git/refs{/sha}","trees_url":"https://api.github.com/repos/posborne/pyOCD/git/trees{/sha}","statuses_url":"https://api.github.com/repos/posborne/pyOCD/statuses/{sha}","languages_url":"https://api.github.com/repos/posborne/pyOCD/languages","stargazers_url":"https://api.github.com/repos/posborne/pyOCD/stargazers","contributors_url":"https://api.github.com/repos/posborne/pyOCD/contributors","subscribers_url":"https://api.github.com/repos/posborne/pyOCD/subscribers","subscription_url":"https://api.github.com/repos/posborne/pyOCD/subscription","commits_url":"https://api.github.com/repos/posborne/pyOCD/commits{/sha}","git_commits_url":"https://api.github.com/repos/posborne/pyOCD/git/commits{/sha}","comments_url":"https://api.github.com/repos/posborne/pyOCD/comments{/number}","issue_comment_url":"https://api.github.com/repos/posborne/pyOCD/issues/comments{/number}","contents_url":"https://api.github.com/repos/posborne/pyOCD/contents/{+path}","compare_url":"https://api.github.com/repos/posborne/pyOCD/compare/{base}...{head}","merges_url":"https://api.github.com/repos/posborne/pyOCD/merges","archive_url":"https://api.github.com/repos/posborne/pyOCD/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/posborne/pyOCD/downloads","issues_url":"https://api.github.com/repos/posborne/pyOCD/issues{/number}","pulls_url":"https://api.github.com/repos/posborne/pyOCD/pulls{/number}","milestones_url":"https://api.github.com/repos/posborne/pyOCD/milestones{/number}","notifications_url":"https://api.github.com/repos/posborne/pyOCD/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/posborne/pyOCD/labels{/name}","releases_url":"https://api.github.com/repos/posborne/pyOCD/releases{/id}","created_at":"2015-05-31T19:59:30Z","updated_at":"2015-05-31T19:59:30Z","pushed_at":"2015-06-20T22:00:48Z","git_url":"git://github.com/posborne/pyOCD.git","ssh_url":"git@github.com:posborne/pyOCD.git","clone_url":"https://github.com/posborne/pyOCD.git","svn_url":"https://github.com/posborne/pyOCD","homepage":null,"size":995,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"mbedmicro:master","ref":"master","sha":"5ab3729351d524a4ea0f98c5217c2539dbf4fc2e","user":{"login":"mbedmicro","id":3626466,"avatar_url":"https://avatars.githubusercontent.com/u/3626466?v=3","gravatar_id":"","url":"https://api.github.com/users/mbedmicro","html_url":"https://github.com/mbedmicro","followers_url":"https://api.github.com/users/mbedmicro/followers","following_url":"https://api.github.com/users/mbedmicro/following{/other_user}","gists_url":"https://api.github.com/users/mbedmicro/gists{/gist_id}","starred_url":"https://api.github.com/users/mbedmicro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbedmicro/subscriptions","organizations_url":"https://api.github.com/users/mbedmicro/orgs","repos_url":"https://api.github.com/users/mbedmicro/repos","events_url":"https://api.github.com/users/mbedmicro/events{/privacy}","received_events_url":"https://api.github.com/users/mbedmicro/received_events","type":"Organization","site_admin":false},"repo":{"id":13862423,"name":"pyOCD","full_name":"mbedmicro/pyOCD","owner":{"login":"mbedmicro","id":3626466,"avatar_url":"https://avatars.githubusercontent.com/u/3626466?v=3","gravatar_id":"","url":"https://api.github.com/users/mbedmicro","html_url":"https://github.com/mbedmicro","followers_url":"https://api.github.com/users/mbedmicro/followers","following_url":"https://api.github.com/users/mbedmicro/following{/other_user}","gists_url":"https://api.github.com/users/mbedmicro/gists{/gist_id}","starred_url":"https://api.github.com/users/mbedmicro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbedmicro/subscriptions","organizations_url":"https://api.github.com/users/mbedmicro/orgs","repos_url":"https://api.github.com/users/mbedmicro/repos","events_url":"https://api.github.com/users/mbedmicro/events{/privacy}","received_events_url":"https://api.github.com/users/mbedmicro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mbedmicro/pyOCD","description":"Open source python library for programming and debugging ARM Cortex-M microcontrollers using CMSIS-DAP","fork":false,"url":"https://api.github.com/repos/mbedmicro/pyOCD","forks_url":"https://api.github.com/repos/mbedmicro/pyOCD/forks","keys_url":"https://api.github.com/repos/mbedmicro/pyOCD/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mbedmicro/pyOCD/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mbedmicro/pyOCD/teams","hooks_url":"https://api.github.com/repos/mbedmicro/pyOCD/hooks","issue_events_url":"https://api.github.com/repos/mbedmicro/pyOCD/issues/events{/number}","events_url":"https://api.github.com/repos/mbedmicro/pyOCD/events","assignees_url":"https://api.github.com/repos/mbedmicro/pyOCD/assignees{/user}","branches_url":"https://api.github.com/repos/mbedmicro/pyOCD/branches{/branch}","tags_url":"https://api.github.com/repos/mbedmicro/pyOCD/tags","blobs_url":"https://api.github.com/repos/mbedmicro/pyOCD/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mbedmicro/pyOCD/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mbedmicro/pyOCD/git/refs{/sha}","trees_url":"https://api.github.com/repos/mbedmicro/pyOCD/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mbedmicro/pyOCD/statuses/{sha}","languages_url":"https://api.github.com/repos/mbedmicro/pyOCD/languages","stargazers_url":"https://api.github.com/repos/mbedmicro/pyOCD/stargazers","contributors_url":"https://api.github.com/repos/mbedmicro/pyOCD/contributors","subscribers_url":"https://api.github.com/repos/mbedmicro/pyOCD/subscribers","subscription_url":"https://api.github.com/repos/mbedmicro/pyOCD/subscription","commits_url":"https://api.github.com/repos/mbedmicro/pyOCD/commits{/sha}","git_commits_url":"https://api.github.com/repos/mbedmicro/pyOCD/git/commits{/sha}","comments_url":"https://api.github.com/repos/mbedmicro/pyOCD/comments{/number}","issue_comment_url":"https://api.github.com/repos/mbedmicro/pyOCD/issues/comments{/number}","contents_url":"https://api.github.com/repos/mbedmicro/pyOCD/contents/{+path}","compare_url":"https://api.github.com/repos/mbedmicro/pyOCD/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mbedmicro/pyOCD/merges","archive_url":"https://api.github.com/repos/mbedmicro/pyOCD/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mbedmicro/pyOCD/downloads","issues_url":"https://api.github.com/repos/mbedmicro/pyOCD/issues{/number}","pulls_url":"https://api.github.com/repos/mbedmicro/pyOCD/pulls{/number}","milestones_url":"https://api.github.com/repos/mbedmicro/pyOCD/milestones{/number}","notifications_url":"https://api.github.com/repos/mbedmicro/pyOCD/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mbedmicro/pyOCD/labels{/name}","releases_url":"https://api.github.com/repos/mbedmicro/pyOCD/releases{/id}","created_at":"2013-10-25T14:10:05Z","updated_at":"2015-06-10T01:47:38Z","pushed_at":"2015-06-20T22:01:32Z","git_url":"git://github.com/mbedmicro/pyOCD.git","ssh_url":"git@github.com:mbedmicro/pyOCD.git","clone_url":"https://github.com/mbedmicro/pyOCD.git","svn_url":"https://github.com/mbedmicro/pyOCD","homepage":null,"size":1822,"stargazers_count":67,"watchers_count":67,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":63,"mirror_url":null,"open_issues_count":20,"forks":63,"open_issues":20,"watchers":67,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mbedmicro/pyOCD/pulls/168"},"html":{"href":"https://github.com/mbedmicro/pyOCD/pull/168"},"issue":{"href":"https://api.github.com/repos/mbedmicro/pyOCD/issues/168"},"comments":{"href":"https://api.github.com/repos/mbedmicro/pyOCD/issues/168/comments"},"review_comments":{"href":"https://api.github.com/repos/mbedmicro/pyOCD/pulls/168/comments"},"review_comment":{"href":"https://api.github.com/repos/mbedmicro/pyOCD/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mbedmicro/pyOCD/pulls/168/commits"},"statuses":{"href":"https://api.github.com/repos/mbedmicro/pyOCD/statuses/735a42fad7d8091dac50c1bdf3829a845ee25b60"}}}}