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

[API break] neighbour: Reorganize the code base #66

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

cathay4t
Copy link
Member

  • This patch is first preparation on stable release 1.0 for submodule
    neighbour. The detailed checklist for developer is stated in
    README.md file.
  • Stored constants into where it been used. Will remove constants.rs
    once all components finished.
  • Replace pub use self::* to explicit expose.
  • Renamed neighbour::Nla to NeighbourAttribute and all its entry
    changed to detailed data structure instead of Vec<u8>
  • Unit test case included. Many attribute is not tested as they are not
    supported by ip route, but their data type is confirmed in the
    kernel code.

Copy link

codecov bot commented Nov 29, 2023

Codecov Report

Attention: 67 lines in your changes are missing coverage. Please review.

Comparison is base (741b214) 61.24% compared to head (3e3d4e7) 62.52%.

Files Patch % Lines
src/neighbour/attribute.rs 62.19% 31 Missing ⚠️
src/neighbour/state.rs 32.50% 27 Missing ⚠️
src/route/header.rs 71.42% 4 Missing ⚠️
src/neighbour/address.rs 89.28% 3 Missing ⚠️
src/neighbour/flags.rs 96.42% 1 Missing ⚠️
src/neighbour/message.rs 97.05% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #66      +/-   ##
==========================================
+ Coverage   61.24%   62.52%   +1.27%     
==========================================
  Files          96       98       +2     
  Lines        7014     7108      +94     
==========================================
+ Hits         4296     4444     +148     
+ Misses       2718     2664      -54     

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

 * This patch is first preparation on stable release 1.0 for submodule
   neighbour. The detailed checklist for developer is stated in
   README.md file.
 * Stored constants into where it been used. Will remove `constants.rs`
   once all components finished.
 * Replace `pub use self::*` to explicit expose.
 * Renamed `neighbour::Nla` to `NeighbourAttribute` and all its entry
   changed to detailed data structure instead of `Vec<u8>`
 * Unit test case included. Many attribute is not tested as they are not
   supported by `ip route`, but their data type is confirmed in the
   kernel code.

Signed-off-by: Gris Ge <[email protected]>
@cathay4t cathay4t merged commit c26a504 into rust-netlink:main Dec 1, 2023
10 checks passed
@cathay4t cathay4t deleted the v1_prep_neighbour branch December 1, 2023 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant