refactor: improve test structure and reliability

This commit is contained in:
Andrew Phillips
2025-05-12 13:07:33 -03:00
committed by Andrew Phillips (aider)
parent eaf341cdfb
commit d9072d22d5
5 changed files with 395 additions and 263 deletions

View File

@@ -279,7 +279,9 @@ fn main() -> Result<(), Error> {
KeepModes::Get => {
crate::modes::get::mode_get(&mut cmd, args, ids, tags, &mut conn, data_path)?
}
KeepModes::Diff => crate::modes::diff::mode_diff(&mut cmd, args, ids, tags, &mut conn, data_path)?,
KeepModes::Diff => {
crate::modes::diff::mode_diff(&mut cmd, args, ids, tags, &mut conn, data_path)?
}
KeepModes::List => {
crate::modes::list::mode_list(&mut cmd, args, ids, tags, &mut conn, data_path)?
}
@@ -291,7 +293,7 @@ fn main() -> Result<(), Error> {
}
KeepModes::Delete => {
crate::modes::delete::mode_delete(&mut cmd, args, ids, tags, &mut conn, data_path)?
}
}
KeepModes::Status => crate::modes::status::mode_status(&mut cmd, args, data_path, db_path)?,
_ => todo!(),
}