remove unfinished test
This commit is contained in:
parent
301306c9f2
commit
464ca87529
1 changed files with 22 additions and 22 deletions
|
@ -1056,31 +1056,31 @@ pub mod song_model {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
// #[cfg(test)]
|
||||||
mod tests {
|
// mod tests {
|
||||||
use super::*;
|
// use super::*;
|
||||||
use cxx_qt_lib::QStringList; // Replace 'some_module' with the actual module where QModelIndex is defined.
|
// use cxx_qt_lib::QStringList; // Replace 'some_module' with the actual module where QModelIndex is defined.
|
||||||
|
|
||||||
#[test]
|
// #[test]
|
||||||
fn test_get_lyric_list() {
|
// fn test_get_lyric_list() {
|
||||||
// Create a test instance of your struct (you might need to adjust this based on your actual struct).
|
// // Create a test instance of your struct (you might need to adjust this based on your actual struct).
|
||||||
let mut song_model = SongModel {
|
// let mut song_model = SongModel {
|
||||||
highest_id: 0,
|
// highest_id: 0,
|
||||||
songs: Vec::<song_model::Song>::new(),
|
// songs: Vec::<song_model::Song>::new(),
|
||||||
};
|
// };
|
||||||
|
|
||||||
// this sets up the songmodel with the database
|
// // this sets up the songmodel with the database
|
||||||
// song_model.setup_wrapper(self);
|
// // song_model.setup_wrapper(self);
|
||||||
|
|
||||||
// Call the get_lyric_list function with specific inputs.
|
// // Call the get_lyric_list function with specific inputs.
|
||||||
let index = 0; // Replace with your desired test index.
|
// let index = 0; // Replace with your desired test index.
|
||||||
|
|
||||||
let result = song_model.get_lyric_list(index);
|
// let result = song_model.get_lyric_list(index);
|
||||||
|
|
||||||
// Define your expected result here. For simplicity, let's assume an empty QStringList.
|
// // Define your expected result here. For simplicity, let's assume an empty QStringList.
|
||||||
let expected_result = QStringList::default();
|
// let expected_result = QStringList::default();
|
||||||
|
|
||||||
// Compare the actual result with the expected result using an assertion.
|
// // Compare the actual result with the expected result using an assertion.
|
||||||
assert_eq!(result, expected_result);
|
// assert_eq!(result, expected_result);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue