gf icon indicating copy to clipboard operation
gf copied to clipboard

单元测试完善:contrib/drivers/clickhouse

Open gqcn opened this issue 2 years ago • 7 comments

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

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

要求:

  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 avatar May 10 '22 14:05 gqcn

Can I work on this issue?

lawrshen avatar May 11 '22 05:05 lawrshen

@DGuang21 Are you working on this?

gqcn avatar May 17 '22 12:05 gqcn

Can I work on this issue?

Another clickhouse issue is being handled, the unit testing cases should be after that.

gqcn avatar May 18 '22 04:05 gqcn

Can I work on this issue?

After another PR process is completed, you can go to work

DGuang21 avatar May 18 '22 04:05 DGuang21

Can I work on this issue?

After another PR process is completed, you can go to work

tkx, I will complete it recently after that PR merged

lawrshen avatar May 18 '22 04:05 lawrshen

https://github.com/gogf/gf/pull/1772

gqcn avatar May 18 '22 06:05 gqcn

I perhaps resign this job due to busy job and strangeness of clickhouse, sorry for that

lawrshen avatar May 31 '22 07:05 lawrshen

I'm planning to finish this

CCpro10 avatar Oct 11 '22 14:10 CCpro10