{"action":"created","comment":{"url":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments/138261325","pull_request_review_id":62030522,"id":138261325,"diff_hunk":"@@ -1961,6 +1965,390 @@ static void libc_stdio_setvbuf_tc(void)\n #endif\n \n /**\n+* @testcase         libc_stdio_meminstream_tc\n+* @brief            Initializes a stream for use with a fixed-size memory buffer\n+* @scenario         Initializes a stream for use with a fixed-size memory buffer\n+* @apicovered       lib_meminstream\n+* @precondition     NA\n+* @postcondition    NA\n+*/\n+static void libc_stdio_meminstream_tc(void)\n+{\n+\tFAR char buf[BUFLEN];\n+\n+\tstruct lib_meminstream_s meminstream;\n+\n+\tlib_meminstream((FAR struct lib_meminstream_s *)&meminstream, buf, BUFLEN);\n+\tTC_ASSERT_EQ(\"lib_meminstream\", meminstream.buffer, (FAR char *)(buf));\n+\tTC_ASSERT_EQ(\"lib_meminstream\", meminstream.buflen, BUFLEN);\n+\n+\tTC_SUCCESS_RESULT();\n+}\n+\n+/**\n+* @testcase         libc_stdio_memoutstream_tc\n+* @brief            Initializes a stream for use with a fixed-size memory buffer\n+* @scenario         Initializes a stream for use with a fixed-size memory buffer\n+* @apicovered       lib_memoutstream\n+* @precondition     NA\n+* @postcondition    NA\n+*/\n+static void libc_stdio_memoutstream_tc(void)\n+{\n+\tFAR char buf[BUFLEN];\n+\n+\tstruct lib_memoutstream_s memoutstream;\n+\n+\tlib_memoutstream((FAR struct lib_memoutstream_s *)&memoutstream, buf, BUFLEN);\n+\tTC_ASSERT_EQ(\"lib_memoutstream\", memoutstream.buffer, (FAR char *)(buf));\n+\tTC_ASSERT_EQ(\"lib_memoutstream\", memoutstream.buflen, (BUFLEN - 1));\t/* Save space for null terminator, hence checing with (BUFLEN-1)*/\n+\n+\tTC_SUCCESS_RESULT();\n+}\n+\n+/**\n+* @testcase         libc_stdio_memsistream_tc\n+* @brief            Initializes a stream for use with a fixed-size memory buffer\n+* @scenario         Initializes a stream for use with a fixed-size memory buffer\n+* @apicovered       lib_memsistream\n+* @precondition     NA\n+* @postcondition    NA\n+*/\n+static void libc_stdio_memsistream_tc(void)\n+{\n+\tFAR char buf[BUFLEN];\n+\n+\tstruct lib_meminstream_s meminstream;\n+\tstruct lib_memsistream_s memsistream;\n+\n+\tlib_meminstream((FAR struct lib_meminstream_s *)&meminstream, buf, BUFLEN);\n+\tTC_ASSERT_EQ(\"lib_meminstream\", meminstream.buffer, (FAR char *)(buf));\n+\n+\tlib_memsistream((FAR struct lib_memsistream_s *)&memsistream, buf + 2, BUFLEN);\n+\tTC_ASSERT_EQ(\"lib_memsistream\", (memsistream.buffer - (FAR char *)(buf)), 2);","path":"apps/examples/testcase/le_tc/filesystem/fs_main.c","position":90,"original_position":90,"commit_id":"1c013b504ce54e123817ed858d49bda0f1b8d216","original_commit_id":"1c013b504ce54e123817ed858d49bda0f1b8d216","user":{"login":"thapav","id":25978180,"avatar_url":"https://avatars2.githubusercontent.com/u/25978180?v=4","gravatar_id":"","url":"https://api.github.com/users/thapav","html_url":"https://github.com/thapav","followers_url":"https://api.github.com/users/thapav/followers","following_url":"https://api.github.com/users/thapav/following{/other_user}","gists_url":"https://api.github.com/users/thapav/gists{/gist_id}","starred_url":"https://api.github.com/users/thapav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thapav/subscriptions","organizations_url":"https://api.github.com/users/thapav/orgs","repos_url":"https://api.github.com/users/thapav/repos","events_url":"https://api.github.com/users/thapav/events{/privacy}","received_events_url":"https://api.github.com/users/thapav/received_events","type":"User","site_admin":false},"body":"Yes , just to seek through that stream and check if its seeking correctly","created_at":"2017-09-12T06:26:31Z","updated_at":"2017-09-12T06:26:31Z","html_url":"https://github.com/Samsung/TizenRT/pull/562#discussion_r138261325","pull_request_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/562","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments/138261325"},"html":{"href":"https://github.com/Samsung/TizenRT/pull/562#discussion_r138261325"},"pull_request":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/562"}},"in_reply_to_id":138247173},"pull_request":{"url":"https://api.github.com/repos/Samsung/TizenRT/pulls/562","id":140260203,"html_url":"https://github.com/Samsung/TizenRT/pull/562","diff_url":"https://github.com/Samsung/TizenRT/pull/562.diff","patch_url":"https://github.com/Samsung/TizenRT/pull/562.patch","issue_url":"https://api.github.com/repos/Samsung/TizenRT/issues/562","number":562,"state":"open","locked":false,"title":"Codecoverage(libc/stdio): Add TC's for few API's in stdio","user":{"login":"thapav","id":25978180,"avatar_url":"https://avatars2.githubusercontent.com/u/25978180?v=4","gravatar_id":"","url":"https://api.github.com/users/thapav","html_url":"https://github.com/thapav","followers_url":"https://api.github.com/users/thapav/followers","following_url":"https://api.github.com/users/thapav/following{/other_user}","gists_url":"https://api.github.com/users/thapav/gists{/gist_id}","starred_url":"https://api.github.com/users/thapav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thapav/subscriptions","organizations_url":"https://api.github.com/users/thapav/orgs","repos_url":"https://api.github.com/users/thapav/repos","events_url":"https://api.github.com/users/thapav/events{/privacy}","received_events_url":"https://api.github.com/users/thapav/received_events","type":"User","site_admin":false},"body":"This patch adds test cases for stream initialization API's namely:\r\nmemoutstream, meminstream, memsistream, memsostream,\r\nrawinstream, rawoutstream, rawsistream, rawsostream,\r\nstdinstream, stdoutstream, stdsistream, stdsostream\r\nnullinstream, nulloutstream, zeroinstream\r\n\r\nSigned-off-by: Vidisha Thapa <thapa.v@samsung.com>","created_at":"2017-09-11T06:44:46Z","updated_at":"2017-09-12T06:26:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"31d820d62543b86151d18268b227825b250fc6f8","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/562/commits","review_comments_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/562/comments","review_comment_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Samsung/TizenRT/issues/562/comments","statuses_url":"https://api.github.com/repos/Samsung/TizenRT/statuses/1c013b504ce54e123817ed858d49bda0f1b8d216","head":{"label":"thapav:stdioCodeCoverage","ref":"stdioCodeCoverage","sha":"1c013b504ce54e123817ed858d49bda0f1b8d216","user":{"login":"thapav","id":25978180,"avatar_url":"https://avatars2.githubusercontent.com/u/25978180?v=4","gravatar_id":"","url":"https://api.github.com/users/thapav","html_url":"https://github.com/thapav","followers_url":"https://api.github.com/users/thapav/followers","following_url":"https://api.github.com/users/thapav/following{/other_user}","gists_url":"https://api.github.com/users/thapav/gists{/gist_id}","starred_url":"https://api.github.com/users/thapav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thapav/subscriptions","organizations_url":"https://api.github.com/users/thapav/orgs","repos_url":"https://api.github.com/users/thapav/repos","events_url":"https://api.github.com/users/thapav/events{/privacy}","received_events_url":"https://api.github.com/users/thapav/received_events","type":"User","site_admin":false},"repo":{"id":96097845,"name":"TizenRT","full_name":"thapav/TizenRT","owner":{"login":"thapav","id":25978180,"avatar_url":"https://avatars2.githubusercontent.com/u/25978180?v=4","gravatar_id":"","url":"https://api.github.com/users/thapav","html_url":"https://github.com/thapav","followers_url":"https://api.github.com/users/thapav/followers","following_url":"https://api.github.com/users/thapav/following{/other_user}","gists_url":"https://api.github.com/users/thapav/gists{/gist_id}","starred_url":"https://api.github.com/users/thapav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thapav/subscriptions","organizations_url":"https://api.github.com/users/thapav/orgs","repos_url":"https://api.github.com/users/thapav/repos","events_url":"https://api.github.com/users/thapav/events{/privacy}","received_events_url":"https://api.github.com/users/thapav/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thapav/TizenRT","description":"Tizen RT is a lightweight RTOS-based platform to support low-end IoT devices","fork":true,"url":"https://api.github.com/repos/thapav/TizenRT","forks_url":"https://api.github.com/repos/thapav/TizenRT/forks","keys_url":"https://api.github.com/repos/thapav/TizenRT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thapav/TizenRT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thapav/TizenRT/teams","hooks_url":"https://api.github.com/repos/thapav/TizenRT/hooks","issue_events_url":"https://api.github.com/repos/thapav/TizenRT/issues/events{/number}","events_url":"https://api.github.com/repos/thapav/TizenRT/events","assignees_url":"https://api.github.com/repos/thapav/TizenRT/assignees{/user}","branches_url":"https://api.github.com/repos/thapav/TizenRT/branches{/branch}","tags_url":"https://api.github.com/repos/thapav/TizenRT/tags","blobs_url":"https://api.github.com/repos/thapav/TizenRT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thapav/TizenRT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thapav/TizenRT/git/refs{/sha}","trees_url":"https://api.github.com/repos/thapav/TizenRT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thapav/TizenRT/statuses/{sha}","languages_url":"https://api.github.com/repos/thapav/TizenRT/languages","stargazers_url":"https://api.github.com/repos/thapav/TizenRT/stargazers","contributors_url":"https://api.github.com/repos/thapav/TizenRT/contributors","subscribers_url":"https://api.github.com/repos/thapav/TizenRT/subscribers","subscription_url":"https://api.github.com/repos/thapav/TizenRT/subscription","commits_url":"https://api.github.com/repos/thapav/TizenRT/commits{/sha}","git_commits_url":"https://api.github.com/repos/thapav/TizenRT/git/commits{/sha}","comments_url":"https://api.github.com/repos/thapav/TizenRT/comments{/number}","issue_comment_url":"https://api.github.com/repos/thapav/TizenRT/issues/comments{/number}","contents_url":"https://api.github.com/repos/thapav/TizenRT/contents/{+path}","compare_url":"https://api.github.com/repos/thapav/TizenRT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thapav/TizenRT/merges","archive_url":"https://api.github.com/repos/thapav/TizenRT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thapav/TizenRT/downloads","issues_url":"https://api.github.com/repos/thapav/TizenRT/issues{/number}","pulls_url":"https://api.github.com/repos/thapav/TizenRT/pulls{/number}","milestones_url":"https://api.github.com/repos/thapav/TizenRT/milestones{/number}","notifications_url":"https://api.github.com/repos/thapav/TizenRT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thapav/TizenRT/labels{/name}","releases_url":"https://api.github.com/repos/thapav/TizenRT/releases{/id}","deployments_url":"https://api.github.com/repos/thapav/TizenRT/deployments","created_at":"2017-07-03T10:07:20Z","updated_at":"2017-07-03T10:07:37Z","pushed_at":"2017-09-11T13:40:32Z","git_url":"git://github.com/thapav/TizenRT.git","ssh_url":"git@github.com:thapav/TizenRT.git","clone_url":"https://github.com/thapav/TizenRT.git","svn_url":"https://github.com/thapav/TizenRT","homepage":"","size":50077,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"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":"Samsung:master","ref":"master","sha":"9238abc5f7d28579b0a15a8d2a166b7a84fb263b","user":{"login":"Samsung","id":6210390,"avatar_url":"https://avatars3.githubusercontent.com/u/6210390?v=4","gravatar_id":"","url":"https://api.github.com/users/Samsung","html_url":"https://github.com/Samsung","followers_url":"https://api.github.com/users/Samsung/followers","following_url":"https://api.github.com/users/Samsung/following{/other_user}","gists_url":"https://api.github.com/users/Samsung/gists{/gist_id}","starred_url":"https://api.github.com/users/Samsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samsung/subscriptions","organizations_url":"https://api.github.com/users/Samsung/orgs","repos_url":"https://api.github.com/users/Samsung/repos","events_url":"https://api.github.com/users/Samsung/events{/privacy}","received_events_url":"https://api.github.com/users/Samsung/received_events","type":"Organization","site_admin":false},"repo":{"id":82517252,"name":"TizenRT","full_name":"Samsung/TizenRT","owner":{"login":"Samsung","id":6210390,"avatar_url":"https://avatars3.githubusercontent.com/u/6210390?v=4","gravatar_id":"","url":"https://api.github.com/users/Samsung","html_url":"https://github.com/Samsung","followers_url":"https://api.github.com/users/Samsung/followers","following_url":"https://api.github.com/users/Samsung/following{/other_user}","gists_url":"https://api.github.com/users/Samsung/gists{/gist_id}","starred_url":"https://api.github.com/users/Samsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samsung/subscriptions","organizations_url":"https://api.github.com/users/Samsung/orgs","repos_url":"https://api.github.com/users/Samsung/repos","events_url":"https://api.github.com/users/Samsung/events{/privacy}","received_events_url":"https://api.github.com/users/Samsung/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Samsung/TizenRT","description":"Tizen RT is a lightweight RTOS-based platform to support low-end IoT devices","fork":false,"url":"https://api.github.com/repos/Samsung/TizenRT","forks_url":"https://api.github.com/repos/Samsung/TizenRT/forks","keys_url":"https://api.github.com/repos/Samsung/TizenRT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Samsung/TizenRT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Samsung/TizenRT/teams","hooks_url":"https://api.github.com/repos/Samsung/TizenRT/hooks","issue_events_url":"https://api.github.com/repos/Samsung/TizenRT/issues/events{/number}","events_url":"https://api.github.com/repos/Samsung/TizenRT/events","assignees_url":"https://api.github.com/repos/Samsung/TizenRT/assignees{/user}","branches_url":"https://api.github.com/repos/Samsung/TizenRT/branches{/branch}","tags_url":"https://api.github.com/repos/Samsung/TizenRT/tags","blobs_url":"https://api.github.com/repos/Samsung/TizenRT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Samsung/TizenRT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Samsung/TizenRT/git/refs{/sha}","trees_url":"https://api.github.com/repos/Samsung/TizenRT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Samsung/TizenRT/statuses/{sha}","languages_url":"https://api.github.com/repos/Samsung/TizenRT/languages","stargazers_url":"https://api.github.com/repos/Samsung/TizenRT/stargazers","contributors_url":"https://api.github.com/repos/Samsung/TizenRT/contributors","subscribers_url":"https://api.github.com/repos/Samsung/TizenRT/subscribers","subscription_url":"https://api.github.com/repos/Samsung/TizenRT/subscription","commits_url":"https://api.github.com/repos/Samsung/TizenRT/commits{/sha}","git_commits_url":"https://api.github.com/repos/Samsung/TizenRT/git/commits{/sha}","comments_url":"https://api.github.com/repos/Samsung/TizenRT/comments{/number}","issue_comment_url":"https://api.github.com/repos/Samsung/TizenRT/issues/comments{/number}","contents_url":"https://api.github.com/repos/Samsung/TizenRT/contents/{+path}","compare_url":"https://api.github.com/repos/Samsung/TizenRT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Samsung/TizenRT/merges","archive_url":"https://api.github.com/repos/Samsung/TizenRT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Samsung/TizenRT/downloads","issues_url":"https://api.github.com/repos/Samsung/TizenRT/issues{/number}","pulls_url":"https://api.github.com/repos/Samsung/TizenRT/pulls{/number}","milestones_url":"https://api.github.com/repos/Samsung/TizenRT/milestones{/number}","notifications_url":"https://api.github.com/repos/Samsung/TizenRT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Samsung/TizenRT/labels{/name}","releases_url":"https://api.github.com/repos/Samsung/TizenRT/releases{/id}","deployments_url":"https://api.github.com/repos/Samsung/TizenRT/deployments","created_at":"2017-02-20T04:38:30Z","updated_at":"2017-09-08T07:36:21Z","pushed_at":"2017-09-12T05:55:46Z","git_url":"git://github.com/Samsung/TizenRT.git","ssh_url":"git@github.com:Samsung/TizenRT.git","clone_url":"https://github.com/Samsung/TizenRT.git","svn_url":"https://github.com/Samsung/TizenRT","homepage":"","size":50074,"stargazers_count":77,"watchers_count":77,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":90,"mirror_url":null,"open_issues_count":38,"forks":90,"open_issues":38,"watchers":77,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/562"},"html":{"href":"https://github.com/Samsung/TizenRT/pull/562"},"issue":{"href":"https://api.github.com/repos/Samsung/TizenRT/issues/562"},"comments":{"href":"https://api.github.com/repos/Samsung/TizenRT/issues/562/comments"},"review_comments":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/562/comments"},"review_comment":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/562/commits"},"statuses":{"href":"https://api.github.com/repos/Samsung/TizenRT/statuses/1c013b504ce54e123817ed858d49bda0f1b8d216"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"thapav"}}