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

[chore] pkg/stanza: move test code to new syslogtest package #37089

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

axw
Copy link
Contributor

@axw axw commented Jan 8, 2025

Description

While looking at the stanza syslog parser code I noticed that data.go contains test-only code, but was not defined in a test package. Moving it to a separate test package means the API of the main code will not be polluted.

Link to tracking issue

None

Testing

N/A

Documentation

N/A

While looking at the syslog code I noticed that
data.go contains test-only code, but was not defined
in a _test.go file.
@axw axw requested review from djaglowski and a team as code owners January 8, 2025 07:24
@axw axw marked this pull request as draft January 8, 2025 08:39
@axw
Copy link
Contributor Author

axw commented Jan 8, 2025

Maybe I didn't look hard enough for references... :)

@axw axw changed the title chore: move code to test package [chore] move code to test package Jan 8, 2025
@axw axw closed this Jan 8, 2025
@axw axw reopened this Jan 8, 2025
@axw axw changed the title [chore] move code to test package [chore] pkg/stanza: move test code to new syslogtest package Jan 8, 2025
Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.66%. Comparing base (11afd33) to head (0ebec7d).
Report is 15 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #37089      +/-   ##
==========================================
+ Coverage   79.61%   79.66%   +0.04%     
==========================================
  Files        2223     2244      +21     
  Lines      210283   211266     +983     
==========================================
+ Hits       167417   168303     +886     
- Misses      37250    37347      +97     
  Partials     5616     5616              

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

@axw axw marked this pull request as ready for review January 8, 2025 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants