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

update testing for bus impl #37

Merged
merged 1 commit into from Nov 3, 2023
Merged

update testing for bus impl #37

merged 1 commit into from Nov 3, 2023

Conversation

luongngocminh
Copy link
Contributor

squash

let entry = nodes.entry(net_sender.remote_node_id()).or_insert_with(HashMap::new);
e.insert((tx.clone(), net_sender.clone()));
entry.insert(net_sender.conn_id(), (tx.clone(), net_sender.clone()));
let node_conns = nodes.entry(net_sender.remote_node_id()).or_insert_with(HashMap::new);

Check warning

Code scanning / clippy

use of or_insert_with to construct default value Warning

use of or\_insert\_with to construct default value
Copy link

codecov bot commented Nov 3, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6dd98f5) 82.81% compared to head (72531f3) 83.69%.
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #37      +/-   ##
==========================================
+ Coverage   82.81%   83.69%   +0.88%     
==========================================
  Files         106      106              
  Lines       11137    11217      +80     
==========================================
+ Hits         9223     9388     +165     
+ Misses       1914     1829      -85     
Files Coverage Δ
packages/core/router/src/lib.rs 47.36% <100.00%> (+6.19%) ⬆️
packages/network/src/plane.rs 71.51% <100.00%> (+0.16%) ⬆️
packages/network/src/plane/bus.rs 50.00% <100.00%> (+50.00%) ⬆️
packages/network/src/plane/bus_impl.rs 90.29% <100.00%> (+44.83%) ⬆️
packages/network/src/plane/single_conn.rs 71.94% <100.00%> (ø)
packages/network/src/transport.rs 75.00% <100.00%> (+3.57%) ⬆️

... and 3 files with indirect coverage changes

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

@giangndm
Copy link
Contributor

giangndm commented Nov 3, 2023

LGTM

@giangndm giangndm merged commit b0ce07c into 8xFF:master Nov 3, 2023
5 checks passed
@github-actions github-actions bot mentioned this pull request Nov 17, 2023
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.

None yet

2 participants