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: add mock fs for wal #886

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Conversation

bsbds
Copy link
Collaborator

@bsbds bsbds commented Jul 12, 2024

The mock filesystem implementation is used for simulation purposes. For example, we can discard unsynced data during a simulation test using this implementation.

Please briefly answer these questions:

  • what problem are you trying to solve? (or if there's no problem, what's the motivation for this change?)

  • what changes does this pull request make?

  • are there any non-obvious implications of these changes? (does it break compatibility with previous versions, etc)

Copy link

codecov bot commented Jul 12, 2024

Codecov Report

Attention: Patch coverage is 74.70085% with 148 lines in your changes missing coverage. Please review.

Project coverage is 75.99%. Comparing base (e35b35a) to head (88b95a8).
Report is 314 commits behind head on master.

Files with missing lines Patch % Lines
crates/curp/src/server/storage/wal/mock/fs.rs 82.53% 52 Missing and 6 partials ⚠️
crates/curp/src/server/storage/wal/storage.rs 74.84% 20 Missing and 20 partials ⚠️
crates/curp/src/server/storage/wal/mock/mod.rs 0.00% 32 Missing ⚠️
crates/curp/src/server/storage/wal/mod.rs 70.00% 5 Missing and 1 partial ⚠️
crates/curp/src/server/storage/wal/config.rs 71.42% 3 Missing and 1 partial ⚠️
crates/curp/src/server/storage/wal/remover.rs 40.00% 0 Missing and 3 partials ⚠️
crates/curp/src/server/storage/wal/util.rs 80.00% 0 Missing and 3 partials ⚠️
crates/curp/src/server/storage/wal/pipeline.rs 33.33% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #886      +/-   ##
==========================================
+ Coverage   75.55%   75.99%   +0.43%     
==========================================
  Files         180      193      +13     
  Lines       26938    28914    +1976     
  Branches    26938    28914    +1976     
==========================================
+ Hits        20353    21972    +1619     
- Misses       5366     5598     +232     
- Partials     1219     1344     +125     

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

@bsbds bsbds added this to the v0.8.0 milestone Jul 12, 2024
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