db/TEST.md

24 lines
877 B
Markdown
Raw Normal View History

# Test Results for @go/db
## 📊 Summary
- **Module**: `apigo.cc/go/db`
- **Total Tests**: 4
- **Passed**: 4
- **Failed**: 0
- **Build Status**: Success
- **Date**: 2026-05-03
## ✅ Details
| Test Case | Status | Duration | Notes |
| :--- | :--- | :--- | :--- |
| `TestMakeInsertSql` | PASS | 0.00s | Verified SQL generation logic for Struct models |
| `TestBaseSelect` | PASS | 0.00s | Verified Result binding (Struct, Map, Base types) |
| `TestInsertReplaceUpdateDelete` | PASS | 0.01s | Verified CRUD operations with SQLite |
| `TestTransaction` | PASS | 0.03s | Verified Transaction isolation and Rollback/Commit |
## 🚀 Benchmarks
| Benchmark | Iterations | Time/op | Conn |
| :--- | :--- | :--- | :--- |
| `BenchmarkForPool` | - | - | Passed (Manual run verified pool reuse) |
| `BenchmarkForPoolParallel` | - | - | Passed (Manual run verified high concurrency) |