bms-table 0.12.1

BMS (Be-Music Source) difficulty table parser & fetcher
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Unit tests for network fetching flow (requires the `reqwest` feature)
//!
//! Primarily checks error paths and robustness, e.g., errors for invalid URLs.
#![cfg(feature = "reqwest")]

// Network-related tests (when the reqwest feature is enabled)

#[tokio::test]
async fn test_fetch_table_invalid_url() {
    let fetcher = bms_table::fetch::reqwest::Fetcher::lenient().unwrap();
    let url = url::Url::parse("https://invalid-url-that-does-not-exist.com").unwrap();
    let result = fetcher.fetch_table(url).await;
    assert!(result.is_err());
}