CleanupAll 执行所有清理
()
| 44 | |
| 45 | // CleanupAll 执行所有清理 |
| 46 | func (th *TestHelper) CleanupAll() { |
| 47 | // 反向执行清理函数 |
| 48 | for i := len(th.Cleanup) - 1; i >= 0; i-- { |
| 49 | th.Cleanup[i]() |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | // CreateTempFile 创建临时文件 |
| 54 | func (th *TestHelper) CreateTempFile(name, content string) string { |
no outgoing calls