git.r.bdr.sh
/
rbdr
/
page
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove no longer necessary code
[rbdr/page]
/
src
/
file_handler
/
mod.rs
diff --git
a/src/file_handler/mod.rs
b/src/file_handler/mod.rs
index e8a446b452f2d57b15e0661ed90a2de63a1a6e18..4e4bed9588946a2c928fdbd4b5426708ce369af2 100644
(file)
--- a/
src/file_handler/mod.rs
+++ b/
src/file_handler/mod.rs
@@
-208,11
+208,16
@@
mod tests {
let handler = FileHandler {
strategies: vec![Box::new(mock_strategy)],
let handler = FileHandler {
strategies: vec![Box::new(mock_strategy)],
- layout:
None
,
+ layout:
Some("None".to_string())
,
};
let path = PathBuf::from("test.whatever");
};
let path = PathBuf::from("test.whatever");
+ let file = File{
+ path: path.clone(),
+ file_type: FileType::Gemini
+ };
assert!(matches!(handler.identify(&path), FileType::Gemini));
assert!(matches!(handler.identify(&path), FileType::Gemini));
+ handler.handle(&path, &path, &path, &file);
}
#[test]
}
#[test]