Repository navigation
fix(all): pcapkit.all lists OSPF on the Link Layer line - #1129
Merged
Merged
Conversation
Owner
Author
|
Cross-review verdict on Change needed: if a group comment is renamed, Verified:
|
JarryShaw
force-pushed
the
fix/1124-all-ospf-group
branch
from
October 6, 2026 19:19
fa60acf to
7fc16c3
Compare
- Move OSPF, RARP and DRARP from the Link Layer group of `__all__` to the Application Layer group, matching their `__layer__` since #719, and drop the comment that flagged the mismatch. - Add tests/project/test_all_layer_grouping_unit.py, which reads the groups from all.py's source and checks each exported class's `__layer__`. Closes #1124
JarryShaw
force-pushed
the
fix/1124-all-ospf-group
branch
from
October 6, 2026 19:21
7fc16c3 to
9e84ff0
Compare
Owner
Author
|
Cross-review verdict on
The wider gap, names missing from |
Contributor
|
Coverage: 88.74% (unit tier, Python 3.14,
Per-file detail: the |
2 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
make pylint,make mypy,make isort) — ran pylint/mypy/isort on both files: isort clean, mypy no hits inall.py; pylint reports a pre-existing line-too-long atall.py:126and the test's in-method imports and missing docstrings, which matchtest_layer_placement_unit.py's stylemake testpasses, and a test case covers the change — ran the new module,tests/project/test_public_api.py,tests/protocols/application/test_layer_placement_unit.py, andtests/projectWhat is the purpose of your pull request?
fix— corrects a defectDescription of your pull request and other information
Closes #1124.
OSPF,RARPandDRARPsat on the Link Layer line ofpcapkit/all.py's__all__, with a comment admitting they are application-layer (#719). All three now sit in the Application Layer group, and the comment is gone.all.pyimports withfrom pcapkit.protocols import *, so__all__is the only change.Probe (group read from the source): before, Link =
ARP C_Tag DRARP Ethernet InARP L2TP L2TPv2 OSPF RARP S_Tag VLAN; after, Link =ARP C_Tag Ethernet InARP L2TP L2TPv2 S_Tag VLAN, Application =FTP FTP_DATA HTTP NGAP OSPF RARP DRARP.Test:
tests/project/test_all_layer_grouping_unit.pytokenizesall.pyand checks every exported class's__layer__against its group. Without the fix:5 failed, 3 passed; with it:5 passed, 3 subtests passed.test_public_api.py10 passed;test_layer_placement_unit.py17 passed;tests/project384 passed, 1 skipped.