-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Pch07/ffmpeg non io tests #261
Pch07/ffmpeg non io tests #261
Conversation
d716411
to
edc6a64
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #261 +/- ##
==========================================
+ Coverage 63.92% 72.75% +8.83%
==========================================
Files 203 203
Lines 15846 15792 -54
==========================================
+ Hits 10129 11489 +1360
+ Misses 5717 4303 -1414
... and 1 file with indirect coverage changes
|
5af54c9
to
68cf0da
Compare
… frame + set audio ch_layout)
?brawl merge |
📌 Commit 34c6271 has been approved and added to the merge queue. Requested by: @TroyKomodo Approved by: |
?brawl cancel |
Pch07/ffmpeg non io tests Added tests to the non io files in the ffmpeg crate. So far I have only run into one issue: In the `logs.rs` file, I updated some log levels to their respective names in `log_callback_tracing()`, let me know if this change is appropriate. Additionally, `test_log_callback_tracing()` excludes the `tracing::warn!` case because it doesn't work for some reason; I couldn't figure this out. In the `frame.rs` file, the last test is incorrect due to `is_audio()` returning `false` instead of `true`. I left it commented for now. In the `encoder.rs` file, I didn't include tests for the `Encoder::send_frame()`, `Encoder::receive_packet()`, `MuxerEncoder::send_eof()`, `MuxerEncoder::send_frame()`, or `MuxerEncoder::handle_packets()` functions. In the `decoder.rs` file, I didn't include tests for `GenericDecoder::send_packet()`, `GenericDecoder::send_eof()`, or `GenericDecoder::receive_frame()` functions. The untested functions are due to them being kinda complex (also they seem to be related to the untested functions in the ffmpeg/io folder. It would probably be better to work on all of those in one go since it seems pretty technical. Requested-by: TroyKomodo <49777269+TroyKomodo@users.noreply.github.com>
🚨 Cancelled CI run |
?brawl merge |
📌 Commit 34c6271 has been approved and added to the merge queue. Requested by: @TroyKomodo Approved by: @TroyKomodo |
🎉 Build successful! Approved by: @TroyKomodo |
Added tests to the non io files in the ffmpeg crate.
So far I have only run into one issue:
In the
logs.rs
file, I updated some log levels to their respective names inlog_callback_tracing()
, let me know if this change is appropriate. Additionally,test_log_callback_tracing()
excludes thetracing::warn!
case because it doesn't work for some reason; I couldn't figure this out.In the
frame.rs
file, the last test is incorrect due tois_audio()
returningfalse
instead oftrue
. I left it commented for now.In the
encoder.rs
file, I didn't include tests for theEncoder::send_frame()
,Encoder::receive_packet()
,MuxerEncoder::send_eof()
,MuxerEncoder::send_frame()
, orMuxerEncoder::handle_packets()
functions.In the
decoder.rs
file, I didn't include tests forGenericDecoder::send_packet()
,GenericDecoder::send_eof()
, orGenericDecoder::receive_frame()
functions.The untested functions are due to them being kinda complex (also they seem to be related to the untested functions in the ffmpeg/io folder. It would probably be better to work on all of those in one go since it seems pretty technical.