TheAlgorithms / Rust

All Algorithms implemented in Rust
MIT License
22.93k stars 2.24k forks source link

Introduce error types #709

Closed salmanmkc closed 6 months ago

salmanmkc commented 7 months ago

Pull Request Template

Description

Just added some extra tests and used typiing for some errors. Might do some more soon.

Type of change

Please delete options that are not relevant.

Checklist:

Please make sure that if there is a test that takes too long to run ( > 300ms), you #[ignore] that or try to optimize your code or make the test easier to run. We have this rule because we have hundreds of tests to run; If each one of them took 300ms, we would have to wait for a long time.

codecov-commenter commented 7 months ago

Codecov Report

Attention: Patch coverage is 86.95652% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 94.77%. Comparing base (20c92d7) to head (4be9f49).

Files Patch % Lines
src/data_structures/queue.rs 80.00% 3 Missing :warning:
src/data_structures/range_minimum_query.rs 40.00% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #709 +/- ## ========================================== - Coverage 94.78% 94.77% -0.02% ========================================== Files 297 297 Lines 22149 22182 +33 ========================================== + Hits 20994 21023 +29 - Misses 1155 1159 +4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

salmanmkc commented 7 months ago

in draft mode, just doing this for fun and will get back but got a bunch of things I need to run to first