use gouqi::{Credentials, Jira, Result};
#[test]
fn test_attachments_method() -> Result<()> {
let jira = Jira::new("http://example.com", Credentials::Anonymous)?;
let _attachments = jira.attachments();
Ok(())
}
#[test]
fn test_components_method() -> Result<()> {
let jira = Jira::new("http://example.com", Credentials::Anonymous)?;
let _components = jira.components();
Ok(())
}
#[test]
fn test_boards_method() -> Result<()> {
let jira = Jira::new("http://example.com", Credentials::Anonymous)?;
let _boards = jira.boards();
Ok(())
}
#[test]
fn test_sprints_method() -> Result<()> {
let jira = Jira::new("http://example.com", Credentials::Anonymous)?;
let _sprints = jira.sprints();
Ok(())
}
#[test]
fn test_versions_method() -> Result<()> {
let jira = Jira::new("http://example.com", Credentials::Anonymous)?;
let _versions = jira.versions();
Ok(())
}
#[test]
fn test_transitions_method() -> Result<()> {
let jira = Jira::new("http://example.com", Credentials::Anonymous)?;
let _transitions = jira.transitions("ISSUE-123");
Ok(())
}
#[test]
fn test_issues_method() -> Result<()> {
let jira = Jira::new("http://example.com", Credentials::Anonymous)?;
let _issues = jira.issues();
Ok(())
}
#[test]
fn test_search_method() -> Result<()> {
let jira = Jira::new("http://example.com", Credentials::Anonymous)?;
let _search = jira.search();
Ok(())
}
#[test]
fn test_from_client_method() -> Result<()> {
let client = reqwest::blocking::Client::new();
let _jira = Jira::from_client("http://example.com", Credentials::Anonymous, client)?;
Ok(())
}