Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
SimranMakhija7 committed May 2, 2024
1 parent be460fd commit e066906
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/config/parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ mod tests {
init();
get("TEST_ENV_VAR_UNDEFINED");
}
}
}
6 changes: 3 additions & 3 deletions src/database/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ mod tests {
let db = Database::open(db_path).unwrap();

// Test insert
let key : String = "key1".to_string();
let key: String = "key1".to_string();
let value = "value1";
db.insert("NamespaceData", &key, &value).unwrap();

Expand Down Expand Up @@ -187,7 +187,8 @@ mod tests {

// Test update with non-existing key
let updated_value = "updated_value1";
db.update("NamespaceData", &non_existing_key, &updated_value).unwrap();
db.update("NamespaceData", &non_existing_key, &updated_value)
.unwrap();
let retrieved_value: Option<String> = db.get("NamespaceData", &non_existing_key).unwrap();
assert_eq!(retrieved_value, Some(updated_value.to_string()));

Expand All @@ -210,4 +211,3 @@ mod tests {
assert!(result.is_err());
}
}

0 comments on commit e066906

Please sign in to comment.