Compare commits

..

4 commits

Author SHA1 Message Date
4f45383ff7 feat(fs): add lines to reader 2024-11-01 21:16:55 +00:00
2a8e4393ae feat(fs); add as_dir/as_file to convert from path 2024-11-01 21:16:55 +00:00
3a625f5b5b test: remove unit tests
These have all been moved over to integration tests.
Integrtaion
2024-11-01 21:16:55 +00:00
35f41f8c64 refactor: split real module into sub-modules
Some checks failed
Rust / build (map[name:stable]) (push) Failing after 33s
Rust / build (map[name:nightly]) (push) Failing after 1m37s
2024-11-01 21:16:32 +00:00
4 changed files with 12 additions and 7 deletions

View file

@ -1,8 +1,7 @@
build:
cargo fmt --check
cargo hack --feature-powerset clippy
cargo hack --feature-powerset build
cargo hack --feature-powerset test
cargo hack --feature-powerset clippy
install-hooks:
@echo "Installing git hooks"

View file

@ -1,8 +1,8 @@
//
mod dir;
mod file;
mod path;
mod reader;
mod system;
mod path;
mod file;
mod dir;
mod reader;
pub use system::FileSystem;

View file

@ -1,8 +1,12 @@
//
use std::{fmt::Display, path::Path, str::Lines};
use std::{
fmt::Display,
path::Path, str::Lines,
};
use crate::fs::Result;
pub struct ReaderReal {
contents: String,
}

View file

@ -5,6 +5,7 @@ use crate::fs::{Error, Result};
use super::{dir::DirReal, file::FileReal, path::PathReal};
#[derive(Clone, Debug)]
pub struct FileSystem {
base: PathBuf,
@ -58,3 +59,4 @@ impl FileSystem {
Ok(abs_path)
}
}