let handler = FileHandler {
strategies: vec![Box::new(mock_strategy)],
- layout: None,
+ layout: Some("None".to_string()),
};
let path = PathBuf::from("test.whatever");
+ let file = File{
+ path: path.clone(),
+ file_type: FileType::Gemini
+ };
assert!(matches!(handler.identify(&path), FileType::Gemini));
+ handler.handle(&path, &path, &path, &file);
}
#[test]