Skip to content

feat(tests): add livetwo tests #299

Merged
a-wing merged 5 commits intobinbat:mainfrom
Marsyew:main
May 8, 2025
Merged

feat(tests): add livetwo tests #299
a-wing merged 5 commits intobinbat:mainfrom
Marsyew:main

Conversation

@Marsyew
Copy link
Copy Markdown
Contributor

@Marsyew Marsyew commented May 8, 2025

add intefration test

ffmpeg→whip_server→whep_client→whip_server→whep_server→whip_client→whep_server→ffprobe

Marsyew added 3 commits May 7, 2025 16:47
fix livetwo/utils.rs unit test error

remove useless unit tests
@codecov
Copy link
Copy Markdown

codecov bot commented May 8, 2025

Codecov Report

Attention: Patch coverage is 95.57522% with 15 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
livetwo/src/utils.rs 85.71% 12 Missing ⚠️
livetwo/src/whep.rs 96.90% 3 Missing ⚠️
Files with missing lines Coverage Δ
livetwo/src/rtspclient.rs 82.04% <100.00%> (+75.74%) ⬆️
livetwo/src/whip.rs 78.05% <100.00%> (+20.67%) ⬆️
livetwo/src/whep.rs 90.55% <96.90%> (+15.27%) ⬆️
livetwo/src/utils.rs 81.98% <85.71%> (+11.12%) ⬆️

... and 8 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

});

let mut rtsp_session = RtspSession {
stream: client,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There use type TcpStream, But there only use write_all() and read()

There can use Generics: AsyncReadExt + AsyncWriteExt. After use tokio::io::duplex create a io pair, This io working in memory

@a-wing a-wing merged commit 5a97d99 into binbat:main May 8, 2025
10 checks passed
@a-wing a-wing added mod::whipinto whipinto mod::whepfrom whepfrom labels May 8, 2025
@a-wing a-wing added this to the 0.8.0 milestone May 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants