SkipIfShort 如果是短测试模式则跳过
(t *testing.T)
| 453 | |
| 454 | // SkipIfShort 如果是短测试模式则跳过 |
| 455 | func SkipIfShort(t *testing.T) { |
| 456 | if testing.Short() { |
| 457 | t.Skip("Skipping test in short mode") |
| 458 | } |
| 459 | } |
| 460 | |
| 461 | // BenchmarkTool 工具性能基准测试辅助函数 |
| 462 | func BenchmarkTool(b *testing.B, tool tools.Tool, input map[string]any) { |
no outgoing calls