ArcanaFramework / fileformats

a Python package for the specification, validation and manipulation of file formats and types
https://arcanaframework.github.io/fileformats/
Other
3 stars 0 forks source link

Implemented generic sample data extras #38

Closed tclose closed 11 months ago

tclose commented 11 months ago

Implements generate_sample_data methods for generic file, fsobject and directory types. They should cover all cases that use a combination of extensions and standard mixins (e.g. magic numbers) to define the datatype (only magic versions are not covered yet)

codecov[bot] commented 11 months ago

Codecov Report

Attention: 18 lines in your changes are missing coverage. Please review.

Comparison is base (7fe4d05) 93.04% compared to head (bb0f829) 93.40%. Report is 5 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #38 +/- ## ========================================== + Coverage 93.04% 93.40% +0.35% ========================================== Files 35 36 +1 Lines 4359 4471 +112 Branches 436 463 +27 ========================================== + Hits 4056 4176 +120 + Misses 234 221 -13 - Partials 69 74 +5 ``` | [Files](https://app.codecov.io/gh/ArcanaFramework/fileformats/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework) | Coverage Δ | | |---|---|---| | [fileformats/core/datatype.py](https://app.codecov.io/gh/ArcanaFramework/fileformats/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework#diff-ZmlsZWZvcm1hdHMvY29yZS9kYXRhdHlwZS5weQ==) | `76.36% <100.00%> (+0.21%)` | :arrow_up: | | [fileformats/core/utils.py](https://app.codecov.io/gh/ArcanaFramework/fileformats/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework#diff-ZmlsZWZvcm1hdHMvY29yZS91dGlscy5weQ==) | `77.33% <100.00%> (+2.16%)` | :arrow_up: | | [fileformats/testing/\_\_init\_\_.py](https://app.codecov.io/gh/ArcanaFramework/fileformats/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework#diff-ZmlsZWZvcm1hdHMvdGVzdGluZy9fX2luaXRfXy5weQ==) | `100.00% <100.00%> (ø)` | | | [fileformats/testing/magic.py](https://app.codecov.io/gh/ArcanaFramework/fileformats/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework#diff-ZmlsZWZvcm1hdHMvdGVzdGluZy9tYWdpYy5weQ==) | `100.00% <100.00%> (ø)` | | | [fileformats/core/mixin.py](https://app.codecov.io/gh/ArcanaFramework/fileformats/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework#diff-ZmlsZWZvcm1hdHMvY29yZS9taXhpbi5weQ==) | `79.32% <88.88%> (+0.33%)` | :arrow_up: | | [fileformats/core/fileset.py](https://app.codecov.io/gh/ArcanaFramework/fileformats/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework#diff-ZmlsZWZvcm1hdHMvY29yZS9maWxlc2V0LnB5) | `86.70% <85.00%> (+0.42%)` | :arrow_up: | | [fileformats/application/serialization.py](https://app.codecov.io/gh/ArcanaFramework/fileformats/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework#diff-ZmlsZWZvcm1hdHMvYXBwbGljYXRpb24vc2VyaWFsaXphdGlvbi5weQ==) | `80.59% <71.42%> (+5.12%)` | :arrow_up: | | [fileformats/generic/\_\_init\_\_.py](https://app.codecov.io/gh/ArcanaFramework/fileformats/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework#diff-ZmlsZWZvcm1hdHMvZ2VuZXJpYy9fX2luaXRfXy5weQ==) | `84.15% <92.15%> (ø)` | | | [fileformats/core/mark.py](https://app.codecov.io/gh/ArcanaFramework/fileformats/pull/38?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ArcanaFramework#diff-ZmlsZWZvcm1hdHMvY29yZS9tYXJrLnB5) | `77.46% <33.33%> (-0.48%)` | :arrow_down: |

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