()
| 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() { |
nothing calls this directly
no test coverage detected