Regina Morris
- 活动总数 15
- 最后的活动
- 成员加入日期
- 关注 0 名用户
- 关注者数 0 名用户
- 投票数 0
- 订阅数 3
-
创建于 Why can't *_test.go files find functions defined in different files within the same package?
已回答This works fine with *.go files but not with *_test.go files. Goland's editor can see the function Dbconnect() because it displays the name as I'm typing it. The name also doesn't appear in red wi... -
创建于 "TestMain(m *testing.M)" runs as a test itself but is failing
已完成I'm using a file main_test.go to run my tests. There are 4 tests total but my run tells me that 1 test failed and 4 passed. I can only assume that TestMain() is that fifth test that is failing. I h... -
创建于 Running multiple tests within a package (terminal vs run configuration)
已完成I am using Goland. I have the following package: src/event which has the files: main_test.go, a.go, and a_test.go In main_test.go I have the init(), setUp(), tearDown() functions that a_test.go us...