mod client;
mod types;
pub use client::{BacklogClient, BacklogError, BacklogResult};
pub use types::*;
pub use serde_json::Value as JsonValue;
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_client_creation() {
let client = BacklogClient::new("https://test.backlog.com", "test_api_key");
let client2 = BacklogClient::new("https://example.backlog.com", "another_key");
drop(client);
drop(client2);
}
#[test]
fn test_client_with_custom_client() {
let client = BacklogClient::with_client(
"https://test.backlog.com",
"test_key",
reqwest::Client::new(),
);
drop(client);
}
}