Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Conversation

@melekes
Copy link
Contributor

@melekes melekes commented Apr 27, 2022

@codecov
Copy link

codecov bot commented Apr 28, 2022

Codecov Report

Merging #4 (164ee32) into main (1cfe725) will increase coverage by 0.33%.
The diff coverage is 45.71%.

@@            Coverage Diff             @@
##             main       #4      +/-   ##
==========================================
+ Coverage   14.68%   15.01%   +0.33%     
==========================================
  Files           7        7              
  Lines        3269     3310      +41     
  Branches      940      958      +18     
==========================================
+ Hits          480      497      +17     
- Misses       2524     2530       +6     
- Partials      265      283      +18     
Impacted Files Coverage Δ
src/data_channel/data_channel_test.rs 44.95% <45.71%> (+0.33%) ⬆️
src/error.rs 6.18% <0.00%> (-0.13%) ⬇️

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 1cfe725...164ee32. Read the comment docs.

@melekes melekes self-assigned this Jun 8, 2022
@melekes melekes marked this pull request as ready for review June 14, 2022 19:28
@melekes melekes force-pushed the anton/async-read-write-for-data-channel branch from c7b6f47 to 1dbe2a4 Compare June 15, 2022 07:40
@melekes melekes requested a review from k0nserv June 15, 2022 08:45
Copy link
Member

@k0nserv k0nserv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good, small comment about the tests

let mut poll_dc0 = PollDataChannel::new(dc0.clone());
let mut poll_dc1 = PollDataChannel::new(dc1.clone());

sbuf[0..4].copy_from_slice(&1u32.to_be_bytes());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps using a more "tricky" value than 1 here would be more robust. e.g. a random value with bits set in all octets such as 961666284

@melekes melekes merged commit 672fffd into webrtc-rs:main Jun 15, 2022
@melekes melekes deleted the anton/async-read-write-for-data-channel branch June 15, 2022 11:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make data::data_channel::DataChannel implement tokio::io AsyncRead and AsyncWrite traits

2 participants