{"action":"created","issue":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/19785","repository_url":"https://api.github.com/repos/lionheart/openradar-mirror","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/19785/labels{/name}","comments_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/19785/comments","events_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/19785/events","html_url":"https://github.com/lionheart/openradar-mirror/issues/19785","id":327527929,"node_id":"MDU6SXNzdWUzMjc1Mjc5Mjk=","number":19785,"title":"40634109: Xcode 9.3: Incorrect code coverage for Swift functions with do/catch statements","user":{"login":"openradar-mirror","id":13605213,"node_id":"MDQ6VXNlcjEzNjA1MjEz","avatar_url":"https://avatars1.githubusercontent.com/u/13605213?v=4","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"labels":[{"id":243427789,"node_id":"MDU6TGFiZWwyNDM0Mjc3ODk=","url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/classification:other%20bug","name":"classification:other bug","color":"e11d21","default":false},{"id":243427737,"node_id":"MDU6TGFiZWwyNDM0Mjc3Mzc=","url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/reproducible:always","name":"reproducible:always","color":"5319e7","default":false},{"id":951359093,"node_id":"MDU6TGFiZWw5NTEzNTkwOTM=","url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/status:dupe/34244637/open","name":"status:dupe/34244637/open","color":"444444","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/1","html_url":"https://github.com/lionheart/openradar-mirror/milestone/1","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/1/labels","id":1237415,"node_id":"MDk6TWlsZXN0b25lMTIzNzQxNQ==","number":1,"title":"Developer Tools","description":null,"creator":{"login":"openradar-mirror","id":13605213,"node_id":"MDQ6VXNlcjEzNjA1MjEz","avatar_url":"https://avatars1.githubusercontent.com/u/13605213?v=4","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"open_issues":4695,"closed_issues":73,"state":"open","created_at":"2015-08-03T02:08:29Z","updated_at":"2018-06-01T09:02:42Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2018-05-30T00:03:27Z","updated_at":"2018-06-01T10:02:44Z","closed_at":"2018-06-01T09:02:41Z","author_association":"COLLABORATOR","body":"#### Description\n\nSummary:\r\n\r\nCode coverage is reported incorrectly for Swift functions with `do`/`catch` statements inside.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run code coverage against the following function `foo`:\r\n\r\n```\r\npublic func foo<T>(_ value: () throws -> T) -> T? {\r\n    do {\r\n        return try value()\r\n    } catch {\r\n        return nil\r\n    }\r\n}\r\n\r\nXCTAssertEqual(42, foo { 42 })\r\nXCTAssertNil(foo { throw NSError() })\r\n```\r\n\r\n2. Observe the code coverage percentage.\r\n\r\nExpected Results:\r\n\r\nCode coverage of `foo` is 100% because each branch has been hit.\r\n\r\nActual Results:\r\n\r\nCode coverage of `foo` is 85,71%.\n\n-\nProduct Version: Xcode 9.3 (9E145)\nCreated: 2018-05-29T23:47:59.714780\nOriginated: 2018-05-30T00:00:00\nOpen Radar Link: http://www.openradar.me/40634109"},"comment":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/comments/393835068","html_url":"https://github.com/lionheart/openradar-mirror/issues/19785#issuecomment-393835068","issue_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/19785","id":393835068,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzgzNTA2OA==","user":{"login":"openradar-mirror","id":13605213,"node_id":"MDQ6VXNlcjEzNjA1MjEz","avatar_url":"https://avatars1.githubusercontent.com/u/13605213?v=4","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T10:02:44Z","updated_at":"2018-06-01T10:02:44Z","author_association":"COLLABORATOR","body":"Resolved: No\nModified: 2018-06-01T08:11:27.042350"}}
{"actor":{"display_login":"openradar-mirror"}}