{"action":"created","issue":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1852","labels_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1852/labels{/name}","comments_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1852/comments","events_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1852/events","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/issues/1852","id":105423930,"number":1852,"title":"Create test files without _test suffix in package name","user":{"login":"jen20","id":548524,"avatar_url":"https://avatars.githubusercontent.com/u/548524?v=3","gravatar_id":"","url":"https://api.github.com/users/jen20","html_url":"https://github.com/jen20","followers_url":"https://api.github.com/users/jen20/followers","following_url":"https://api.github.com/users/jen20/following{/other_user}","gists_url":"https://api.github.com/users/jen20/gists{/gist_id}","starred_url":"https://api.github.com/users/jen20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jen20/subscriptions","organizations_url":"https://api.github.com/users/jen20/orgs","repos_url":"https://api.github.com/users/jen20/repos","events_url":"https://api.github.com/users/jen20/events{/privacy}","received_events_url":"https://api.github.com/users/jen20/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/milestones/17","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/milestones/maybe?","labels_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/milestones/17/labels","id":976935,"number":17,"title":"maybe?","description":"This milestone contains possible features for the plugin that might make it in it at some point.","creator":{"login":"dlsniper","id":607868,"avatar_url":"https://avatars.githubusercontent.com/u/607868?v=3","gravatar_id":"","url":"https://api.github.com/users/dlsniper","html_url":"https://github.com/dlsniper","followers_url":"https://api.github.com/users/dlsniper/followers","following_url":"https://api.github.com/users/dlsniper/following{/other_user}","gists_url":"https://api.github.com/users/dlsniper/gists{/gist_id}","starred_url":"https://api.github.com/users/dlsniper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlsniper/subscriptions","organizations_url":"https://api.github.com/users/dlsniper/orgs","repos_url":"https://api.github.com/users/dlsniper/repos","events_url":"https://api.github.com/users/dlsniper/events{/privacy}","received_events_url":"https://api.github.com/users/dlsniper/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":2,"state":"open","created_at":"2015-02-12T15:16:41Z","updated_at":"2015-09-08T18:03:50Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2015-09-08T16:50:51Z","updated_at":"2015-10-28T12:26:17Z","closed_at":null,"body":"I briefly searched but didn't find a duplicate of this, possible that it is though (if so apologies!)\r\n\r\nGo Plugin Version: 0.9.488\r\n\r\n## Steps to reproduce:\r\n\r\n1. Create Go Module\r\n1. Add a directory named (for example) `config`\r\n1. Create a new Go file in the `config` directory named `config_test.go`\r\n\r\n**Expected result:** the package name should be `config`\r\n**Observed result:** the package name is `config_test`\r\n\r\n\r\n---\r\nCount for options on how the package should be named when the file is created:\r\n- 2 -> `name_test`\r\n- 1 -> `name`"},"comment":{"url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/comments/151828120","html_url":"https://github.com/go-lang-plugin-org/go-lang-idea-plugin/issues/1852#issuecomment-151828120","issue_url":"https://api.github.com/repos/go-lang-plugin-org/go-lang-idea-plugin/issues/1852","id":151828120,"user":{"login":"zolotov","id":140920,"avatar_url":"https://avatars.githubusercontent.com/u/140920?v=3","gravatar_id":"","url":"https://api.github.com/users/zolotov","html_url":"https://github.com/zolotov","followers_url":"https://api.github.com/users/zolotov/followers","following_url":"https://api.github.com/users/zolotov/following{/other_user}","gists_url":"https://api.github.com/users/zolotov/gists{/gist_id}","starred_url":"https://api.github.com/users/zolotov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zolotov/subscriptions","organizations_url":"https://api.github.com/users/zolotov/orgs","repos_url":"https://api.github.com/users/zolotov/repos","events_url":"https://api.github.com/users/zolotov/events{/privacy}","received_events_url":"https://api.github.com/users/zolotov/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T12:26:16Z","updated_at":"2015-10-28T12:26:16Z","body":"@Barberrrry \r\n\r\n> When I add file config_test.go the package become config_test which seems wrong to me. \r\n\r\nBut it's not wrong, please read all comments here for details.\r\n\r\n> It would be great, if package name has been extracted from filename but without suffix _test.\r\n\r\nOf course it wouldn't. Different packages in one directory is a error, with algorithm you've suggested IDE will produce errors on each file creating.\r\n\r\n> I believe it's the most popular case.\r\n\r\nDo you mean the case without using \"_test\" prefix in package name? Do you have statistic on usage different approaches on naming test packages?"}}