init elowdb go-port commit

This commit is contained in:
41 changed files with 7273 additions and 0 deletions

30
tests/main_test.go Normal file
View File

@@ -0,0 +1,30 @@
package tests
import (
"os"
"testing"
)
func TestMain(m *testing.M) {
// Настройка перед тестами
setup()
// Запуск тестов
code := m.Run()
// Очистка после тестов
teardown()
// Выход с кодом
os.Exit(code)
}
func setup() {
// Создаем тестовые директории
os.MkdirAll("./testdata", 0755)
}
func teardown() {
// Очищаем тестовые данные
os.RemoveAll("./testdata")
}