This commit is contained in:
admju
2024-09-04 07:11:13 +00:00
parent d12d3e31bf
commit 48301bf82e
17 changed files with 210 additions and 25 deletions

View File

@@ -0,0 +1,23 @@
package versionOc
import (
"os"
"testing"
"path/filepath"
)
var TEST_DEST_DIR = "../wrk_versionOc"
var TEST_SRC_DIR = filepath.Join("../../test", "versionOc")
func TestMain(m *testing.M) {
folderPath := TEST_DEST_DIR
os.RemoveAll(folderPath)
os.MkdirAll(folderPath, os.ModePerm)
// call flag.Parse() here if TestMain uses flags
exitCode := m.Run()
os.RemoveAll(folderPath)
os.Exit(exitCode)
}