2023-01-08 04:20:23 +00:00
|
|
|
#![cfg_attr(feature = "nightly", feature(custom_test_frameworks))]
|
|
|
|
#![cfg_attr(feature = "nightly", test_runner(my_runner))]
|
|
|
|
|
|
|
|
mod async_tests;
|
|
|
|
mod testutils;
|
|
|
|
use colored::*;
|
|
|
|
use riven::consts::*;
|
2024-01-21 03:41:46 +00:00
|
|
|
use testutils::*;
|
2023-01-08 04:20:23 +00:00
|
|
|
|
|
|
|
const ROUTE: PlatformRoute = PlatformRoute::VN2;
|
|
|
|
|
2023-05-10 18:20:15 +00:00
|
|
|
async_tests! {
|
2023-01-08 04:20:23 +00:00
|
|
|
my_runner {
|
|
|
|
status: async {
|
|
|
|
let p = RIOT_API.lol_status_v4().get_platform_data(ROUTE);
|
|
|
|
let status = p.await.map_err(|e| e.to_string())?;
|
|
|
|
println!("{:?}", status);
|
|
|
|
Ok(())
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|