mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-27 00:19:51 +00:00
[PR #1615] [MERGED] [FEATURE] Create unit test for rust code #2330
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1615
Author: @IshanGrover2004
Created: 6/1/2024
Status: ✅ Merged
Merged: 8/11/2024
Merged by: @PunitLodha
Base:
master← Head:create-unit-testing📝 Commits (10+)
927a494feat: Add new function to allocate any object to heap with zero allocatedc60bef9feat: Add unit tests fordecoder/commands.rsad4e75fdocs: Mention about PR in changelogs91de924feat: Add unit tests fordecoder/windows.rs7f7fbd4fix: Intialise tmp extern C values for easy mocking11309c6feat: Add unit tests fordecoder/timing.rs2fd23f8feat: Add unit tests fordecoder/output.rs05c1ddbfeat: Add unit tests fordecoder/mod.rs5374b37feat: Add unit tests fordecoder/tv_screen.rs01e9367feat: Add unit tests forlib.rs📊 Changes
19 files changed (+1690 additions, -51 deletions)
View changed files
📝
.github/workflows/format.yml(+8 -5)📝
.github/workflows/test_rust.yml(+4 -0)📝
docs/CHANGES.TXT(+1 -0)📝
src/rust/lib_ccxr/src/time/units.rs(+164 -19)📝
src/rust/lib_ccxr/src/util/bits.rs(+48 -2)📝
src/rust/lib_ccxr/src/util/encoding.rs(+1 -2)📝
src/rust/lib_ccxr/src/util/levenshtein.rs(+34 -0)📝
src/rust/lib_ccxr/src/util/mod.rs(+17 -0)📝
src/rust/src/decoder/commands.rs(+38 -0)📝
src/rust/src/decoder/mod.rs(+96 -0)📝
src/rust/src/decoder/output.rs(+34 -0)📝
src/rust/src/decoder/service_decoder.rs(+548 -5)📝
src/rust/src/decoder/timing.rs(+166 -0)📝
src/rust/src/decoder/tv_screen.rs(+108 -0)📝
src/rust/src/decoder/window.rs(+224 -18)📝
src/rust/src/hardsubx/imgops.rs(+63 -0)📝
src/rust/src/hardsubx/utility.rs(+52 -0)📝
src/rust/src/lib.rs(+61 -0)📝
src/rust/src/utils.rs(+23 -0)📄 Description
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
Creating Unit test cases for rust modules(
decoder+hardsubx).Closes #911
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.