写个 sdk 的测试时报错 import cycle not allowed in test
后发现因为测试文件内多写了导入同包路径.
同
package
下的 xxx_test.go 内不需要额外import
.
写个 sdk 的测试时报错 import cycle not allowed in test
后发现因为测试文件内多写了导入同包路径.
同
package
下的 xxx_test.go 内不需要额外import
.
转载于:https://www.cnblogs.com/taadis/p/import-cycle-not-allowed-in-test.html