我遇到的问题是跑benchmark的时候, 非benchmark的测试用例也会跑。 查了查应该加上 -run=none 来禁用Testing 随笔 Go author: bqZhang link: http://example.com/2024/09/26/Go-test中运行指定的benchmark/ Copyright notice: All articles on this website, unless otherwise stated, adopt CC BY-NC-ND 4.0 reprint policy. If reproduced, please indicate source! Prev: Go init之坑 Next: GO 断言(testify) catalog catalog