mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-17 12:50:00 +01:00
19 lines
No EOL
494 B
Rust
19 lines
No EOL
494 B
Rust
use teloxide::dispatching::dialogue::{
|
|
serializer::{Bincode, CBOR, JSON},
|
|
SqliteStorage, SqliteStorageLocation::InMemory
|
|
};
|
|
|
|
#[tokio::test]
|
|
async fn test_sqlite_json() {
|
|
let _storage = SqliteStorage::open(InMemory, JSON).await.unwrap();
|
|
}
|
|
|
|
#[tokio::test]
|
|
async fn test_sqlite_cbor() {
|
|
let _storage = SqliteStorage::open(InMemory, CBOR).await.unwrap();
|
|
}
|
|
|
|
#[tokio::test]
|
|
async fn test_sqlite_bincode() {
|
|
let _storage = SqliteStorage::open(InMemory, Bincode).await.unwrap();
|
|
} |