OpenAtomFoundation / xupercore

The kernel of xuperchain.
Apache License 2.0
61 stars 47 forks source link

add ut #332

Closed godeamon closed 2 years ago

godeamon commented 2 years ago

添加单测。

codecov-commenter commented 2 years ago

Codecov Report

Merging #332 (4e488a7) into master (d4fb5dc) will increase coverage by 0.05%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #332      +/-   ##
==========================================
+ Coverage   45.73%   45.79%   +0.05%     
==========================================
  Files         138      138              
  Lines       12295    12295              
==========================================
+ Hits         5623     5630       +7     
+ Misses       5518     5514       -4     
+ Partials     1154     1151       -3     
Impacted Files Coverage Δ
bcs/network/p2pv2/server.go 51.33% <0.00%> (-1.07%) :arrow_down:
kernel/consensus/base/driver/chained-bft/smr.go 41.33% <0.00%> (+0.74%) :arrow_up:
kernel/engines/xuperos/chain.go 48.57% <0.00%> (+0.81%) :arrow_up:
bcs/consensus/xpoa/xpoa.go 53.29% <0.00%> (+2.03%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d4fb5dc...4e488a7. Read the comment docs.