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

add unittests for linodevpc_controller #284

Merged
merged 3 commits into from
Apr 30, 2024
Merged

Conversation

rahulait
Copy link
Collaborator

What type of PR is this?

What this PR does / why we need it:
Adds more unit tests for controller/linodevpc_controller.go to increase code coverage

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

Copy link

codecov bot commented Apr 24, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 64.40%. Comparing base (cb244be) to head (80be31b).

Files Patch % Lines
controller/linodevpc_controller.go 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #284      +/-   ##
==========================================
+ Coverage   60.57%   64.40%   +3.82%     
==========================================
  Files          30       30              
  Lines        1750     1750              
==========================================
+ Hits         1060     1127      +67     
+ Misses        644      574      -70     
- Partials       46       49       +3     

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

bcm820
bcm820 previously approved these changes Apr 25, 2024
@rahulait rahulait merged commit 1af26a0 into main Apr 30, 2024
8 of 9 checks passed
@AshleyDumaine AshleyDumaine deleted the vpc_controller_unittests branch May 6, 2024 14:42
amold1 pushed a commit that referenced this pull request May 17, 2024
* add unittests for vpc_controller

* rebase and fix lint errors

---------

Co-authored-by: Rahul Sharma <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants