{"action":"opened","issue":{"url":"https://api.github.com/repos/stretchr/testify/issues/180","labels_url":"https://api.github.com/repos/stretchr/testify/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/stretchr/testify/issues/180/comments","events_url":"https://api.github.com/repos/stretchr/testify/issues/180/events","html_url":"https://github.com/stretchr/testify/issues/180","id":87484346,"number":180,"title":"assert.CallerInfo() panics if file is autogenerated","user":{"login":"ErebusBat","id":93973,"avatar_url":"https://avatars.githubusercontent.com/u/93973?v=3","gravatar_id":"","url":"https://api.github.com/users/ErebusBat","html_url":"https://github.com/ErebusBat","followers_url":"https://api.github.com/users/ErebusBat/followers","following_url":"https://api.github.com/users/ErebusBat/following{/other_user}","gists_url":"https://api.github.com/users/ErebusBat/gists{/gist_id}","starred_url":"https://api.github.com/users/ErebusBat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErebusBat/subscriptions","organizations_url":"https://api.github.com/users/ErebusBat/orgs","repos_url":"https://api.github.com/users/ErebusBat/repos","events_url":"https://api.github.com/users/ErebusBat/events{/privacy}","received_events_url":"https://api.github.com/users/ErebusBat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-11T20:24:12Z","updated_at":"2015-06-11T20:24:12Z","closed_at":null,"body":"I honestly have no idea __why__ my file is suddenly `<autogenerated>`; I just invoked a subdirectory:\r\n\r\n    go test -v ./subdir\r\n\r\nThis causes `CallerInfo()` to panic when [extracting the file/path info](https://github.com/stretchr/testify/blob/7e4a149930b09fe4c2b134c50ce637457ba6e966/assert/assertions.go#L88).\r\n\r\nI have been attempting to add a test case for this into testify itself and I can not get it to reproduce :/\r\n\r\nHowever I will be submitting a PR shortly that actually fixes the issue, and should be low impact w/o a test case.\r\n\r\n"}}