{"action":"created","issue":{"url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/issues/612","labels_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/issues/612/labels{/name}","comments_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/issues/612/comments","events_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/issues/612/events","html_url":"https://github.com/nightscout/cgm-remote-monitor/pull/612","id":82343542,"number":612,"title":"initial tests for cob","user":{"login":"jasoncalabrese","id":751143,"avatar_url":"https://avatars.githubusercontent.com/u/751143?v=3","gravatar_id":"","url":"https://api.github.com/users/jasoncalabrese","html_url":"https://github.com/jasoncalabrese","followers_url":"https://api.github.com/users/jasoncalabrese/followers","following_url":"https://api.github.com/users/jasoncalabrese/following{/other_user}","gists_url":"https://api.github.com/users/jasoncalabrese/gists{/gist_id}","starred_url":"https://api.github.com/users/jasoncalabrese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasoncalabrese/subscriptions","organizations_url":"https://api.github.com/users/jasoncalabrese/orgs","repos_url":"https://api.github.com/users/jasoncalabrese/repos","events_url":"https://api.github.com/users/jasoncalabrese/events{/privacy}","received_events_url":"https://api.github.com/users/jasoncalabrese/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-29T09:08:38Z","updated_at":"2015-05-29T09:10:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/pulls/612","html_url":"https://github.com/nightscout/cgm-remote-monitor/pull/612","diff_url":"https://github.com/nightscout/cgm-remote-monitor/pull/612.diff","patch_url":"https://github.com/nightscout/cgm-remote-monitor/pull/612.patch"},"body":"After seeing some strange results for COB I created these simple tests, I think the source of the issue is the way delayed carbs are added back.\r\n\r\n@scottleibrand, hoping can help make sense of this, maybe we should simply the COB logic?\r\n\r\nSee:\r\nhttps://github.com/nightscout/cgm-remote-monitor/blob/wip/test-cob/lib/plugins/cob.js#L113\r\n\r\nPorted from:\r\nhttps://github.com/nightscout/cgm-remote-monitor/blob/wip/iob-cob/static/js/client.js#L1525\r\n\r\nTo test check out the branch, `npm install`; `./node_modules/mocha/bin/_mocha tests/cob.test.js`"},"comment":{"url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/issues/comments/106752325","html_url":"https://github.com/nightscout/cgm-remote-monitor/pull/612#issuecomment-106752325","issue_url":"https://api.github.com/repos/nightscout/cgm-remote-monitor/issues/612","id":106752325,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T09:10:29Z","updated_at":"2015-05-29T09:10:29Z","body":"\n[![Coverage Status](https://coveralls.io/builds/2679412/badge)](https://coveralls.io/builds/2679412)\n\nCoverage increased (+0.48%) to 73.22% when pulling **96b7e438809f27eedbc7b1ad331fdf3d7d898730 on wip/test-cob** into **8d2456b7d009567139ec3d93e51ffe60507eff27 on dev**.\n"}}