use std::collections::HashMap;
#[derive(Clone, Debug, Default)]
pub struct DukascopyAuth;
impl DukascopyAuth {
pub fn new() -> Self {
Self
}
pub fn from_env() -> Self {
Self
}
pub fn sign_headers(&self, _headers: &mut HashMap<String, String>) {
}
pub fn sign_query(&self, _params: &mut HashMap<String, String>) {
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_auth_creation() {
let auth = DukascopyAuth::new();
let mut headers = HashMap::new();
auth.sign_headers(&mut headers);
assert!(headers.is_empty(), "No headers should be added");
}
#[test]
fn test_auth_from_env() {
let auth = DukascopyAuth::from_env();
let mut params = HashMap::new();
auth.sign_query(&mut params);
assert!(params.is_empty(), "No query params should be added");
}
}