crowdsec icon indicating copy to clipboard operation
crowdsec copied to clipboard

refact pkg/database: clean up code and error messages

Open mmetc opened this issue 1 year ago • 2 comments

mmetc avatar Sep 25 '24 09:09 mmetc

@mmetc: There are no area labels on this PR. You can add as many areas as you see fit.

  • /area agent
  • /area local-api
  • /area cscli
  • /area appsec
  • /area security
  • /area configuration
Details

I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository.

github-actions[bot] avatar Sep 25 '24 09:09 github-actions[bot]

Codecov Report

Attention: Patch coverage is 82.35294% with 39 lines in your changes missing coverage. Please review.

Project coverage is 58.47%. Comparing base (ecf34c2) to head (79959e7). Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
pkg/database/alertfilter.go 86.53% 20 Missing and 8 partials :warning:
pkg/database/alerts.go 0.00% 10 Missing :warning:
pkg/types/ip.go 66.66% 1 Missing :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3263      +/-   ##
==========================================
+ Coverage   58.45%   58.47%   +0.01%     
==========================================
  Files         351      352       +1     
  Lines       37893    37871      -22     
==========================================
- Hits        22151    22144       -7     
+ Misses      13835    13818      -17     
- Partials     1907     1909       +2     
Flag Coverage Δ
bats 41.28% <71.49%> (-0.02%) :arrow_down:
unit-linux 34.44% <66.66%> (+0.02%) :arrow_up:
unit-windows 29.67% <45.70%> (+0.02%) :arrow_up:

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

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

codecov[bot] avatar Sep 25 '24 10:09 codecov[bot]