Fix test
This commit is contained in:
@@ -191,7 +191,7 @@ mod tests {
|
|||||||
fn test_extract_query_from_url() {
|
fn test_extract_query_from_url() {
|
||||||
let url = "https://www.google.com/search?q=rust+programming&oq=rust";
|
let url = "https://www.google.com/search?q=rust+programming&oq=rust";
|
||||||
let query = extract_query_from_url(url);
|
let query = extract_query_from_url(url);
|
||||||
assert_eq!(query, Some("rust programming".to_string()));
|
assert_eq!(query, Some("rust+programming".to_string()));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
16
src/tags.rs
16
src/tags.rs
@@ -783,8 +783,8 @@ mod tests {
|
|||||||
|
|
||||||
fn get_files_with_all_tag_ids(
|
fn get_files_with_all_tag_ids(
|
||||||
&mut self,
|
&mut self,
|
||||||
tag_ids: Vec<i32>,
|
_tag_ids: Vec<i32>,
|
||||||
exclude_tag_ids: Vec<i32>,
|
_exclude_tag_ids: Vec<i32>,
|
||||||
_context: &opentelemetry::Context,
|
_context: &opentelemetry::Context,
|
||||||
) -> anyhow::Result<Vec<FileWithTagCount>> {
|
) -> anyhow::Result<Vec<FileWithTagCount>> {
|
||||||
todo!()
|
todo!()
|
||||||
@@ -792,8 +792,8 @@ mod tests {
|
|||||||
|
|
||||||
fn get_files_with_any_tag_ids(
|
fn get_files_with_any_tag_ids(
|
||||||
&mut self,
|
&mut self,
|
||||||
tag_ids: Vec<i32>,
|
_tag_ids: Vec<i32>,
|
||||||
exclude_tag_ids: Vec<i32>,
|
_exclude_tag_ids: Vec<i32>,
|
||||||
_context: &opentelemetry::Context,
|
_context: &opentelemetry::Context,
|
||||||
) -> anyhow::Result<Vec<FileWithTagCount>> {
|
) -> anyhow::Result<Vec<FileWithTagCount>> {
|
||||||
todo!()
|
todo!()
|
||||||
@@ -801,16 +801,16 @@ mod tests {
|
|||||||
|
|
||||||
fn update_photo_name(
|
fn update_photo_name(
|
||||||
&mut self,
|
&mut self,
|
||||||
old_name: &str,
|
_old_name: &str,
|
||||||
new_name: &str,
|
_new_name: &str,
|
||||||
context: &opentelemetry::Context,
|
_context: &opentelemetry::Context,
|
||||||
) -> anyhow::Result<()> {
|
) -> anyhow::Result<()> {
|
||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_all_photo_names(
|
fn get_all_photo_names(
|
||||||
&mut self,
|
&mut self,
|
||||||
context: &opentelemetry::Context,
|
_context: &opentelemetry::Context,
|
||||||
) -> anyhow::Result<Vec<String>> {
|
) -> anyhow::Result<Vec<String>> {
|
||||||
todo!()
|
todo!()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user