Compare commits

..

6 Commits

Author SHA1 Message Date
7c1b3a437f tsk-50: Changes and code formatting:
All checks were successful
Release Tagging / release (pull_request) Successful in 33s
Rust Build / Check (pull_request) Successful in 35s
Rust Build / Test Suite (pull_request) Successful in 33s
Rust Build / Rustfmt (pull_request) Successful in 55s
Rust Build / Clippy (pull_request) Successful in 57s
Rust Build / build (pull_request) Successful in 35s
2025-11-06 12:21:09 -05:00
3d1e360c4d tsk-50: Added test 2025-11-06 12:02:23 -05:00
6df220ad73 tsk-50: Added properties
Some checks failed
Release Tagging / release (pull_request) Successful in 31s
Rust Build / Check (pull_request) Successful in 32s
Rust Build / Test Suite (pull_request) Failing after 34s
Rust Build / Clippy (pull_request) Failing after 31s
Rust Build / Rustfmt (pull_request) Failing after 37s
Rust Build / build (pull_request) Successful in 30s
2025-11-06 11:47:10 -05:00
ff1c7c9a59 tsk-50: File rename 2025-11-06 11:34:40 -05:00
4459d89eab tsk-50: Created properties module
Some checks failed
Rust Build / Check (pull_request) Successful in 33s
Release Tagging / release (pull_request) Successful in 45s
Rust Build / Test Suite (pull_request) Failing after 33s
Rust Build / Rustfmt (pull_request) Successful in 47s
Rust Build / Clippy (pull_request) Failing after 42s
Rust Build / build (pull_request) Successful in 35s
2025-11-06 11:29:36 -05:00
a28de5a712 tsk-50: Moving file
Some checks failed
Rust Build / Check (pull_request) Failing after 33s
Release Tagging / release (pull_request) Successful in 35s
Rust Build / Test Suite (pull_request) Failing after 35s
Rust Build / Rustfmt (pull_request) Failing after 38s
Rust Build / Clippy (pull_request) Failing after 47s
Rust Build / build (pull_request) Failing after 1m5s
2025-11-06 11:26:55 -05:00
3 changed files with 12 additions and 23 deletions

2
Cargo.lock generated
View File

@@ -104,7 +104,7 @@ dependencies = [
[[package]]
name = "icarus_meta"
version = "0.4.5"
version = "0.4.4"
dependencies = [
"imghdr",
"infer",

View File

@@ -1,6 +1,6 @@
[package]
name = "icarus_meta"
version = "0.4.5"
version = "0.4.4"
edition = "2024"
rust-version = "1.90"

View File

@@ -43,25 +43,16 @@ mod tests {
match test_util::util::file_exists(&dir, &filename) {
Ok(_) => {
let filepath = test_util::util::get_full_path(&dir, &filename).unwrap();
let new_filepath = test_util::util::generate_newfilepath(&dir).unwrap();
match super::get_duration(&filepath) {
Ok(duration) => {
let song_duration: u64 = 41;
let fetched_song_duration = duration.as_secs();
match test_util::util::copy_file(&filepath, &new_filepath) {
Ok(_) => match super::get_duration(&new_filepath) {
Ok(duration) => {
test_util::util::remove_file(&new_filepath).unwrap();
let song_duration: u64 = 41;
let fetched_song_duration = duration.as_secs();
assert_eq!(
song_duration, fetched_song_duration,
"Durations should match, but they don't {song_duration} {fetched_song_duration} ({duration:?})"
);
}
Err(err) => {
assert!(false, "Error: {err:?}");
}
},
assert_eq!(
song_duration, fetched_song_duration,
"Durations should match, but they don't {song_duration} {fetched_song_duration} ({duration:?})"
);
}
Err(err) => {
assert!(false, "Error: {err:?}");
}
@@ -84,10 +75,8 @@ mod tests {
let new_filepath = test_util::util::generate_newfilepath(&dir).unwrap();
match test_util::util::copy_file(&filepath, &new_filepath) {
Ok(_) => match super::get_song_properties(&new_filepath) {
Ok(_) => match super::get_song_properties(&filepath) {
Ok(song_properties) => {
test_util::util::remove_file(&new_filepath).unwrap();
let song_duration: u64 = 41;
let bitrate: u32 = 1;
let overall_bitrate: u32 = 3;