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

test: add tests for config.go #144

Merged
merged 6 commits into from
Oct 11, 2023
Merged

test: add tests for config.go #144

merged 6 commits into from
Oct 11, 2023

Conversation

nsshaddox
Copy link
Contributor

I've added a test for the invalid scraper key and a test to check for componentParser being nil.

@nsshaddox nsshaddox requested a review from a team as a code owner October 10, 2023 17:34
@github-actions github-actions bot added the go label Oct 10, 2023
@nsshaddox nsshaddox linked an issue Oct 10, 2023 that may be closed by this pull request
@nsshaddox nsshaddox changed the title test: add tests for config.go #131 test: add tests for config.go Oct 10, 2023
@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (fe9f131) 25.50% compared to head (0005b47) 27.08%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #144      +/-   ##
==========================================
+ Coverage   25.50%   27.08%   +1.58%     
==========================================
  Files           5        5              
  Lines         443      443              
==========================================
+ Hits          113      120       +7     
+ Misses        321      316       -5     
+ Partials        9        7       -2     

see 2 files with indirect coverage changes

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

args: args{componentParser: nil},
wantErr: false,
},
// {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should add some additional test cases here. Let's merge this in and iterate on another tasks to add more test cases.

@adrielp adrielp merged commit b5109cf into main Oct 11, 2023
@adrielp adrielp deleted the config-tests branch October 11, 2023 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test: provider receiver config.go
2 participants