Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

单元测试完善:contrib/drivers/sqlite #1814

Closed
gqcn opened this issue May 10, 2022 · 3 comments
Closed

单元测试完善:contrib/drivers/sqlite #1814

gqcn opened this issue May 10, 2022 · 3 comments
Assignees
Labels
done This issue is done, which may be release in next version. feature help wanted

Comments

@gqcn
Copy link
Member

gqcn commented May 10, 2022

完善社区组件 contrib/drivers/sqlite 的单元测试。

组件地址:https://github.com/gogf/gf/tree/master/contrib/drivers/sqlite

要求:

  1. 提供ModelCURD用例,至少包含这些方法的测试用例:
  • 模型:Model/Raw
  • 查询:All/One/Value/Array/Scan/Count
  • 条件:多条件Where组合用例
  • 写入:Insert/Replace/Save
  • 更新:Update
  • 删除:Delete
  1. 提供DB接口的CURD用例,至少包含这些方法的测试用例:
  • 原生:Query/Exec
  • 查询:GetAll/GetOne/GetValue/GetCount/GetArray/GetScan
  • 写入:Insert/Replace/Save
  • 更新:Update
  • 删除:Delete

注意事项:不支持的方法断言返回的错误即可。

@hailaz
Copy link
Member

hailaz commented May 12, 2022

那几个都有人搞了,那我搞这个吧

@gqcn
Copy link
Member Author

gqcn commented May 17, 2022

那几个都有人搞了,那我搞这个吧

OK, great!

@gqcn gqcn added the wip label May 17, 2022
@hailaz
Copy link
Member

hailaz commented May 25, 2022

  1. 提供Model的CURD用例,至少包含这些方法的测试用例:

    • 模型:Model/Raw
    • 查询:All/One/Value/Array/Scan/Count
    • 条件:多条件Where组合用例
    • 写入:Insert/Replace
    • 更新:Update
    • 删除:Delete
  2. 提供DB接口的CURD用例,至少包含这些方法的测试用例:

    • 原生:Query/Exec
    • 查询:GetAll/GetOne/GetValue/GetCount/GetArray/GetScan
    • 写入:Insert/Replace
    • 更新:Update
    • 删除:Delete

@hailaz hailaz added done This issue is done, which may be release in next version. and removed wip labels Jun 24, 2022
@hailaz hailaz closed this as completed Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done This issue is done, which may be release in next version. feature help wanted
Projects
None yet
Development

No branches or pull requests

2 participants