Compare commits

..

4 commits

Author SHA1 Message Date
db28ab982a feat(fs): add lines to reader 2024-11-01 21:33:49 +00:00
623616e73c feat(fs); add as_dir/as_file to convert from path 2024-11-01 21:33:05 +00:00
09e1d91a9e test: remove unit tests
All checks were successful
Rust / build (map[name:stable]) (push) Successful in 2m7s
Rust / build (map[name:nightly]) (push) Successful in 4m17s
Release Please / Release-plz (push) Successful in 40s
These have all been moved over to integration tests.
Integrtaion
2024-11-01 21:32:37 +00:00
d50164931d refactor: split real module into sub-modules
All checks were successful
Rust / build (map[name:nightly]) (push) Successful in 2m9s
Rust / build (map[name:stable]) (push) Successful in 4m7s
Release Please / Release-plz (push) Successful in 38s
2024-11-01 21:32:37 +00:00
4 changed files with 6 additions and 11 deletions

View file

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

View file

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

View file

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

View file

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