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/mssql #1813

Closed
gqcn opened this issue May 10, 2022 · 1 comment
Closed

单元测试完善:contrib/drivers/mssql #1813

gqcn opened this issue May 10, 2022 · 1 comment
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/mssql 的单元测试。

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

要求:

  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
  • 功能:Tables/TableFields 特别重要

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

@gqcn gqcn changed the title 单元测试完善:contrib/drivers/mssql 【开源摘星计划】单元测试完善:contrib/drivers/mssql May 10, 2022
@gqcn gqcn changed the title 【开源摘星计划】单元测试完善:contrib/drivers/mssql 单元测试完善:contrib/drivers/mssql May 10, 2022
@wenzi1
Copy link
Member

wenzi1 commented May 12, 2022

已经提交了 #1827

@wenzi1 wenzi1 added the done This issue is done, which may be release in next version. label May 12, 2022
@wenzi1 wenzi1 closed this as completed May 18, 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