MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / test_migrate

Function test_migrate

crates/chat-cli/src/database/mod.rs:593–599  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

591
592 #[tokio::test]
593 async fn test_migrate() {
594 let db = Database::new().await.unwrap();
595
596 // assert migration count is correct
597 let max_migration = max_migration_version(&&*db.pool.get().unwrap());
598 assert_eq!(max_migration, Some(MIGRATIONS.len() as i64 - 1));
599 }
600
601 #[test]
602 fn list_migrations() {

Callers

nothing calls this directly

Calls 2

max_migration_versionFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected