use app_lib::AppState;
use std::sync::Arc;
use std::sync::atomic::AtomicUsize;
#[tokio::test]
async fn test_app_state_only() {
// This test links against app_lib and uses AppState
let conn = sea_orm::Database::connect("sqlite::memory:").await.unwrap();
let llama = app_lib::llama::LlamaClient::new("http://localhost:8080".to_string(), "m".to_string(), "m".to_string());
let _state = Arc::new(AppState {
db: conn,
llama: Arc::new(llama),
mcp_tx: tokio::sync::broadcast::channel(1).0,
connection_count: Arc::new(AtomicUsize::new(0)),
app_handle: None,
});
println!("AppState created successfully");
}