salt icon indicating copy to clipboard operation
salt copied to clipboard

[WIP] [3006.x] Increase code coverage for file module

Open Ch3LL opened this issue 2 years ago • 1 comments

What issues does this PR fix or reference?

Part of https://github.com/saltstack/salt/issues/64734

Ch3LL avatar Oct 11 '23 20:10 Ch3LL

Codecov Report

Merging #65387 (0791e04) into 3006.x (64280ee) will decrease coverage by 0.02%. Report is 27 commits behind head on 3006.x. The diff coverage is 99.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           3006.x   #65387      +/-   ##
==========================================
- Coverage   62.25%   62.23%   -0.02%     
==========================================
  Files        3218     3218              
  Lines      442339   442438      +99     
  Branches    84680    84687       +7     
==========================================
- Hits       275338   275295      -43     
- Misses     151416   151570     +154     
+ Partials    15585    15573      -12     
Flag Coverage Δ
almalinux-8 58.80% <99.00%> (+0.02%) :arrow_up:
almalinux-9 58.79% <99.00%> (+0.03%) :arrow_up:
amazonlinux-2 58.78% <99.00%> (+0.02%) :arrow_up:
archlinux-lts 58.70% <99.00%> (+0.03%) :arrow_up:
centos-7 58.84% <99.00%> (+0.03%) :arrow_up:
centosstream-8 58.82% <99.00%> (+0.04%) :arrow_up:
centosstream-9 58.81% <99.00%> (+0.02%) :arrow_up:
debian-10 58.00% <99.00%> (+0.02%) :arrow_up:
debian-11 57.98% <99.00%> (+0.01%) :arrow_up:
debian-11-arm64 57.97% <99.00%> (+0.03%) :arrow_up:
debian-12 57.97% <99.00%> (+0.03%) :arrow_up:
debian-12-arm64 57.97% <99.00%> (+0.02%) :arrow_up:
fedora-37 58.78% <99.00%> (+0.03%) :arrow_up:
fedora-38 58.72% <99.00%> (+0.03%) :arrow_up:
opensuse-15 57.77% <99.00%> (+0.03%) :arrow_up:
photonos-3 58.44% <99.00%> (+0.02%) :arrow_up:
photonos-4 58.42% <99.00%> (+0.04%) :arrow_up:
photonos-4-arm64 58.24% <99.00%> (+0.02%) :arrow_up:
salt 46.36% <50.00%> (-0.03%) :arrow_down:
tests 89.84% <100.00%> (-<0.01%) :arrow_down:
ubuntu-20.04 58.00% <99.00%> (+0.02%) :arrow_up:
ubuntu-20.04-arm64 58.01% <99.00%> (+0.03%) :arrow_up:
ubuntu-22.04 58.00% <99.00%> (+0.02%) :arrow_up:
ubuntu-22.04-arm64 58.00% <99.00%> (+0.03%) :arrow_up:
windows-2016 ?
windows-2019 53.10% <82.00%> (+0.01%) :arrow_up:
windows-2022 ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...ests/pytests/unit/modules/file/test_file_chattr.py 98.31% <100.00%> (+0.42%) :arrow_up:
...ests/pytests/unit/modules/file/test_file_module.py 100.00% <100.00%> (ø)
salt/modules/file.py 64.06% <50.00%> (+2.04%) :arrow_up:

... and 47 files with indirect coverage changes

codecov[bot] avatar Oct 12 '23 17:10 codecov[bot]