mod support;
use crate::support::{Check, TestResult, common_tests};
use genai::resolver::AuthData;
use serial_test::serial;
const MODEL: &str = "github_copilot::openai/gpt-4.1-mini";
const MODEL_NS: &str = "github_copilot::openai/gpt-4.1-mini";
#[tokio::test]
#[serial(github_copilot)]
async fn test_chat_simple_ok() -> TestResult<()> {
common_tests::common_test_chat_simple_ok(MODEL, None).await
}
#[tokio::test]
#[serial(github_copilot)]
async fn test_chat_namespaced_ok() -> TestResult<()> {
common_tests::common_test_chat_simple_ok(MODEL_NS, None).await
}
#[tokio::test]
#[serial(github_copilot)]
async fn test_chat_multi_system_ok() -> TestResult<()> {
common_tests::common_test_chat_multi_system_ok(MODEL).await
}
#[tokio::test]
#[serial(github_copilot)]
async fn test_chat_json_mode_ok() -> TestResult<()> {
common_tests::common_test_chat_json_mode_ok(MODEL, Some(Check::USAGE)).await
}
#[tokio::test]
#[serial(github_copilot)]
async fn test_chat_json_structured_ok() -> TestResult<()> {
common_tests::common_test_chat_json_structured_ok(MODEL, Some(Check::USAGE)).await
}
#[tokio::test]
#[serial(github_copilot)]
async fn test_chat_temperature_ok() -> TestResult<()> {
common_tests::common_test_chat_temperature_ok(MODEL).await
}
#[tokio::test]
#[serial(github_copilot)]
async fn test_chat_stop_sequences_ok() -> TestResult<()> {
common_tests::common_test_chat_stop_sequences_ok(MODEL).await
}
#[tokio::test]
#[serial(github_copilot)]
async fn test_chat_stream_simple_ok() -> TestResult<()> {
common_tests::common_test_chat_stream_simple_ok(MODEL, None).await
}
#[tokio::test]
#[serial(github_copilot)]
async fn test_chat_stream_capture_content_ok() -> TestResult<()> {
common_tests::common_test_chat_stream_capture_content_ok(MODEL).await
}
#[tokio::test]
#[serial(github_copilot)]
async fn test_chat_stream_tool_capture_ok() -> TestResult<()> {
common_tests::common_test_chat_stream_tool_capture_ok(MODEL).await
}
#[tokio::test]
#[serial(github_copilot)]
async fn test_tool_simple_ok() -> TestResult<()> {
common_tests::common_test_tool_simple_ok(MODEL).await
}
#[tokio::test]
#[serial(github_copilot)]
async fn test_tool_full_flow_ok() -> TestResult<()> {
common_tests::common_test_tool_full_flow_ok(MODEL).await
}
#[tokio::test]
#[serial(github_copilot)]
async fn test_resolver_auth_ok() -> TestResult<()> {
common_tests::common_test_resolver_auth_ok(MODEL, AuthData::from_env("GITHUB_TOKEN")).await
}