Skip to content

chore(provider/coredns): improve code coverage and reduce complexity #5456

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ivankatliarchuk
Copy link
Contributor

@ivankatliarchuk ivankatliarchuk commented May 23, 2025

What does it do ?

Improves code coverage for provider coredns, and reduce code complexity for certain functions

Motivation

Complexity from 27 to 10
Screenshot 2025-05-23 at 09 30 27

Before 66% coverage
Screenshot 2025-05-23 at 09 49 04

After 92% coverage

Screenshot 2025-05-23 at 12 25 07

More

  • Yes, this PR title follows Conventional Commits
  • Yes, I added unit tests
  • Yes, I updated end user documentation accordingly

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign ytsarev for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested review from mloiseleur and szuecs May 23, 2025 11:29
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels May 23, 2025
@ivankatliarchuk ivankatliarchuk force-pushed the chore-quality-coredns-complexity branch from 913f613 to 1c8a096 Compare May 23, 2025 11:31
@ivankatliarchuk ivankatliarchuk changed the title chore(provider/coredns): improve code coverage and reduce code comple… chore(provider/coredns): improve code coverage and reduce complexity May 23, 2025
@mloiseleur
Copy link
Collaborator

@linoleparquet @upsaurav12 Do you think you can review this PR ?

@upsaurav12
Copy link
Contributor

@linoleparquet @upsaurav12 Do you think you can review this PR ?

Sure !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants