https://github.com/raphexion/erlmemfs
A simple in-memory filesystem inspirered and intended to be used with Bifrost.
https://github.com/raphexion/erlmemfs
bifrost erlang filesystem property-based-testing
Last synced: about 1 year ago
JSON representation
A simple in-memory filesystem inspirered and intended to be used with Bifrost.
- Host: GitHub
- URL: https://github.com/raphexion/erlmemfs
- Owner: Raphexion
- License: apache-2.0
- Created: 2019-03-29T20:34:24.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-05T12:49:57.000Z (about 7 years ago)
- Last Synced: 2025-03-24T03:11:48.405Z (about 1 year ago)
- Topics: bifrost, erlang, filesystem, property-based-testing
- Language: Erlang
- Homepage:
- Size: 114 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/Raphexion/erlmemfs)
[](https://codecov.io/gh/Raphexion/erlmemfs?branch=master)
erlmemfs
========
A simple in-memory filesystem inspirered and intended to be used
with [Bifrost](https://github.com/ryancrum/bifrost).
Use property testing to test functionality.
[Property based testing](https://pragprog.com/book/fhproper/property-based-testing-with-proper-erlang-and-elixir)
Getting Started
---------------
```sh
rebar3 shell
{ok, Fs} = erlmemfs_sup:create_erlmemfs().
erlmemfs:make_directory(Fs, "my_folder").
erlmemfs:change_directory(Fs, "my_folder").
erlmemfs:put_file(Fs, "my_file", <<1,2,3,4>>).
erlmemfs:list_files(Fs).
```
Testing and cover
-----------------
```sh
rebar3 proper --cover
rebar3 cover
```