ecodeclub / eorm

简单 ORM 框架
Apache License 2.0
194 stars 64 forks source link

Delete的执行 #95

Closed archer-wyz closed 2 years ago

archer-wyz commented 2 years ago

sqlmock这么用不知是否正确,希望上课的时候把常见用法提一下,这个库给我整的有点糊涂。

集成测试写哪?

flycash commented 2 years ago

集成测试在 internal 包里面的 integration 里面

codecov[bot] commented 2 years ago

Codecov Report

Merging #95 (3bee099) into main (2747be0) will increase coverage by 0.03%. The diff coverage is 53.84%.

@@            Coverage Diff             @@
##             main      #95      +/-   ##
==========================================
+ Coverage   81.74%   81.77%   +0.03%     
==========================================
  Files          17       17              
  Lines        1134     1147      +13     
==========================================
+ Hits          927      938      +11     
  Misses        175      175              
- Partials       32       34       +2     
Impacted Files Coverage Δ
delete.go 64.70% <50.00%> (-8.03%) :arrow_down:
db.go 77.04% <100.00%> (+0.38%) :arrow_up:
transaction.go 80.00% <0.00%> (+40.00%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.