{"action":"closed","issue":{"url":"https://api.github.com/repos/golang/go/issues/14039","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/14039/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/14039/comments","events_url":"https://api.github.com/repos/golang/go/issues/14039/events","html_url":"https://github.com/golang/go/issues/14039","id":127679738,"number":14039,"title":"cmd/cover: coverage failed to track lines in function literal","user":{"login":"daviddengcn","id":565744,"avatar_url":"https://avatars.githubusercontent.com/u/565744?v=3","gravatar_id":"","url":"https://api.github.com/users/daviddengcn","html_url":"https://github.com/daviddengcn","followers_url":"https://api.github.com/users/daviddengcn/followers","following_url":"https://api.github.com/users/daviddengcn/following{/other_user}","gists_url":"https://api.github.com/users/daviddengcn/gists{/gist_id}","starred_url":"https://api.github.com/users/daviddengcn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviddengcn/subscriptions","organizations_url":"https://api.github.com/users/daviddengcn/orgs","repos_url":"https://api.github.com/users/daviddengcn/repos","events_url":"https://api.github.com/users/daviddengcn/events{/privacy}","received_events_url":"https://api.github.com/users/daviddengcn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/31","html_url":"https://github.com/golang/go/milestones/Go1.7","labels_url":"https://api.github.com/repos/golang/go/milestones/31/labels","id":1414133,"number":31,"title":"Go1.7","description":"","creator":{"login":"bradfitz","id":2621,"avatar_url":"https://avatars.githubusercontent.com/u/2621?v=3","gravatar_id":"","url":"https://api.github.com/users/bradfitz","html_url":"https://github.com/bradfitz","followers_url":"https://api.github.com/users/bradfitz/followers","following_url":"https://api.github.com/users/bradfitz/following{/other_user}","gists_url":"https://api.github.com/users/bradfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/bradfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradfitz/subscriptions","organizations_url":"https://api.github.com/users/bradfitz/orgs","repos_url":"https://api.github.com/users/bradfitz/repos","events_url":"https://api.github.com/users/bradfitz/events{/privacy}","received_events_url":"https://api.github.com/users/bradfitz/received_events","type":"User","site_admin":false},"open_issues":221,"closed_issues":39,"state":"open","created_at":"2015-11-16T16:57:07Z","updated_at":"2016-02-22T21:07:36Z","due_on":"2016-07-31T07:00:00Z","closed_at":null},"comments":1,"created_at":"2016-01-20T13:15:32Z","updated_at":"2016-02-22T21:07:36Z","closed_at":"2016-02-22T21:07:36Z","body":"Source\r\n=====\r\nThe lines with `fmt.Println(\"not tracked\")` are not tracked.\r\n\r\na.go\r\n```go\r\npackage main\r\n\r\nimport \"fmt\"\r\n\r\nfunc a(f func()) error {\r\n\treturn nil\r\n}\r\n\r\nfunc main() {\r\n\tif err := a(func() {\r\n\t\tfmt.Println(\"not tracked\")\r\n\t\tfmt.Println(\"not tracked\")\r\n\t}); err != nil {\r\n\t\tfmt.Println(err)\r\n\t}\r\n}\r\n```\r\na_test.go\r\n```go\r\npackage main\r\n\r\nimport (\r\n\t\"testing\"\r\n)\r\n\r\nfunc TestA(t *testing.T) {\r\n}\r\n```\r\n\r\n![screen shot 2016-01-20 at 5 14 52 am](https://cloud.githubusercontent.com/assets/565744/12449832/cf8e05c6-bf34-11e5-8e25-de319e13fa6e.png)\r\n"}}