1set / gut

🍱 yet another collection of go utilities & tools
MIT License
27 stars 9 forks source link

Add IsFileEmpty() and IsDirEmpty() #71

Closed an63 closed 4 years ago

codecov[bot] commented 4 years ago

Codecov Report

Merging #71 into master will increase coverage by 0.68%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #71      +/-   ##
==========================================
+ Coverage   95.47%   96.15%   +0.68%     
==========================================
  Files          19       20       +1     
  Lines         729      754      +25     
==========================================
+ Hits          696      725      +29     
+ Misses         26       23       -3     
+ Partials        7        6       -1
Impacted Files Coverage Ξ”
yos/common.go 100% <ΓΈ> (ΓΈ) :arrow_up:
yos/size.go 100% <100%> (+5.71%) :arrow_up:
yos/empty.go 100% <100%> (ΓΈ)
yos/list.go 100% <100%> (ΓΈ) :arrow_up:
yos/compare.go 85.71% <0%> (+2.04%) :arrow_up:
codeclimate[bot] commented 4 years ago

Code Climate has analyzed commit caa701c5 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 97.3% (0.5% change).

View more on Code Climate.

an63 commented 4 years ago

Codacy Here is an overview of what got changed by this pull request:


Complexity increasing per file
==============================
- yos/empty_test.go  4
- yos/empty.go  6

Complexity decreasing per file
==============================
+ yos/size.go  -1

Clones added
============
- yos/size_test.go  5
- yos/empty_test.go  12
- yos/compare_test.go  3
- yos/empty.go  1
- yos/size.go  1

See the complete overview on Codacy