use organizational_intelligence_plugin::github::GitHubMiner;
#[test]
fn test_github_miner_can_be_created() {
let _miner = GitHubMiner::new(None);
}
#[test]
fn test_github_miner_with_token() {
let token = Some("test_token".to_string());
let _miner = GitHubMiner::new(token);
}
#[tokio::test]
async fn test_fetch_organization_repos_validates_org_name() {
let miner = GitHubMiner::new(None);
let result = miner.fetch_organization_repos("").await;
assert!(result.is_err(), "Empty org name should fail validation");
}
#[tokio::test]
async fn test_fetch_organization_repos_returns_repo_list() {
let miner = GitHubMiner::new(None);
let result = miner.fetch_organization_repos("test-org").await;
match result {
Ok(_repos) => {
}
Err(_) => {
}
}
}