fs-sim: Simulated file systems

[ apache, library, testing ] [ Propose Tags ]

Simulated file systems.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.3.0.0
Change log CHANGELOG.md
Dependencies base (>=4.14 && <4.21), base16-bytestring (>=0.1 && <0.2 || >=1.0 && <1.1), bytestring (>=0.10 && <0.13), containers (>=0.5 && <0.8), fs-api (>=0.3 && <0.4), io-classes (>=1.0 && <1.6), mtl (>=2.2 && <2.4), primitive (>=0.9 && <0.10), QuickCheck (>=2.13 && <2.16), safe-wild-cards (>=1.0 && <1.1), strict-stm (>=1.0 && <1.6), text (>=1.2 && <1.3 || >=2.0 && <2.2) [details]
License Apache-2.0[multiple license files]
Copyright 2019-2024 Input Output Global Inc (IOG)
Author IOG Engineering Team
Maintainer operations@iohk.io, Joris Dral (joris@well-typed.com)
Category Testing
Source repo head: git clone https://github.com/input-output-hk/fs-sim(fs-sim)
Uploaded by jdral at 2024-08-26T10:41:44Z
Distributions
Downloads 45 total (32 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2024-08-26 [all 1 reports]

Readme for fs-sim-0.3.0.0

[back to package description]

fs-sim

The fs-sim package provides a filesystem simulator that facilitates simulation of errors and file corruption. This simulator is specially useful for testing purposes, and works well in conjunction with io-sim.

Code that is written using the abstract filesystem interface (HasFS) that is provided by the parent package fs-api can be run against any of the simulator implementations provided by fs-sim. fs-sim currently provides two simulators:

  • System.FS.Sim.STM provides an implementation that uses STM.
  • System.FS.Sim.Error provides an implementation that uses STM, but can also simulate errors and file corruption.