mszostok / codeowners-validator

The GitHub CODEOWNERS file validator
Apache License 2.0
217 stars 47 forks source link

Add unit-tests coverage for dup_pattern checker #43

Closed mszostok closed 3 years ago

mszostok commented 3 years ago

Description

Changes proposed in this pull request:

Related issue(s)

Partially solves https://github.com/mszostok/codeowners-validator/issues/14

codecov[bot] commented 3 years ago

Codecov Report

Merging #43 into master will decrease coverage by 64.65%. The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master      #43       +/-   ##
===========================================
- Coverage   82.92%   18.26%   -64.66%     
===========================================
  Files           2       10        +8     
  Lines          41      312      +271     
===========================================
+ Hits           34       57       +23     
- Misses          6      252      +246     
- Partials        1        3        +2     
Impacted Files Coverage Δ
internal/check/duplicated_pattern.go 78.57% <100.00%> (ø)
pkg/codeowners/owners.go 81.08% <100.00%> (ø)
internal/context/check.go 100.00% <0.00%> (ø)
internal/check/not_owned_file.go 0.00% <0.00%> (ø)
internal/check/valid_owner.go 0.00% <0.00%> (ø)
internal/check/api.go 17.24% <0.00%> (ø)
internal/envconfig/envconfig.go 100.00% <0.00%> (ø)
internal/check/valid_owner_error.go 0.00% <0.00%> (ø)
internal/check/file_exists.go 0.00% <0.00%> (ø)

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 c915fc0...2a7e67b. Read the comment docs.