Skip to content
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

Feat/serde yml #11

Merged
merged 24 commits into from
Aug 25, 2024
Merged

Feat/serde yml #11

merged 24 commits into from
Aug 25, 2024

Conversation

sebastienrousseau
Copy link
Owner

@sebastienrousseau sebastienrousseau commented Aug 24, 2024

  • ci(serde_yml): ⬆️ updated github workflows actions dependencies
  • docs(serde_yml): 🎨 updated package.metadata.docs.rs
  • docs(serde_yml): 📝 update on documentation and template
  • feat(serde_yml): ✨ add makefile
  • feat(serde_yml): ✨ v0.0.12
  • feat(serde_yml): Refactor and improve test suite for Serde YML
  • feat(tests): Add comprehensive unit tests for Path enum variants
  • fix(serde_yml): 🐛 Remove the unreachable match arm
  • fix(serde_yml): 🐛 error: assert!(true) will be optimized out by the compiler
  • fix(serde_yml): 🐛 error: redundant pattern matching, consider using is_none()
  • fix(serde_yml): 🐛 error: unreachable pattern
  • fix(serde_yml): 🐛 error: you seem to be trying to use match for destructuring a single pattern. Consider using if let
  • fix(serde_yml): 🐛 fix formatting
  • fix(serde_yml): 🚨 fix error: the borrowed expression implements the required traits
  • fix(serde_yml): ✅ Removed unnecessary clone calls for types implementing the Copy trait to resolve Clippy warnings.
  • fix(serde_yml): ✅ fix error: the borrowed expression implements the required traits
  • refactor(serde_yml): 🎨 Add Config Serializer to tag unit variants and new unit tests
  • refactor(serde_yml): 🎨 refactor: remove dependencies and unecessay functions
  • test(serde_yml): ✅ Add comprehensive unit tests for Path enum variants
  • test(serde_yml): ✅ Add new tests to cover missing parts for Progress::Document(doc) etc
  • test(serde_yml): ✅ add new unit tests
  • test(serde_yml): ✅ Add comprehensive unit tests for Event enum and Path handling
  • test(serde_yml): ✅ Add comprehensive unit tests for Path enum variants
  • test(serde_yml): ✅ Add new tests to cover missing parts

Copy link

codecov bot commented Aug 24, 2024

Codecov Report

Attention: Patch coverage is 72.00000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 68.08%. Comparing base (d86b13d) to head (f0d0655).
Report is 30 commits behind head on master.

Files Patch % Lines
src/de.rs 16.66% 5 Missing ⚠️
src/ser.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #11      +/-   ##
==========================================
+ Coverage   66.82%   68.08%   +1.25%     
==========================================
  Files          25       22       -3     
  Lines        2553     2500      -53     
==========================================
- Hits         1706     1702       -4     
+ Misses        847      798      -49     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

…tructuring a single pattern. Consider using `if let`
…nting the `Copy` trait to resolve Clippy warnings.
- Added tests to cover `parent`, `index`, and `key` fields in `Seq`, `Map`, `Alias`, and `Unknown` variants.
- Verified correct formatting for nested and complex paths.
- Adjusted `test_alias_with_parent` to account for the expected trailing period in the `Alias` variant.
- Ensured logical ordering and coverage of edge cases in the tests.
- Resolved Clippy warning by removing unnecessary `clone()` call in `test_path_clone_and_copy`.
…th handling

- Added unit tests for various `Path` enum variants to ensure correct formatting and behavior:
  - `Path::Root`
  - `Path::Seq`
  - `Path::Map`
  - `Path::Alias`
  - `Path::Unknown`
- Included tests for nested and complex path structures to verify deep nesting and parent-child relationships.
- Added tests for handling special cases like large indices, empty keys, and different key types in `Path::Map`.
- Implemented tests to ensure `Path` instances with identical structures are considered equal.
- Verified correct behavior of the `Alias`, `Seq`, and `Map` variants when used as parents in nested paths.
- Added tests to check proper panic behavior for unexpected end of sequence and mapping events.
- Implemented a test for the `Alias` variant in the `Event` enum to ensure correct handling of alias indices.
- Organized and documented existing tests for Path enum variants (Root, Seq, Map, Alias, Unknown).
- Added missing unit tests for:
  - Map variant with different key values (including empty key).
  - Seq variant with different index values.
  - Nested Path structures involving multiple variant combinations.
- Ensured consistent docstrings and logical grouping of tests.
- Included tests for:
  - Equality and cloning of Path instances.
  - Panic scenarios for unexpected sequence and mapping ends.
  - Handling of Alias variant in Event enum.
- Improved coverage and robustness of test suite.
- Add new unit tests for `lib.rs`
- Reorganized unit tests in a logical order
- Added consistent docstrings to all test functions
@sebastienrousseau sebastienrousseau merged commit 62efd66 into master Aug 25, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant