no-src / gofs

A cross-platform real-time file synchronization tool out of the box based on Golang
Apache License 2.0
445 stars 37 forks source link

Update codecov action #330

Closed mstmdev closed 4 months ago

mstmdev commented 4 months ago

go test -cover now prints coverage summaries for covered packages that do not have their own test files. Prior to Go 1.22 a go test -cover run for such a package would report

? mymod/mypack [no test files]

and now with Go 1.22, functions in the package are treated as uncovered:

mymod/mypack coverage: 0.0% of statements

Note that if a package contains no executable code at all, we can't report a meaningful coverage percentage; for such packages the go tool will continue to report that there are no test files.

See Go 1.22 Release Notes

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 30.50%. Comparing base (2276029) to head (f62544a). Report is 7 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #330 +/- ## ============================================ - Coverage 100.00% 30.50% -69.50% ============================================ Files 48 133 +85 Lines 1332 6055 +4723 ============================================ + Hits 1332 1847 +515 - Misses 0 4120 +4120 - Partials 0 88 +88 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.