Dependency switch #13
12
src/lib.rs
12
src/lib.rs
@@ -90,21 +90,19 @@ mod tests {
|
||||
let dir_path = std::path::Path::new(&directory);
|
||||
Ok(dir_path.join(filename))
|
||||
}
|
||||
|
||||
pub fn test_file_directory() -> String {
|
||||
String::from("tests/sample_tracks3")
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_get_title() {
|
||||
let filename = String::from("track01.flac");
|
||||
let dir = String::from("tests/sample_tracks3");
|
||||
// let dir_path = std::path::Path::new(&dir);
|
||||
// let full_path = dir_path.join(filename);
|
||||
let dir = util::test_file_directory();
|
||||
|
||||
// println!("Path: {:?}", full_path);
|
||||
|
||||
// assert!(full_path.exists(), "Path does not exists {:?}", full_path);
|
||||
match file_exists(&dir, &filename) {
|
||||
Ok(_) => {
|
||||
// let filepath = full_path.display().to_string();
|
||||
let filepath = get_full_path(&dir, &filename).unwrap();
|
||||
|
||||
match meta_next::get_meta(meta_type::Type::Title, &filepath) {
|
||||
|
Reference in New Issue
Block a user