MCPcopy Create free account
hub / github.com/astercloud/aster / CleanupAll

Method CleanupAll

pkg/tools/builtin/testutils.go:46–51  ·  view source on GitHub ↗

CleanupAll 执行所有清理

()

Source from the content-addressed store, hash-verified

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

Callers 15

TestReadTool_SuccessFunction · 0.95
TestReadTool_EmptyFileFunction · 0.95
TestReadTool_LargeFileFunction · 0.95
TestReadTool_BinaryFileFunction · 0.95
TestEditTool_SimpleEditFunction · 0.95
TestEditTool_SameStringFunction · 0.95

Calls

no outgoing calls

Tested by 15

TestReadTool_SuccessFunction · 0.76
TestReadTool_EmptyFileFunction · 0.76
TestReadTool_LargeFileFunction · 0.76
TestReadTool_BinaryFileFunction · 0.76
TestEditTool_SimpleEditFunction · 0.76
TestEditTool_SameStringFunction · 0.76