tikv / raft-engine

A persistent storage engine for Multi-Raft log
Apache License 2.0
565 stars 88 forks source link

improve test coverage of log_batch.rs #137

Closed tabokie closed 3 years ago

tabokie commented 3 years ago

Before: 89.88%, after: 96.94% Signed-off-by: tabokie xy.tao@outlook.com

codecov[bot] commented 3 years ago

Codecov Report

Merging #137 (057ba2a) into master (f918afd) will increase coverage by 1.13%. The diff coverage is 99.62%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #137      +/-   ##
==========================================
+ Coverage   92.72%   93.85%   +1.13%     
==========================================
  Files          18       18              
  Lines        4962     5130     +168     
==========================================
+ Hits         4601     4815     +214     
+ Misses        361      315      -46     
Impacted Files Coverage Δ
src/log_batch.rs 96.94% <99.60%> (+7.05%) :arrow_up:
src/test_util.rs 100.00% <100.00%> (+3.03%) :arrow_up:
src/codec.rs 95.86% <0.00%> (-0.35%) :arrow_down:
src/memtable.rs 96.67% <0.00%> (+0.15%) :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 f918afd...057ba2a. Read the comment docs.