Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/hubtest: extract methods + consistent error handling #2756

Merged
merged 3 commits into from Feb 14, 2024
Merged

Conversation

mmetc
Copy link
Contributor

@mmetc mmetc commented Jan 18, 2024

  • extract methods from loops to increase maintainability
  • treat errors in the same way for all item types

Copy link

@mmetc: There are no 'kind' label on this PR. You need a 'kind' label to generate the release automatically.

  • /kind feature
  • /kind enhancement
  • /kind fix
  • /kind chore
  • /kind dependencies
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.

Copy link

@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.

Copy link

codecov bot commented Jan 18, 2024

Codecov Report

Attention: 170 lines in your changes are missing coverage. Please review.

Comparison is base (45571ce) 57.86% compared to head (a004097) 57.92%.

Files Patch % Lines
pkg/hubtest/parser.go 0.00% 48 Missing ⚠️
pkg/hubtest/postoverflow.go 0.00% 47 Missing ⚠️
pkg/hubtest/appsecrule.go 0.00% 38 Missing ⚠️
pkg/hubtest/scenario.go 0.00% 37 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2756      +/-   ##
==========================================
+ Coverage   57.86%   57.92%   +0.06%     
==========================================
  Files         235      239       +4     
  Lines       30576    30971     +395     
==========================================
+ Hits        17693    17941     +248     
- Misses      11287    11401     +114     
- Partials     1596     1629      +33     
Flag Coverage Δ
bats 37.87% <0.00%> (-0.04%) ⬇️
unit-linux 52.34% <0.00%> (-0.04%) ⬇️
unit-windows 47.74% <0.00%> (?)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mmetc mmetc added the kind/enhancement New feature or request label Jan 18, 2024
@mmetc mmetc added this to the 1.6.1 milestone Jan 22, 2024
@mmetc mmetc marked this pull request as ready for review January 24, 2024 15:53
@mmetc mmetc requested a review from sabban January 24, 2024 16:33
@mmetc mmetc removed the request for review from sabban February 13, 2024 10:35
Copy link
Contributor

@sabban sabban left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mmetc mmetc merged commit 8de8bf0 into master Feb 14, 2024
17 checks passed
@mmetc mmetc deleted the refact-hubtest branch February 14, 2024 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cscli kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants