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

Metadata #2

Merged
merged 19 commits into from
Jul 31, 2024
Merged

Metadata #2

merged 19 commits into from
Jul 31, 2024

Conversation

deadbaed
Copy link
Owner

  • read/write tags from/to file bag-data.txt
  • using Metadata struct for reading and writting bagit.txt file
  • storing metadata tags inside bag struct
  • store file size in Payload struct

supporting reading and writing commonly used tags:

  • BagIt-Version
  • Tag-File-Character-Encoding
  • Bagging-Date (with jiff crate)
  • Payload-Oxum

supporting custom tags with key/value stored as strings

Copy link

Coverage after merging metadata into master will be

93.56%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   algorithm.rs89.29%100%100%86.96%28–30
   checksum.rs77.38%100%62.50%80.88%103–105, 115–118, 120, 16, 37
   generate.rs94.81%100%69.23%97.16%11
   lib.rs100%100%100%100%
   manifest.rs96.30%100%90%97.73%
   metadata.rs92.79%100%64.71%95.12%114, 220, 265, 302, 70
   payload.rs73.58%100%44.44%79.55%11, 114, 120, 141–143, 146–148, 151–153
   read.rs89.50%100%53.33%91.93%105, 110, 122, 132, 141, 156, 162, 166, 26, 83, 89, 9, 99
src/metadata
   file.rs85.96%100%69.23%90.91%10

Copy link

Coverage after merging metadata into master will be

93.56%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   algorithm.rs89.29%100%100%86.96%28–30
   checksum.rs77.38%100%62.50%80.88%103–105, 115–118, 120, 16, 37
   generate.rs94.81%100%69.23%97.16%11
   lib.rs100%100%100%100%
   manifest.rs96.30%100%90%97.73%
   metadata.rs92.79%100%64.71%95.12%114, 220, 265, 302, 70
   payload.rs73.58%100%44.44%79.55%11, 114, 120, 141–143, 146–148, 151–153
   read.rs89.50%100%53.33%91.93%105, 110, 122, 132, 141, 156, 162, 166, 26, 83, 89, 9, 99
src/metadata
   file.rs85.96%100%69.23%90.91%10

@deadbaed deadbaed merged commit 70e99ac into master Jul 31, 2024
7 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