测试:完善和优化测试用例

- 优化 schema 测试用例,增加边界条件测试
- 完善 table、index、database 等模块的测试
- 改进测试数据清理和错误处理
- 更新示例程序以使用最新 API
- 增强测试覆盖率和可靠性
This commit is contained in:
2025-10-09 21:47:14 +08:00
parent 89af9e9259
commit 6d04487789
14 changed files with 812 additions and 132 deletions

View File

@@ -38,7 +38,10 @@ func main() {
}
// 创建 Schema
schema := srdb.NewSchema("users", fields)
schema, err := srdb.NewSchema("users", fields)
if err != nil {
log.Fatal(err)
}
// 打印 Schema 信息
fmt.Printf("Schema 名称: %s\n", schema.Name)