Skip to content

Break apart Zeroconf.handle_query to reduce branching#462

Merged
bdraco merged 1 commit into
python-zeroconf:masterfrom
bdraco:handle_query_branching
Jun 6, 2021
Merged

Break apart Zeroconf.handle_query to reduce branching#462
bdraco merged 1 commit into
python-zeroconf:masterfrom
bdraco:handle_query_branching

Conversation

@bdraco

@bdraco bdraco commented Jun 6, 2021

Copy link
Copy Markdown
Member

Closes #458

Now that the function is a bit easier to read there are some issues that are apparent:

@codecov-commenter

codecov-commenter commented Jun 6, 2021

Copy link
Copy Markdown

Codecov Report

Merging #462 (8e12797) into master (558cec3) will decrease coverage by 0.08%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #462      +/-   ##
==========================================
- Coverage   95.63%   95.55%   -0.09%     
==========================================
  Files           4        4              
  Lines        3255     3260       +5     
  Branches      402      402              
==========================================
+ Hits         3113     3115       +2     
- Misses         85       88       +3     
  Partials       57       57              
Impacted Files Coverage Δ
zeroconf/__init__.py 91.97% <100.00%> (-0.23%) ⬇️
zeroconf/asyncio.py 99.33% <0.00%> (+0.66%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 558cec3...8e12797. Read the comment docs.

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.

Reduce branching in Zeroconf.handle_query

2 participants